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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
xor edx, edx
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov dword [eax], edx
mov eax, 0x5a4d
push edi
mov esi, dword [ebp + 0x208]
cmp ax, word [esi]
jne 0x401b1f
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x401b1f
cmp dword [eax + esi + 0x74], edx
jbe 0x401b1f
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x2c], ecx
cmp ecx, 1
jb 0x401b1f
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x401b1f
add eax, esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401b1f
add eax, esi
mov dword [esp + 0x20], eax
lea eax, [ecx + 1]
push 4
imul eax, eax, 0x88
push 0x3000
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x401b1f
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x14], ecx
xor edx, edx
lea ecx, [ebx + 8]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
sub dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebx + ebp]
mov ebp, dword [esp + 0x38]
test ebx, ebx
je 0x401a39
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 0x4019f8
cmp dword [esp + 0x20], 0
je 0x4019f8
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4019f8
add eax, esi
mov dword [esp + 0x30], eax
cdq
cmp edx, dword [ebp + 0x20c]
jb 0x4019f8
ja 0x4019ce
cmp eax, dword [ebp + 0x208]
jbe 0x4019f8
cmp edx, dword [ebp + 0x214]
ja 0x4019f8
jb 0x4019e0
cmp eax, dword [ebp + 0x210]
jae 0x4019f8
push dword [esp + 0x30]
push 0x7f
push ebx
call fcn.0041e070
add esp, 0xc
cmp byte [ebx], 0
jne 0x401a09
mov ecx, dword [esp + 0x10]
push ecx
push str.func__u
push 0x7f
push ebx
call fcn.00401860
add esp, 0x10
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a0e
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 + 0x2c]
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 0x40196a
mov ebx, dword [esp + 0x28]
push 0x401893
push 0x88
push eax
push ebx
call fcn.00428430
mov edi, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [ebp + 0x210]
mov ecx, dword [ebp + 0x214]
imul edx, edi, 0x88
push 4
push 0x3000
mov dword [edx + ebx], eax
mov eax, dword [esp + 0x44]
mov dword [edx + ebx + 4], ecx
mov byte [edx + 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 0x401b0a
mov esi, ebx
test edi, edi
je 0x401afc
mov edi, dword [esp + 0x28]
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 0x401aca
sub ebx, ecx
lea eax, [esi + 5]
push ebx
push edi
push eax
mov byte [esi + 4], bl
call fcn.0041be70
add esi, 5
add esp, 0xc
add esi, ebx
add edi, 0x88
sub ebp, 1
jne 0x401ac0
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 + 0x30]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, ebx
jmp 0x401b21
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8