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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x421014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x128], edx
test edi, edi
je 0x4021dd
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4021dd
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x4021dd
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x401f90
mov ecx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
jmp 0x401f96
mov ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
add eax, edi
mov dword [ebp - 0x10c], ecx
xor esi, esi
mov dword [ebp - 0x124], eax
mov ecx, dword [eax + 0x24]
add ecx, edi
mov dword [ebp - 0x148], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0x144], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0x150], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x14c], ecx
test ecx, ecx
je 0x40205f
cmp edx, 0xffff
ja 0x401ffd
movzx eax, si
mov ecx, eax
mov edx, eax
mov eax, dword [ebp - 0x124]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x128]
movzx eax, ax
cmp eax, ecx
jmp 0x402044
cmp esi, dword [eax + 0x18]
jae 0x4021dd
mov eax, dword [ebp - 0x144]
mov ecx, edx
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402033
test dl, dl
je 0x40202f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402033
add eax, 2
add ecx, 2
test dl, dl
jne 0x402013
xor eax, eax
jmp 0x402038
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x148]
test eax, eax
movzx edx, word [edx + esi*2]
je 0x402076
mov eax, dword [ebp - 0x124]
inc esi
mov edx, dword [ebp - 0x128]
cmp esi, dword [ebp - 0x14c]
jb 0x401fd8
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aaea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x150]
movzx eax, dx
mov esi, dword [esi + eax*4]
mov eax, dword [ebp - 0x124]
add esi, edi
cmp esi, eax
jb 0x402061
add eax, dword [ebp - 0x10c]
cmp esi, eax
ja 0x402061
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040be30
add esp, 0xc
push esi
call fcn.0040d2d7
add esp, 4
mov dword [ebp - 0x160], 0x201f972c
mov edi, eax
mov dword [ebp - 0x15c], 0x3e03bce
mov dword [ebp - 0x158], 0xba82a837
lea eax, [ebp - 0x160]
mov dword [ebp - 0x154], 0xe088cf4d
movaps xmm1, xmmword [ebp - 0x160]
push eax
mov dword [ebp - 0x120], 0x201f9702
mov dword [ebp - 0x11c], 0x3e03bce
mov dword [ebp - 0x118], 0xba82a837
mov dword [ebp - 0x114], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x120]
push edi
movaps xmmword [ebp - 0x160], xmm1
call fcn.0040b860
add esp, 8
mov esi, eax
lea eax, [ebp - 0x108]
push edi
mov byte [esi], 0
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x120], 0x4c73f32c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0x3e03bce
mov dword [ebp - 0x118], 0xba82a837
mov dword [ebp - 0x114], 0xe088cf4d
movaps xmm1, xmmword [ebp - 0x120]
push eax
mov dword [ebp - 0x140], 0x201f9702
lea eax, [ebp - 0x108]
mov dword [ebp - 0x13c], 0x3e03bce
mov dword [ebp - 0x138], 0xba82a837
mov dword [ebp - 0x134], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x140]
push eax
movaps xmmword [ebp - 0x120], xmm1
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x4021f2
push edi
call fcn.0040d63f
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040aaea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x120], 0x201f9721
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0x3e03bce
mov dword [ebp - 0x118], 0xba82a837
mov dword [ebp - 0x114], 0xe088cf4d
movaps xmm1, xmmword [ebp - 0x120]
mov dword [ebp - 0x140], 0x201f9702
mov dword [ebp - 0x13c], 0x3e03bce
mov dword [ebp - 0x138], 0xba82a837
mov dword [ebp - 0x134], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x140]
push eax
push esi
movaps xmmword [ebp - 0x120], xmm1
call fcn.0040b860
add esp, 8
test eax, eax
jne 0x402270
mov edx, esi
jmp 0x40227e
lea eax, [esi + 1]
push eax
call fcn.0040e021
add esp, 4
mov edx, eax
mov ecx, dword [ebp - 0x10c]
call fcn.00401f20
push edi
mov esi, eax
call fcn.0040d63f
add esp, 4
jmp 0x402061