Function at 0x4014fb
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
xor edx, edx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov dword [eax], edx
mov eax, 0x5a4d
mov esi, dword [ebp + 0x208]
cmp ax, word [esi]
je 0x401523
xor eax, eax
jmp 0x40177a
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40151c
cmp dword [eax + esi + 0x74], edx
jbe 0x40151c
push edi
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x24], ecx
cmp ecx, 1
jb 0x40155c
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40155c
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x401563
xor eax, eax
jmp 0x401779
add eax, esi
mov dword [esp + 0x1c], eax
lea eax, [ecx + 1]
push ebx
push 4
imul eax, eax, 0x88
push 0x3000
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x401778
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
cmp dword [esp + 0x28], eax
jbe 0x4016b0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [ebx + 8]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
sub dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebx + ebp]
mov ebp, dword [esp + 0x38]
test ebx, ebx
je 0x401694
xor ecx, ecx
mov eax, esi
cdq
add ebx, eax
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x24]
adc ecx, edx
mov eax, dword [esp + 0x30]
mov dword [ebx - 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx - 8], eax
mov byte [ebx], 0
cmp ecx, dword [edi + 0x18]
jae 0x401653
cmp dword [esp + 0x20], 0
je 0x401653
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x401653
add eax, esi
mov dword [esp + 0x30], eax
cdq
cmp edx, dword [ebp + 0x20c]
jb 0x401653
ja 0x401629
cmp eax, dword [ebp + 0x208]
jb 0x401653
cmp edx, dword [ebp + 0x214]
ja 0x401653
jb 0x40163b
cmp eax, dword [ebp + 0x210]
ja 0x401653
push dword [esp + 0x30]
push 0x7f
push ebx
call fcn.00422b5a
add esp, 0xc
cmp byte [ebx], 0
jne 0x401664
mov ecx, dword [esp + 0x10]
push ecx
push str.func__u
push 0x7f
push ebx
call fcn.004014bb
add esp, 0x10
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401669
sub ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [ecx + 5]
mov ecx, dword [esp + 0x3c]
add dword [ecx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
add dword [esp + 0x24], 0x88
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x14]
inc edx
add ebx, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp edx, ecx
jb 0x4015c5
mov ebx, dword [esp + 0x2c]
push 0x4014ee
push 0x88
push eax
push ebx
call fcn.004227c0
mov edi, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [ebp + 0x210]
imul ecx, edi, 0x88
push 4
push 0x3000
mov dword [ecx + ebx], eax
mov eax, dword [ebp + 0x214]
mov dword [ecx + ebx + 4], eax
mov eax, dword [esp + 0x44]
mov byte [ecx + ebx + 8], 0
add dword [eax], 5
mov eax, dword [eax]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x401765
mov esi, ebx
test edi, edi
je 0x401757
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
add edi, 8
mov eax, dword [edi - 8]
mov ebx, edi
mov dword [esi], eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401725
sub ebx, ecx
lea eax, [esi + 5]
push ebx
push edi
push eax
mov byte [esi + 4], bl
call fcn.004309f0
add esi, 5
add esp, 0xc
add esi, ebx
add edi, 0x88
sub ebp, 1
jne 0x40171b
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
and dword [ebp + 0x218], 0
and dword [ebp + 0x21c], 0
push 0x8000
push 0
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8