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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x4bb0c8]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [esp + 0xc], eax
test edi, edi
je 0x4136a5
cmp edi, 0xffffffff
je 0x4136a5
test eax, eax
je 0x4136a5
mov ecx, 0x5a4d
cmp word [edi], cx
jne 0x4136a5
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
jne 0x4136a5
mov edx, dword [ecx + edi + 0x7c]
mov dword [esp + 0x24], edx
test edx, edx
je 0x4136a5
mov ecx, dword [ecx + edi + 0x78]
add ecx, edi
mov dword [esp + 0x20], ecx
je 0x4136a5
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x4136a5
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, edi
mov ebx, dword [ecx + 0x1c]
add edx, edi
add ebx, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp eax, 0xffff
jg 0x413531
movzx eax, ax
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, eax
ja 0x4136a5
cmp edx, esi
jae 0x4136a5
mov eax, dword [ebx + edx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx + 0x18]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4135e1
mov ecx, dword [edx + ebx*4]
mov edx, eax
add ecx, edi
call fcn.0040e4c0
test al, al
jne 0x41357c
mov eax, dword [esp + 0xc]
inc ebx
mov edx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x10]
jb 0x413544
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
movzx eax, word [eax + ebx*2]
mov esi, dword [esi + eax*4]
add esi, edi
je 0x4135e1
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x4135e1
add eax, dword [esp + 0x24]
cmp esi, eax
ja 0x4135e1
lea ecx, [esp + 0x28]
mov edx, 0x103
mov eax, ecx
sub esi, eax
nop dword [eax]
mov al, byte [esi + ecx]
mov byte [ecx], al
test al, al
je 0x4135bf
inc ecx
sub edx, 1
jne 0x4135b0
mov byte [ecx], 0
xor eax, eax
cmp byte [esp + 0x28], al
je 0x4135df
nop word [eax + eax]
cmp byte [esp + eax + 0x28], 0x2e
je 0x4135fa
inc eax
cmp byte [esp + eax + 0x28], 0
jne 0x4135d0
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x104
jae 0x4136be
lea esi, [esp + 0x29]
mov byte [esp + eax + 0x28], 0
add esi, eax
je 0x4135df
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x413620
sub edx, ecx
xor ecx, ecx
nop dword [eax + eax]
cmp ecx, edx
jae 0x41364b
movsx ax, byte [esp + ecx + 0x28]
mov word [esp + ecx*2 + 0x130], ax
inc ecx
cmp ecx, 0x103
jb 0x413630
xor eax, eax
mov edx, str..dll
mov word [esp + ecx*2 + 0x130], ax
push ecx
lea ecx, [esp + 0x134]
call fcn.0040e3c0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00410ad0
test eax, eax
je 0x41367f
cmp eax, 0xffffffff
jne 0x413693
lea ecx, [esp + 0x130]
call fcn.00413400
test eax, eax
je 0x4135df
push 0
mov edx, esi
mov ecx, eax
call fcn.00413450
mov esi, eax
jmp 0x4135e1
mov ecx, dword [esp + 0x33c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 4
call fcn.0046d38a
int3