Function at 0x401970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40de70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x414004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, 0x5a4d
mov dword [ebp - 4], 0
cmp word [eax], cx
je 0x4019e5
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x4019b1
push str.VirtualAlloc
push dword [0x45b3b4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x2000
push dword [edi + 0x50]
mov esi, eax
push dword [edi + 0x34]
mov dword [ebp - 0x14], esi
call esi
push 0
mov ebx, eax
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
test ebx, ebx
jne 0x401a4c
push 4
push 0x2000
push dword [edi + 0x50]
push ebx
call esi
mov ebx, eax
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
test ebx, ebx
je 0x4019c1
push str.HeapAlloc
push dword [0x45b3b4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push str.GetProcessHeap
push dword [0x45b3b4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push 0x14
push 0
push eax
call esi
mov esi, eax
push 4
push 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
push dword [edi + 0x50]
push ebx
call dword [ebp - 0x14]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [ebp - 0x14]
push 0
mov dword [ebp - 0x14], eax
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x54]
add eax, dword [ecx + 0x3c]
push eax
push ecx
push dword [ebp - 0x14]
call fcn.0040bd20
mov ecx, dword [ebp - 0x18]
mov edx, edi
push esi
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.00401080
mov edx, ebx
add esp, 0x10
sub edx, dword [edi + 0x34]
je 0x401b74
mov ecx, esi
call fcn.00401590
mov ecx, esi
call fcn.004016d0
mov ecx, esi
call fcn.004013a0
mov eax, dword [esi]
cmp dword [eax + 0x28], 0
je 0x401bff
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
mov eax, dword [esi]
push 0
mov edi, dword [eax + 0x28]
add edi, ebx
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
push 1
push ebx
call edi
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
push 0
call dword [0x45b3b0]
mov dword [esi + 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret