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

Disassembly:
sub esp, 0x48
mov eax, dword [0x470d00]
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 0x43983e
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x48
ret
cmp dword [esi + 0x14], 1
je 0x439a31
test byte [esi + 0x50], 0xf
push edi
je 0x4398ae
push 4
push 0
lea eax, [esi + 0xc8]
push 0x461bd9
push eax
call fcn.00434f30
add esp, 0x10
cmp eax, 1
je 0x43987a
test eax, eax
je 0x43987a
mov ebp, 0xfffffff4
jmp 0x439a30
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 0x4398b1
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4398b7
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.00433830
lea eax, [esp + 0x30]
push 0x8074b50
push eax
call fcn.00430a20
push dword [esi + 0x70]
lea eax, [esp + 0x40]
push eax
call fcn.00430a20
push dword [edi + 4]
lea eax, [esp + 0x4c]
push dword [edi]
push eax
call fcn.00430a50
push dword [esi + 0x64]
lea eax, [esp + 0x60]
push dword [esi + 0x60]
push eax
call fcn.00430a50
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 0x439945
mov ebp, 0xfffffff2
jmp 0x439a2f
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], ebp
cmp dword [esi + 0xa4], ebp
ja 0x439961
cmp dword [esi + 0xa0], 0xffffffff
jae 0x439961
xor edx, edx
jmp 0x439967
lea edx, [esi + 0xa0]
cmp dword [edi + 4], ebp
ja 0x439975
cmp dword [edi], 0xffffffff
jae 0x439975
xor ecx, ecx
jmp 0x439977
mov ecx, edi
cmp dword [esi + 0x64], ebp
ja 0x439986
cmp dword [esi + 0x60], 0xffffffff
jae 0x439986
xor eax, eax
jmp 0x439989
lea eax, [esi + 0x60]
push edx
push ecx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00433ff0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x1c], eax
test dx, dx
je 0x4399c2
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [ecx + eax - 1], 0x2f
jne 0x4399c2
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x4399c2
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 0x461bd9
push dword [esp + 0x5c]
push eax
push edx
push dword [esi + 0x5c]
push esi
call fcn.00433910
add esp, 0x54
test eax, eax
jne 0x439a21
lea ebp, [eax - 0xf]
jmp 0x439a2f
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 0x439a5d
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.0045f6d1
add esp, 0x48
ret