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

Disassembly:
sub esp, 0x48
mov eax, dword [0x470d10]
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 0x4394de
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0045f441
add esp, 0x48
ret
cmp dword [esi + 0x14], 1
je 0x4396d1
test byte [esi + 0x50], 0xf
push edi
je 0x43954e
push 4
push 0
lea eax, [esi + 0xc8]
push 0x461bb9
push eax
call fcn.00434bd0
add esp, 0x10
cmp eax, 1
je 0x43951a
test eax, eax
je 0x43951a
mov ebp, 0xfffffff4
jmp 0x4396d0
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 0x439551
lea edi, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439557
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.004334d0
lea eax, [esp + 0x30]
push 0x8074b50
push eax
call fcn.004306d0
push dword [esi + 0x70]
lea eax, [esp + 0x40]
push eax
call fcn.004306d0
push dword [edi + 4]
lea eax, [esp + 0x4c]
push dword [edi]
push eax
call fcn.00430700
push dword [esi + 0x64]
lea eax, [esp + 0x60]
push dword [esi + 0x60]
push eax
call fcn.00430700
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 0x4395e5
mov ebp, 0xfffffff2
jmp 0x4396cf
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], ebp
cmp dword [esi + 0xa4], ebp
ja 0x439601
cmp dword [esi + 0xa0], 0xffffffff
jae 0x439601
xor edx, edx
jmp 0x439607
lea edx, [esi + 0xa0]
cmp dword [edi + 4], ebp
ja 0x439615
cmp dword [edi], 0xffffffff
jae 0x439615
xor ecx, ecx
jmp 0x439617
mov ecx, edi
cmp dword [esi + 0x64], ebp
ja 0x439626
cmp dword [esi + 0x60], 0xffffffff
jae 0x439626
xor eax, eax
jmp 0x439629
lea eax, [esi + 0x60]
push edx
push ecx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00433c90
mov edx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x1c], eax
test dx, dx
je 0x439662
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [ecx + eax - 1], 0x2f
jne 0x439662
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x439662
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 0x461bb9
push dword [esp + 0x5c]
push eax
push edx
push dword [esi + 0x5c]
push esi
call fcn.004335b0
add esp, 0x54
test eax, eax
jne 0x4396c1
lea ebp, [eax - 0xf]
jmp 0x4396cf
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 0x4396fd
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.0045f441
add esp, 0x48
ret