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

Disassembly:
push 0xc
mov eax, 0x101a1952
call fcn.1017513a
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x3c]
add ebx, eax
movzx eax, word [ebx + 0x14]
add eax, ebx
cmp dword [ebx], 0x4550
mov dword [ebp - 0x14], eax
je 0x100399cb
xor eax, eax
jmp 0x10039ba5
mov eax, 0x10b
cmp word [ebx + 0x18], ax
jne 0x100399c4
mov eax, dword [ebx + 0x50]
mov esi, dword [ebp + 8]
add eax, 0x1000
push 4
push 0x2000
push eax
xor eax, eax
lea edi, [esi + 0x18]
cmp dword [ebp + 0x18], eax
mov edx, dword [edi]
mov dword [ebp + 0x18], eax
jge 0x10039bad
push dword [ebp + 0x10]
push eax
push dword [ecx + 0x20]
mov ecx, edi
call dword [edx + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
test eax, eax
je 0x100399c4
lea eax, [esi + 0x2c]
mov ecx, 0x1000
mov esi, dword [eax]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x54]
push 0x40
add eax, ecx
push ecx
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x20]
call dword [esi + 8]
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x18]
test eax, eax
je 0x100399c4
mov eax, dword [esi]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x18]
mov ecx, eax
call fcn.100a2176
mov eax, dword [edi]
pop ecx
pop ecx
mov ecx, edi
call dword [eax + 0x18]
push dword [ebx + 0x54]
add eax, 0x1000
push dword [ebp + 0xc]
push eax
call fcn.100e1b00
movzx ebx, word [ebx + 6]
xor ecx, ecx
push 0x18
pop edx
mov eax, ebx
mov dword [ebp + 0x10], ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10174e2b
add esp, 0x10
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x10039ac9
push 0x10039bdd
push 0x10039bbb
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 0x18
push esi
call fcn.10174f40
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x40], esi
test eax, eax
je 0x10039ae3
push eax
call fcn.1003b1f3
mov esi, dword [ebx + 0x40]
cmp dword [ebp + 0x10], 0
jbe 0x10039b72
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov edx, dword [esi]
push 0x40
push 0x1000
lea ecx, [eax + 0x1000]
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [eax + 4]
add eax, ecx
mov ecx, esi
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x20]
call dword [edx + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
je 0x100399c4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
test edx, edx
je 0x10039b5d
mov eax, dword [ecx]
cmp edx, eax
cmovbe eax, edx
push eax
mov eax, dword [ecx + 0xc]
mov ecx, esi
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi]
call dword [eax + 0x18]
push eax
call fcn.100e1b00
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp + 0x18]
add ecx, 0x28
inc eax
mov dword [ebp + 8], ecx
add esi, 0x18
mov dword [ebp + 0x18], eax
cmp eax, dword [ebp + 0x10]
jl 0x10039af6
mov ecx, ebx
call fcn.10039511
cmp dword [eax + 0x7c], 0
mov esi, dword [eax + 0x78]
je 0x10039ba2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
add esi, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x100c]
add eax, 0x1000
add ecx, eax
mov dword [ebx + 0x68], ecx
xor eax, eax
inc eax
call fcn.10175103
ret 0x14
push eax
push dword [ecx + 0x20]
mov ecx, edi
call dword [edx + 8]
jmp 0x10039a08