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

Disassembly:
sub esp, 0x48
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x44], eax
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
test esi, esi
jne 0x4393ae
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0044bf41
add esp, 0x48
ret
cmp dword [esi + 0x14], 1
je 0x4395a1
test byte [esi + 0x50], 0xf
push edi
je 0x43941e
push 4
push 0
lea eax, [esi + 0xc8]
push 0x44e8c9
push eax
call fcn.00434a90
add esp, 0x10
cmp eax, 1
je 0x4393ea
test eax, eax
je 0x4393ea
mov ebp, 0xfffffff4
jmp 0x4395a0
mov eax, dword [esi + 0xc0]
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0xc4]
mov dword [edi], eax
mov eax, dword [esi + 0xb8]
mov dword [esi + 0x78], eax
mov eax, 8
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], ax
jmp 0x439421
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439427
sub ecx, edx
movzx eax, cx
push ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x4e014]
push dword [esi + 0x4e010]
call fcn.00433390
lea eax, [esp + 0x30]
push 0x8074b50
push eax
call fcn.00430590
push dword [esi + 0x70]
lea eax, [esp + 0x40]
push eax
call fcn.00430590
push dword [edi + 4]
lea eax, [esp + 0x4c]
push dword [edi]
push eax
call fcn.004305c0
push dword [esi + 0x64]
lea eax, [esp + 0x60]
push dword [esi + 0x60]
push eax
call fcn.004305c0
push 0x18
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x4c
cmp eax, 0x18
je 0x4394b5
mov ebp, 0xfffffff2
jmp 0x43959f
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], ebp
cmp dword [esi + 0xa4], ebp
ja 0x4394d1
cmp dword [esi + 0xa0], 0xffffffff
jae 0x4394d1
xor edx, edx
jmp 0x4394d7
lea edx, [esi + 0xa0]
cmp dword [edi + 4], ebp
ja 0x4394e5
cmp dword [edi], 0xffffffff
jae 0x4394e5
xor ecx, ecx
jmp 0x4394e7
mov ecx, edi
cmp dword [esi + 0x64], ebp
ja 0x4394f6
cmp dword [esi + 0x60], 0xffffffff
jae 0x4394f6
xor eax, eax
jmp 0x4394f9
lea eax, [esi + 0x60]
push edx
push ecx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00433b50
mov edx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x1c], eax
test dx, dx
je 0x439532
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [ecx + eax - 1], 0x2f
jne 0x439532
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x439532
or dword [esi + 0x4e008], 0x10
push 0
push 0
push dword [esi + 0x4e008]
movzx eax, word [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push 0x808
push eax
push dword [esi + 0x70]
lea eax, [esp + 0x60]
push dword [edi + 4]
push dword [edi]
push dword [esi + 0x64]
push dword [esi + 0x60]
push 0
push 0x44e8c9
push dword [esp + 0x5c]
push eax
push edx
push dword [esi + 0x5c]
push esi
call fcn.00433470
add esp, 0x54
test eax, eax
jne 0x439591
lea ebp, [eax - 0xf]
jmp 0x43959f
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop ebx
pop edi
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x4e010], 0
mov dword [esi + 0x4e014], 0
test ecx, ecx
je 0x4395cd
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x5c], 0
mov ecx, dword [esp + 0x4c]
mov eax, ebp
pop esi
pop ebp
xor ecx, esp
call fcn.0044bf41
add esp, 0x48
ret