Function at 0x10059b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x144], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x144]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x10059bc3
xor eax, eax
jmp 0x10059ec3
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x168], 0
push 0x40
push 0
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.10045030
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0x1a8], dx
mov dword [ebp - 0x16c], 0x40
lea eax, [ebp - 0x168]
push eax
push 0x40
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059c2f
cmp dword [ebp - 0x168], 0x40
je 0x10059c36
xor eax, eax
jmp 0x10059ec3
mov ecx, dword [ebp - 0xfc]
add ecx, 0x40
mov dword [ebp - 0xfc], ecx
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0xf8]
push edx
call fcn.10045030
add esp, 0xc
mov dword [ebp - 0xf8], 0x4550
mov eax, 0xe0
mov word [ebp - 0xe4], ax
mov ecx, 0x2000
mov word [ebp - 0xe2], cx
mov edx, 1
mov word [ebp - 0xf2], dx
mov eax, 0x10b
mov word [ebp - 0xe0], ax
lea ecx, [ebp - 0x168]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059cc8
cmp dword [ebp - 0x168], 0xf8
je 0x10059ccf
xor eax, eax
jmp 0x10059ec3
mov edx, dword [ebp - 0xfc]
add edx, 0xf8
mov dword [ebp - 0xfc], edx
push 0x28
push 0
lea eax, [ebp - 0x1d0]
push eax
call fcn.10045030
add esp, 0xc
push 8
push 0x100740ac
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.10046790
add esp, 0xc
mov edx, dword [ebp - 0xfc]
add edx, 0x28
sub edx, dword [ebp - 0x148]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x168]
push ecx
push 0x28
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059d58
cmp dword [ebp - 0x168], 0x28
je 0x10059d5f
xor eax, eax
jmp 0x10059ec3
mov edx, dword [ebp - 0xfc]
add edx, 0x28
mov dword [ebp - 0xfc], edx
push 0x40
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.10045030
add esp, 0xc
mov dword [ebp - 0x140], 0x40
mov dword [ebp - 0x13c], 0x727444
mov dword [ebp - 0x138], 0x40
mov ecx, dword [ebp + 0x14]
add ecx, 0x58
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0x168]
push edx
push 0x40
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059dd8
cmp dword [ebp - 0x168], 0x40
je 0x10059ddf
xor eax, eax
jmp 0x10059ec3
mov eax, dword [ebp - 0xfc]
add eax, 0x40
mov dword [ebp - 0xfc], eax
push 0x18
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.10045030
add esp, 0xc
mov edx, dword [ebp + 0x14]
add edx, 0x18
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x15c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x158], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x154], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x150], edx
lea eax, [ebp - 0x168]
push eax
push 0x18
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059e6a
cmp dword [ebp - 0x168], 0x18
je 0x10059e6e
xor eax, eax
jmp 0x10059ec3
mov ecx, dword [ebp - 0xfc]
add ecx, 0x18
mov dword [ebp - 0xfc], ecx
lea edx, [ebp - 0x168]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10059eab
mov ecx, dword [ebp - 0x168]
cmp ecx, dword [ebp + 0x14]
je 0x10059eaf
xor eax, eax
jmp 0x10059ec3
mov edx, dword [ebp - 0xfc]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0xfc], edx
mov eax, 1
mov ecx, dword [ebp - 0x14c]
xor ecx, ebp
call fcn.1004501f
mov esp, ebp
pop ebp
ret 0x10