Function at 0x40f430
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, 0x2f0
mov eax, dword [0x42a014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x168], 0
cmp dword [ebp - 0x144], 0
jne 0x40f47c
xor eax, eax
jmp 0x40fc3d
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40f4a0
xor eax, eax
jmp 0x40fc3d
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
cmp dword [edx], 0x4550
je 0x40f4ca
xor eax, eax
jmp 0x40fc3d
mov eax, dword [ebp - 0x16c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x40f51a
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx + eax + 0x88]
add edx, dword [ebp - 0x144]
mov dword [ebp - 0x148], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx + ecx + 0x8c]
mov dword [ebp - 0x1cc], eax
jmp 0x40f550
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + edx + 0x78]
add ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x144]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x160], 0
jmp 0x40f5aa
mov eax, dword [ebp - 0x160]
add eax, 1
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x160]
cmp edx, dword [ecx + 0x14]
jae 0x40fc37
mov eax, 0xffff
mov word [ebp - 0x14c], ax
mov dword [ebp - 0x1c4], 0
cmp dword [ebp - 0x170], 0xffff
ja 0x40f5f1
mov cx, word [ebp - 0x160]
mov word [ebp - 0x14c], cx
jmp 0x40f649
cmp dword [ebp - 0x170], 0xffff
jbe 0x40f642
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x160]
cmp eax, dword [edx + 0x18]
jae 0x40f642
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x144]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x214]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x14c], ax
jmp 0x40f649
xor eax, eax
jmp 0x40fc3d
cmp dword [ebp - 0x170], 0xffff
ja 0x40f674
movzx ecx, word [ebp - 0x170]
movzx edx, word [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
add edx, dword [eax + 0x10]
cmp ecx, edx
je 0x40f71e
cmp dword [ebp - 0x170], 0xffff
jbe 0x40fc32
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
mov cl, byte [eax]
mov byte [ebp - 0x14d], cl
mov edx, dword [ebp - 0x178]
cmp cl, byte [edx]
jne 0x40f6fa
cmp byte [ebp - 0x14d], 0
je 0x40f6ee
mov eax, dword [ebp - 0x180]
mov cl, byte [eax + 1]
mov byte [ebp - 0x14e], cl
mov edx, dword [ebp - 0x178]
cmp cl, byte [edx + 1]
jne 0x40f6fa
add dword [ebp - 0x180], 2
add dword [ebp - 0x178], 2
cmp byte [ebp - 0x14e], 0
jne 0x40f69c
mov dword [ebp - 0x1c8], 0
jmp 0x40f705
sbb eax, eax
or eax, 1
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0
jne 0x40fc32
movzx edx, word [ebp - 0x14c]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
cmp edx, dword [ebp - 0x148]
jb 0x40fc30
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x1cc]
cmp dword [ebp - 0x168], eax
ja 0x40fc30
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x164], 0
push 0x100
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004151e0
add esp, 0xc
mov dword [ebp - 0x17c], 0
mov edx, dword [ebp - 0x168]
push edx
call fcn.00417457
add esp, 4
mov dword [ebp - 0x174], eax
xor eax, eax
mov byte [ebp - 0x14f], al
xor ecx, ecx
mov byte [ebp - 0x150], cl
xor edx, edx
mov byte [ebp - 0x151], dl
mov al, byte [ebp - 0x14f]
mov byte [ebp - 0x184], al
mov cl, byte [ebp - 0x150]
mov byte [ebp - 0x188], cl
mov dl, byte [ebp - 0x151]
mov byte [ebp - 0x18c], dl
mov dword [ebp - 0x1e8], 0x319887cb
mov dword [ebp - 0x1e4], 0x75b8b761
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x1f0], 0xe0eb6aea
mov dword [ebp - 0x1ec], 0x10104890
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x140], 0x319887e5
mov dword [ebp - 0x13c], 0x75b8b761
mov dword [ebp - 0x138], 0xe0eb6aea
mov dword [ebp - 0x134], 0x10104890
xor edx, edx
mov byte [ebp - 0x152], dl
mov al, byte [ebp - 0x152]
mov byte [ebp - 0x190], al
movaps xmm0, xmmword [ebp - 0x140]
movaps xmmword [ebp - 0x270], xmm0
mov ecx, dword [ebp - 0x1a4]
movups xmm0, xmmword [ecx]
movaps xmmword [ebp - 0x2f0], xmm0
movaps xmm0, xmmword [ebp - 0x2f0]
pxor xmm0, xmmword [ebp - 0x270]
movaps xmmword [ebp - 0x280], xmm0
movaps xmm0, xmmword [ebp - 0x280]
mov edx, dword [ebp - 0x1a4]
movups xmmword [edx], xmm0
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call fcn.00414d30
add esp, 8
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov byte [eax], 0
mov ecx, dword [ebp - 0x164]
add ecx, 1
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ecx, ecx
mov byte [ebp - 0x153], cl
xor edx, edx
mov byte [ebp - 0x154], dl
xor eax, eax
mov byte [ebp - 0x155], al
mov cl, byte [ebp - 0x153]
mov byte [ebp - 0x194], cl
mov dl, byte [ebp - 0x154]
mov byte [ebp - 0x198], dl
mov al, byte [ebp - 0x155]
mov byte [ebp - 0x19c], al
mov dword [ebp - 0x1f8], 0x5df4e3cb
mov dword [ebp - 0x1f4], 0x75b8b761
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x228], 0xe0eb6aea
mov dword [ebp - 0x224], 0x10104890
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x244], ecx
lea edx, [ebp - 0x250]
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x130], 0x319887e5
mov dword [ebp - 0x12c], 0x75b8b761
mov dword [ebp - 0x128], 0xe0eb6aea
mov dword [ebp - 0x124], 0x10104890
xor eax, eax
mov byte [ebp - 0x156], al
mov cl, byte [ebp - 0x156]
mov byte [ebp - 0x1a0], cl
movaps xmm0, xmmword [ebp - 0x130]
movaps xmmword [ebp - 0x2a0], xmm0
mov edx, dword [ebp - 0x1a8]
movups xmm0, xmmword [edx]
movaps xmmword [ebp - 0x290], xmm0
movaps xmm0, xmmword [ebp - 0x290]
pxor xmm0, xmmword [ebp - 0x2a0]
movaps xmmword [ebp - 0x2b0], xmm0
movaps xmm0, xmmword [ebp - 0x2b0]
mov eax, dword [ebp - 0x1a8]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1d4], ecx
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40fa93
mov edx, dword [ebp - 0x174]
push edx
call fcn.004175ae
add esp, 4
xor eax, eax
jmp 0x40fc3d
xor eax, eax
mov byte [ebp - 0x157], al
xor ecx, ecx
mov byte [ebp - 0x158], cl
xor edx, edx
mov byte [ebp - 0x159], dl
mov al, byte [ebp - 0x157]
mov byte [ebp - 0x1bc], al
mov cl, byte [ebp - 0x158]
mov byte [ebp - 0x1b8], cl
mov dl, byte [ebp - 0x159]
mov byte [ebp - 0x1b4], dl
mov dword [ebp - 0x208], 0x319887c6
mov dword [ebp - 0x204], 0x75b8b761
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x210], 0xe0eb6aea
mov dword [ebp - 0x20c], 0x10104890
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x120], 0x319887e5
mov dword [ebp - 0x11c], 0x75b8b761
mov dword [ebp - 0x118], 0xe0eb6aea
mov dword [ebp - 0x114], 0x10104890
xor edx, edx
mov byte [ebp - 0x15a], dl
mov al, byte [ebp - 0x15a]
mov byte [ebp - 0x1b0], al
movaps xmm0, xmmword [ebp - 0x120]
movaps xmmword [ebp - 0x2d0], xmm0
mov ecx, dword [ebp - 0x1ac]
movups xmm0, xmmword [ecx]
movaps xmmword [ebp - 0x2c0], xmm0
movaps xmm0, xmmword [ebp - 0x2c0]
pxor xmm0, xmmword [ebp - 0x2d0]
movaps xmmword [ebp - 0x2e0], xmm0
movaps xmm0, xmmword [ebp - 0x2e0]
mov edx, dword [ebp - 0x1ac]
movups xmmword [edx], xmm0
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [ebp - 0x164]
push edx
call fcn.00414d30
add esp, 8
test eax, eax
jne 0x40fbf2
mov edx, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x17c]
call fcn.0040f430
mov dword [ebp - 0x168], eax
jmp 0x40fc21
mov eax, dword [ebp - 0x164]
add eax, 1
push eax
call fcn.004178b5
add esp, 4
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x17c]
call fcn.0040f430
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.004175ae
add esp, 4
jmp 0x40fc37
jmp 0x40f59b
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret