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

Disassembly:
push 0xffffffffffffffff
push 0x1003c93e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x5c], ebp
call fcn.10003ef0
xor esi, esi
mov dword [ebp], 0x10041ad4
mov dword [esp + 0x9c], esi
call fcn.10035b00
mov word [esp + 0x34], si
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], eax
call fcn.10002ae0
mov byte [esp + 0x9c], 1
mov byte [esp + 0x74], 0
mov byte [esp + 0x75], 1
call fcn.10035b00
lea ecx, [esp + 0x30]
lea edx, [esp + 0x13]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], si
call fcn.1003b300
mov ecx, ebp
mov byte [esp + 0x9c], 2
call fcn.100041f0
mov dword [ebp + 0x18], eax
call fcn.10035b00
push esi
push 0xac
mov ecx, eax
mov dword [esp + 0x54], eax
call fcn.10034c60
mov dword [ebp + 0x1c], eax
call fcn.10035b00
mov word [esp + 0x2c], si
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], eax
call fcn.10002ae0
mov edi, 0x10051b9c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x3c]
push ebx
call fcn.100029c0
test al, al
je 0x1003a761
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov edx, ecx
mov esi, 0x10051b9c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.10002920
xor esi, esi
mov byte [esp + 0x9c], 3
call fcn.10035b00
mov ecx, ebp
mov ebx, eax
mov word [esp + 0x54], si
call fcn.10004200
mov edi, eax
mov eax, dword [esp + 0x54]
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
call fcn.10002ae0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.100029c0
test al, al
je 0x1003a7d8
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
push ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.10002920
xor esi, esi
mov eax, dword [0x1003d370]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa8], 4
call fcn.10002670
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 3
call fcn.10002ae0
mov edi, 0x100418d4
xor ebx, ebx
mov dword [esp + 0x28], edi
lea edx, [edi - 4]
mov esi, dword [edi - 4]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
mov ecx, dword [edx + 8]
mov edx, dword [edi]
mov dword [esp + 0x58], ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1003aa60
add esp, 0xc
mov eax, dword [esp + 0x20]
mov byte [esp + 0x9c], 5
test eax, eax
jne 0x1003a86d
mov edx, dword [ebp + 0x1c]
mov eax, dword [edi + 4]
push 1
lea ecx, [esp + 0x18]
mov dword [ebx + edx], eax
mov byte [esp + 0xa0], 3
call fcn.10002ae0
jmp 0x1003a92b
mov eax, esi
sub eax, 0
je 0x1003a8db
dec eax
je 0x1003a8cc
dec eax
jne 0x1003a8f3
lea ecx, [esp + 0x14]
push ecx
call fcn.1003ad70
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push eax
push ecx
mov ecx, dword [esp + 0x54]
call fcn.10034c60
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [esp + 0x28]
mov dword [ebx + ecx], edx
jmp 0x1003a8f3
lea edx, [esp + 0x14]
push edx
call fcn.1003ad20
add esp, 4
jmp 0x1003a8ed
lea edx, [esp + 0x14]
push edx
call fcn.1003ad40
add esp, 4
and eax, 0xff
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + ecx], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 3
test eax, eax
je 0x1003a91d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003a913
dec al
mov byte [ecx], al
jmp 0x1003a91d
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100359a0
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
add edi, 0xc
add ebx, 4
cmp edi, 0x10041ad8
mov dword [esp + 0x28], edi
jl 0x1003a813
mov eax, dword [esp + 0x40]
mov byte [esp + 0x9c], 2
test eax, eax
je 0x1003a96b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003a961
dec al
mov byte [ecx], al
jmp 0x1003a96b
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.100359a0
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x9c], 6
call fcn.1003b380
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x9c], 0
test ecx, ecx
je 0x1003a9b3
mov al, byte [ecx - 1]
test al, al
je 0x1003a9a8
dec al
mov byte [ecx - 1], al
jmp 0x1003a9b3
dec ecx
push ecx
mov ecx, dword [esp + 0x64]
call fcn.100359a0
mov ecx, dword [esp + 0x94]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret