Function at 0x401deb
Capabilities:
Parse pe header

Disassembly:
push 0x34
mov eax, 0x484963
call fcn.00481fe0
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
push 0x4a2ae8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3b
call fcn.0045c7d0
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
push 0x2bbf
stosd dword es:[edi], eax
push 0x3390808c
push 0x99b683e
stosd dword es:[edi], eax
push 0x33529905
push 4
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0xc
push eax
call fcn.004014be
add esp, 0x1c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [ebp + 0x10], 0x40
mov edi, eax
jae 0x401e7e
mov eax, 0x401ff6
ret
mov ecx, dword [ebp - 0x30]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401e91
mov eax, 0x401ff6
ret
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp dword [ebp + 0x10], edx
jge 0x401ea5
mov eax, 0x401ff6
ret
lea esi, [eax + ecx]
cmp dword [esi], 0x4550
je 0x401eb6
mov eax, 0x401ff6
ret
mov eax, 0x2000
test word [esi + 0x16], ax
jne 0x401ff0
mov eax, 0xe0
cmp word [esi + 0x14], ax
jne 0x401ff0
lea ebx, [esi + 0xf8]
push ebx
push dword [ebp + 0x10]
mov eax, esi
call fcn.00401c19
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
test eax, eax
jne 0x401ef4
mov eax, 0x401ff6
ret
push pe_nt_image_headers32
push 0x1000
push eax
push 0
call edi
mov edi, dword [ebp - 0x38]
mov dword [edi], eax
test eax, eax
je 0x401fe5
movzx ecx, word [esi + 6]
mov edx, dword [esi + 0x54]
test ecx, ecx
jle 0x401f2d
add ebx, 0x14
mov esi, dword [ebx]
test esi, esi
je 0x401f27
cmp esi, edx
jae 0x401f27
mov edx, esi
add ebx, 0x28
dec ecx
jne 0x401f1b
push edx
push dword [ebp - 0x30]
push eax
call fcn.00457e60
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebx], eax
add eax, 0xf8
mov dword [ecx], eax
mov esi, dword [ebx]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x54]
add esp, 0xc
call fcn.00401c0d
and dword [ebp - 0x2c], 0
mov edi, eax
mov eax, dword [ebp - 0x38]
add edi, dword [eax]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401fe5
mov esi, dword [ebp - 0x34]
and dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, esi
mov edx, dword [eax + 0xc]
test edx, edx
je 0x401f8c
mov edi, dword [ebp - 0x38]
mov edi, dword [edi]
add edi, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x401fc9
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x30]
push edx
push eax
push edi
call fcn.00457e60
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
mov eax, dword [ebp - 0x28]
lea ecx, [eax + esi]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
add esp, 0xc
cmp eax, edx
jae 0x401fc2
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
mov eax, edx
jmp 0x401fcc
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x38]
jmp 0x401fcc
mov eax, dword [eax + 8]
call fcn.00401c0d
add dword [ebp - 0x28], 0x28
add edi, eax
mov eax, dword [ebx]
movzx eax, word [eax + 6]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], eax
jl 0x401f79
mov eax, 0x401feb
ret
mov eax, 0x401ff6
ret