Function at 0x1003a380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x14], ebp
xor ebp, ebp
mov dword [esp + 0x18], esi
xor esi, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x78], eax
cmp dword [eax + 0xac], esi
je 0x1003a6ae
lea ecx, [eax + 0xa8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
mov ebx, dword [ecx + esi*4]
cmp byte [ebx + 0x4c], 0
je 0x1003a516
mov dword [esp + 0x48], esi
xor esi, esi
cmp dword [ebx + 0x40], esi
je 0x1003a69c
mov ecx, dword [ebx + 0x48]
cmp byte [ecx + esi], 8
ja 0x1003a507
mov edx, dword [ebx + 8]
bt dword [edx], esi
jb 0x1003a507
mov ecx, esi
shl ecx, 0xc
add ecx, dword [ebx]
cmp dword [ebx + 0x1c], 0
je 0x1003a482
lea eax, [ebx + 0x18]
mov edx, dword [eax]
btr dword [edx], esi
jae 0x1003a482
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + esi*4]
shl edx, 0xc
xor edi, edi
cmp dword [ebx + 0x1c], edi
je 0x1003a42a
lea eax, [ebx + 0x18]
mov eax, dword [eax]
bt dword [eax], esi
jae 0x1003a42a
mov edi, 1
cmp dword [ebx + 0x24], 0
je 0x1003a440
lea eax, [ebx + 0x20]
mov eax, dword [eax]
bt dword [eax], esi
jae 0x1003a440
or edi, 0x20
mov eax, dword [ebx + 0x28]
bt dword [eax], esi
jae 0x1003a44e
or edi, 2
cmp dword [ebx + 0x3c], 0
je 0x1003a464
lea eax, [ebx + 0x38]
mov eax, dword [eax]
bt dword [eax], esi
jae 0x1003a464
or edi, 0x10
mov eax, dword [ebx + 0x30]
bt dword [eax], esi
jae 0x1003a472
or edi, 8
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.10047964
mov edi, esi
mov ecx, esi
mov eax, 1
and ecx, 0x1f
shl eax, cl
shr edi, 5
cmp dword [ebx + 0x24], 0
not eax
je 0x1003a4a4
mov edx, dword [ebx + 0x20]
and dword [edx + edi*4], eax
mov ecx, dword [ebx + 0x28]
and dword [ecx + edi*4], eax
mov edx, dword [ebx + 0x30]
and dword [edx + edi*4], eax
cmp dword [ebx + 0x3c], 0
je 0x1003a4bc
mov ecx, dword [ebx + 0x38]
and dword [ecx + edi*4], eax
mov edx, dword [ebx + 0x48]
mov byte [edx + esi], 0xa
cmp esi, dword [ebx + 0x58]
jae 0x1003a4cb
mov dword [ebx + 0x58], esi
inc dword [ebx + 0x44]
inc ebp
lea ecx, [esi + 1]
cmp ecx, dword [ebx + 0x40]
jae 0x1003a501
mov edx, dword [ebx + 0x48]
add edx, esi
cmp byte [edx + 1], 9
jne 0x1003a501
inc esi
mov ecx, dword [ebx + 0x48]
inc ebp
mov byte [ecx + esi], 0xa
lea edx, [esi + 1]
inc dword [ebx + 0x44]
cmp edx, dword [ebx + 0x40]
jae 0x1003a501
mov ecx, dword [ebx + 0x48]
add ecx, esi
cmp byte [ecx + 1], 9
je 0x1003a4e2
mov edx, dword [ebx + 0x44]
mov dword [ebx + 0x5c], edx
inc esi
cmp esi, dword [ebx + 0x40]
jb 0x1003a3d7
jmp 0x1003a69c
mov dword [esp + 0x48], esi
xor esi, esi
cmp dword [ebx + 0x40], esi
je 0x1003a69c
mov dword [esp + 0x64], esi
mov dword [esp + 0x4c], esi
mov ecx, dword [ebx + 0x48]
movzx edx, byte [ecx + esi]
cmp dl, 8
jae 0x1003a682
mov dword [esp + 0x68], ebp
mov ecx, dword [ebx]
add ecx, dword [esp + 0x4c]
lea eax, [ecx + 0x1000]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x58], eax
movzx edi, dl
mov edi, dword [edi*4 + 0x100735d0]
mov dword [esp + 0x5c], edi
shr edi, 4
mov ecx, 8
mov dword [esp + 0x54], edi
xor eax, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x74], 0
rep stosd dword es:[edi], eax
xor ebp, ebp
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x58]
jae 0x1003a66a
lea edx, [ebx + 0x18]
lea eax, [ebx + 8]
mov dword [esp + 0x50], edx
mov edi, dword [esp + 0x64]
mov ecx, dword [eax]
add edi, ebp
bt dword [ecx], edi
jb 0x1003a650
mov dword [esp + 0x60], eax
mov edx, dword [ebx + 0x1c]
test edx, edx
je 0x1003a63e
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
bt dword [eax], edi
jae 0x1003a63e
mov dword [esp + 0x70], ebp
xor ebp, ebp
test edx, edx
je 0x1003a5da
lea edx, [ebx + 0x18]
mov ecx, dword [edx]
bt dword [ecx], edi
jae 0x1003a5da
mov ebp, 1
cmp dword [ebx + 0x24], 0
je 0x1003a5f0
lea edx, [ebx + 0x20]
mov ecx, dword [edx]
bt dword [ecx], edi
jae 0x1003a5f0
or ebp, 0x20
mov edx, dword [ebx + 0x28]
bt dword [edx], edi
jae 0x1003a5fe
or ebp, 2
cmp dword [ebx + 0x3c], 0
je 0x1003a614
lea ecx, [ebx + 0x38]
mov edx, dword [ecx]
bt dword [edx], edi
jae 0x1003a614
or ebp, 0x10
mov ecx, dword [ebx + 0x30]
bt dword [ecx], edi
jae 0x1003a622
or ebp, 8
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.10047964
mov ebp, dword [esp + 0x70]
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x20]
mov ecx, ebp
bts dword [edx], ecx
add ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
add dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x58]
jb 0x1003a596
cmp byte [esp + 0x74], 0
mov ebp, dword [esp + 0x68]
je 0x1003a682
push esi
lea edx, [esp + 0x24]
mov eax, ebx
push edx
call fcn.100476a0
add dword [esp + 0x64], 0x100
add dword [esp + 0x4c], 0x1000
inc esi
cmp esi, dword [ebx + 0x40]
jb 0x1003a52d
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
inc esi
cmp esi, dword [eax + 4]
jb 0x1003a3b5
mov esi, dword [esp + 0x78]
mov ebx, ebp
mov eax, ebx
sub dword [esi + 0xe4], ebx
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x7c
ret