Function at 0x401120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.00404130
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
call fcn.00404130
nop
bt eax, 0xe0
xor ah, 0x3d
sub al, 0xb5
test ebp, ebx
xor al, al
xadd eax, eax
xadd ah, al
neg eax
imul eax, ebx, 0x78b3bbf9
inc eax
imul eax, edx, 0xf9539b11
and eax, 0xc7e2d3ce
movsx eax, si
bsf eax, ecx
movsx eax, bx
btc eax, 0xb
dec eax
test cl, bl
mov eax, 0x2e383802
mov ah, 0x3d
mov ah, 0x8e
shrd eax, ebp, cl
movzx eax, dh
movsx eax, bl
test ecx, eax
shrd eax, esi, cl
rcl ah, 0x62
test ecx, edi
imul eax, ebp
bsf eax, edx
xadd al, ah
test edi, esi
dec al
bswap eax
dec ah
sub al, cl
nop
bt eax, 0xe0
xor ah, 0x3d
sub al, 0xb5
test ebp, ebx
xor al, al
xadd eax, eax
xadd ah, al
neg eax
imul eax, ebx, 0x78b3bbf9
inc eax
imul eax, edx, 0xf9539b11
and eax, 0xc7e2d3ce
movsx eax, si
bsf eax, ecx
movsx eax, bx
btc eax, 0xb
dec eax
test cl, bl
mov eax, 0x2e383802
mov ah, 0x3d
mov ah, 0x8e
shrd eax, ebp, cl
movzx eax, dh
movsx eax, bl
test ecx, eax
shrd eax, esi, cl
rcl ah, 0x62
test ecx, edi
imul eax, ebp
bsf eax, edx
xadd al, ah
test edi, esi
dec al
bswap eax
dec ah
sub al, cl
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x401265
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 8], esi
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
cmp dword [esi], 0x4550
je 0x4012a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x34]
push 4
push 0x2000
push eax
push ecx
call dword [0x40ef34]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4012ed
mov edx, dword [esi + 0x50]
push 4
push 0x2000
push edx
push eax
call dword [0x40ef34]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4012ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push 0x14
push 0
call dword [0x40ef30]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
call fcn.00404130
mov dword [edi + 0xc], 0
call fcn.00404130
push 0
mov dword [edi + 8], 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push 0
mov dword [edi + 0x10], 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
mov ecx, dword [esi + 0x50]
mov edi, dword [ebp - 4]
push 4
push 0x1000
push ecx
push edi
call dword [0x40ef34]
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov edx, dword [esi + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [0x40ef34]
mov edi, eax
mov dword [ebp - 0xc], edi
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esi + 0x54]
mov esi, eax
add ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404130
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
add edx, eax
mov dword [esi], edx
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov dword [eax + 0x34], edi
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
call fcn.00401560
add esp, 0xc
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov eax, dword [ebp - 8]
sub edi, dword [eax + 0x34]
call fcn.00404130
test edi, edi
je 0x401482
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push edi
push esi
call fcn.00401a80
add esp, 8
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
push esi
call fcn.00401c10
add esp, 4
test eax, eax
jne 0x4014a7
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
jmp 0x401516
call fcn.00404130
push esi
call fcn.00401810
add esp, 4
call fcn.00404130
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x401551
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
mov edi, dword [edx + 0x28]
add edi, ecx
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
test edi, edi
je 0x401516
call fcn.00404130
mov eax, dword [ebp - 4]
push 0
push 1
push eax
call edi
mov edi, eax
call fcn.00404130
test edi, edi
jne 0x401539
push esi
call fcn.004022c0
add esp, 4
push 0
call ebx
push 0
call ebx
push 0
call ebx
call fcn.00404130
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404130
push 0
call ebx
push 0
call ebx
push 0
call ebx
mov dword [esi + 0x10], 1
call fcn.00404130
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret