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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
movzx ecx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], 0xe11ad4e0
jmp 0x40a440
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x30], esp
mov eax, 4
call fcn.004172c0
mov edi, esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x2c], esp
mov eax, 4
call fcn.004172c0
mov ebx, esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x28], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x24], esp
mov eax, 4
call fcn.004172c0
mov edx, esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x20], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x1c], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x18], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x14], esp
mov eax, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
mov word [eax], cx
mov dword [ebx], esi
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov dword [edx], 0
mov eax, dword [edi]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
sete byte [ebp - 0xe]
mov dword [ebp - 0x34], 0x439c29cb
nop
nop
mov eax, dword [ebp - 0x34]
cmp eax, 0x9790979c
jg 0x40a460
cmp eax, 0x8d590696
jne 0x40a440
jmp 0x40a35c
cmp eax, 0x9a462faa
jg 0x40a4a0
cmp eax, 0x9790979d
jne 0x40a440
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
movzx eax, word [eax]
cmp eax, 0x5a4d
mov eax, 0xae74e86a
jne 0x40a491
mov eax, 0x151f7154
mov dword [ebp - 0x34], eax
jmp 0x40a440
cmp eax, 0xa962a3de
jg 0x40a4c0
cmp eax, 0x9a462fab
jne 0x40a440
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
mov dword [ebp - 0x34], 0x13be64fa
jmp 0x40a440
cmp eax, 0xae74e869
jg 0x40a4de
cmp eax, 0xa962a3df
jne 0x40a440
mov dword [ebp - 0x34], 0x15e58039
jmp 0x40a440
cmp eax, 0xe11ad4df
jg 0x40a4fc
cmp eax, 0xae74e86a
jne 0x40a440
mov dword [ebp - 0x34], 0x9a462fab
jmp 0x40a440
cmp eax, 0xf351b5ae
jg 0x40a51a
cmp eax, 0xe11ad4e0
jne 0x40a440
mov dword [ebp - 0x34], 0x8d590696
jmp 0x40a440
cmp eax, 0xfe16681d
jg 0x40a538
cmp eax, 0xf351b5af
jne 0x40a440
mov dword [ebp - 0x34], 0x9a462fab
jmp 0x40a440
cmp eax, 0x5561ee2
jg 0x40a56c
cmp eax, 0xfe16681e
jne 0x40a440
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov eax, dword [ebp - 0x2c]
movzx edi, word [eax]
mov eax, 0x374ecdaf
cmp dword [edx + 0x18], edi
jbe 0x40a564
mov eax, 0x54479723
mov dword [ebp - 0x34], eax
jmp 0x40a440
cmp eax, 0x13be64f9
jg 0x40a657
cmp eax, 0x5561ee3
jne 0x40a440
mov eax, 4
call fcn.004172c0
mov eax, 4
call fcn.004172c0
mov edi, esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x38], esp
mov eax, 4
call fcn.004172c0
mov ebx, esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x3c], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x40], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x44], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x48], esp
mov eax, 4
call fcn.004172c0
mov dword [ebp - 0x4c], esp
mov eax, 4
call fcn.004172c0
mov edx, esp
mov eax, 4
call fcn.004172c0
mov eax, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x48]
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov word [eax], cx
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [ebp - 0x44]
mov dword [eax], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax], 0
mov dword [edx], 0
mov dword [ebx], esi
mov eax, dword [ebx]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x8d590696
jmp 0x40a440
cmp eax, 0x68210b85
jg 0x40a6c9
cmp eax, 0x66bbd661
jg 0x40a6ed
cmp eax, 0x54479722
jg 0x40a716
cmp eax, 0x4657ddee
jg 0x40a772
cmp eax, 0x439c29ca
jg 0x40a78c
cmp eax, 0x374ecdae
jg 0x40a7b0
cmp eax, 0x151f7154
je 0x40a7c7
cmp eax, 0x15e58039
jne 0x40a7f8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
movzx eax, word [eax + 0x18]
cmp eax, 0x10b
setne byte [ebp - 0xd]
mov dword [ebp - 0x34], 0x68210b86
jmp 0x40a440
cmp eax, 0x68210b86
jne 0x40a440
mov al, byte [ebp - 0xd]
test al, al
mov eax, 0xf351b5af
jne 0x40a6e5
mov eax, 0x66bbd662
mov dword [ebp - 0x34], eax
jmp 0x40a440
cmp eax, 0x66bbd662
jne 0x40a440
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
add eax, dword [edx + 0x78]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [ebp - 0x34], 0xfe16681e
jmp 0x40a440
cmp eax, 0x54479723
jne 0x40a440
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
add eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
add eax, dword [edx + 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
movzx edx, word [edx]
mov edi, dword [ebp - 0x18]
mov edi, dword [edi]
movzx edx, word [edi + edx*2]
mov edi, dword [ebp - 0x1c]
mov edi, dword [edi]
add eax, dword [edi + edx*4]
mov edx, dword [ebp - 0x30]
mov dword [edx], eax
mov dword [ebp - 0x34], 0x13be64fa
jmp 0x40a440
cmp eax, 0x4657ddef
jne 0x40a440
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], 0x15e58039
jmp 0x40a440
cmp eax, 0x439c29cb
jne 0x40a440
mov al, byte [ebp - 0xe]
test al, al
mov eax, 0x9790979d
jne 0x40a7a8
mov eax, 0xfe16681e
mov dword [ebp - 0x34], eax
jmp 0x40a440
cmp eax, 0x374ecdaf
jne 0x40a440
mov dword [ebp - 0x34], 0x9a462fab
jmp 0x40a440
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
add eax, dword [edx + 0x3c]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, 0xf351b5af
cmp dword [edx], 0x4550
jne 0x40a7f0
mov eax, 0xa962a3df
mov dword [ebp - 0x34], eax
jmp 0x40a440
cmp eax, 0x13be64fa
jne 0x40a440
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret