Function at 0x43a770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43a9f0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x50]
mov eax, esi
mov ecx, 0x40
call fcn.00404354
cmp word [ebp - 0x50], 0x5a4d
je 0x43a7d2
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43aa0f
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, esi
call fcn.00439db0
lea edx, [ebp - 0x148]
mov ecx, 0xf8
call fcn.00404354
cmp dword [ebp - 0x148], 0x4550
je 0x43a814
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43aa0f
test bl, bl
je 0x43a82e
mov ecx, 0x40
mov edx, dword [ebp - 0xf8]
xor eax, eax
call fcn.0043a488
mov ebx, eax
jmp 0x43a865
push 4
push 0x2000
mov eax, dword [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0x114]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x43a865
push 4
push 0x2000
mov eax, dword [ebp - 0xf8]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x43a882
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43aa0f
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0xf8]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
push 4
push 0x1000
mov eax, dword [ebp - 0xf4]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xf4]
mov edx, edi
mov eax, esi
call fcn.00404354
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov edi, ebx
mov dword [ecx + 0x34], edi
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x148]
mov eax, esi
call fcn.00439ef4
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x114]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test eax, eax
je 0x43a942
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00439ff8
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043a0e4
test al, al
jne 0x43a960
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
call fcn.0041351c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043a3a4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
cmp byte [ebp + 8], 0
je 0x43a9e6
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x43a9e6
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, ecx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
test esi, esi
jne 0x43a9ae
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
call fcn.0041351c
push 0
push 1
push edi
call esi
test eax, eax
jne 0x43a9df
mov eax, 0x447f98
xor edx, edx
call fcn.00406b98
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43aa0f
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43aa09
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc