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

Disassembly:
sub esp, 0x44
mov eax, dword [0x459c80]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
push edi
mov edi, ebp
test esi, esi
jne 0x42e679
or edi, 0xffffffff
jmp 0x42e86d
cmp dword [esi + 0x14], 1
je 0x42e84e
test byte [esi + 0x50], 0xf
je 0x42e6df
push 4
push ebp
lea eax, [esi + 0xc8]
push 0x44bba9
push eax
call fcn.0042a796
add esp, 0x10
cmp eax, 1
je 0x42e6b1
test eax, eax
je 0x42e6b1
push 0xfffffffffffffff4
pop edi
jmp 0x42e84e
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0xb8]
push 8
mov dword [esi + 0x78], eax
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0xbc]
pop eax
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], ax
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e6e5
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.00429486
lea eax, [esp + 0x2c]
push 0x8074b50
push eax
call fcn.0042684a
push dword [esi + 0x70]
lea eax, [esp + 0x3c]
push eax
call fcn.0042684a
lea ebp, [esi + 0x68]
push dword [ebp + 4]
lea eax, [esp + 0x48]
push dword [ebp]
push eax
call fcn.0042686b
lea ebx, [esi + 0x60]
push dword [ebx + 4]
lea eax, [esp + 0x5c]
push dword [ebx]
push eax
call fcn.0042686b
push 0x18
lea eax, [esp + 0x58]
push eax
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x4c
cmp eax, 0x18
je 0x42e777
push 0xfffffffffffffff2
pop edi
xor ebp, ebp
jmp 0x42e84d
add dword [esi + 0x78], 0x18
lea eax, [esi + 0xa0]
push 0
pop ecx
adc dword [esi + 0x7c], ecx
cmp dword [eax + 4], ecx
ja 0x42e793
cmp dword [eax], 0xffffffff
jae 0x42e793
mov eax, ecx
cmp dword [ebp + 4], ecx
ja 0x42e7a0
cmp dword [ebp], 0xffffffff
jae 0x42e7a0
mov ebp, ecx
cmp dword [ebx + 4], ecx
ja 0x42e7ac
cmp dword [ebx], 0xffffffff
jae 0x42e7ac
mov ebx, ecx
push eax
push ebp
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00429aa0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ebx, eax
test dx, dx
je 0x42e7e3
mov eax, dword [esi + 0x5c]
movzx ecx, dx
cmp byte [eax + ecx - 1], 0x2f
jne 0x42e7e3
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x42e7e3
or dword [esi + 0x4e008], 0x10
movzx eax, word [esi + 0xa8]
xor ebp, ebp
push ebp
push ebp
push dword [esi + 0x4e008]
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 + 0x5c]
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
push ebp
push 0x44bba9
push ebx
push eax
push edx
push dword [esi + 0x5c]
push esi
call fcn.00429536
add esp, 0x54
test eax, eax
jne 0x42e83f
push 0xfffffffffffffff1
pop edi
jmp 0x42e84d
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
cmp dword [esi + 0x5c], 0
mov dword [esi + 0x4e010], ebp
mov dword [esi + 0x4e014], ebp
je 0x42e86d
push dword [esi + 0x5c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov dword [esi + 0x5c], ebp
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00449662
add esp, 0x44
ret