Function at 0x401570
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, 0x378
mov eax, dword [0x42a014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x164], 0
cmp dword [ebp - 0x144], 0
jne 0x4015be
xor eax, eax
jmp 0x40202f
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4015e2
xor eax, eax
jmp 0x40202f
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
cmp dword [edx], 0x4550
je 0x40160c
xor eax, eax
jmp 0x40202f
mov eax, dword [ebp - 0x170]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x40165c
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x170]
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 - 0x170]
mov eax, dword [edx + ecx + 0x8c]
mov dword [ebp - 0x1c8], eax
jmp 0x401692
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x170]
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 - 0x170]
mov edx, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x144]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x168], 0
jmp 0x4016ec
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x168]
cmp edx, dword [ecx + 0x14]
jae 0x402029
mov eax, 0xffff
mov word [ebp - 0x14c], ax
mov dword [ebp - 0x1cc], 0
cmp dword [ebp - 0x16c], 0xffff
ja 0x401733
mov cx, word [ebp - 0x168]
mov word [ebp - 0x14c], cx
jmp 0x40178b
cmp dword [ebp - 0x16c], 0xffff
jbe 0x401784
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x168]
cmp eax, dword [edx + 0x18]
jae 0x401784
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x144]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x29c]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x14c], ax
jmp 0x40178b
xor eax, eax
jmp 0x40202f
mov esi, dword [ebp - 0x16c]
xor edi, edi
mov eax, dword [0x42a898]
cdq
mov ecx, edx
add eax, 8
adc ecx, 0
mov dword [ebp - 0x2ac], eax
mov eax, dword [0x42a89c]
cdq
add eax, 0x8000
adc edx, 0
push 0
push 0x8000
push edx
push eax
mov dword [ebp - 0x1d0], ecx
call fcn.00420760
mov ecx, eax
mov eax, edx
add ecx, 0xffff
adc eax, 0
mov dword [ebp - 0x2a0], eax
mov eax, dword [0x42a89c]
cdq
add eax, 8
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0x2a0]
push eax
push ecx
call fcn.00420760
mov ecx, dword [ebp - 0x2ac]
add ecx, eax
mov eax, dword [ebp - 0x1d0]
adc eax, edx
add ecx, 0x8000
adc eax, 0
push eax
push ecx
call fcn.004013d0
mov dword [ebp - 0x200], esi
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x204], edx
mov edx, dword [ebp - 0x1fc]
cmp edx, dword [ebp - 0x204]
ja 0x40186c
jb 0x40184d
mov eax, dword [ebp - 0x200]
cmp eax, dword [ebp - 0x208]
ja 0x40186c
movzx ecx, word [ebp - 0x16c]
movzx edx, word [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
add edx, dword [eax + 0x10]
cmp ecx, edx
je 0x401b10
mov dword [ebp - 0x210], 0x5a5fab
mov dword [ebp - 0x20c], 3
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
xor ecx, 8
xor edx, 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x218], 8
mov dword [ebp - 0x214], 0
mov eax, dword [0x42a890]
xor eax, 0x8000
mov ecx, dword [0x42a894]
xor ecx, 0
push 0
push 6
push ecx
push eax
call fcn.00420760
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x230], 0x6000
mov dword [ebp - 0x22c], 0
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x21c]
add edx, dword [ebp - 0x220]
adc eax, ecx
add edx, 1
adc eax, 0
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x22c]
sub edx, dword [ebp - 0x230]
sbb eax, ecx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x23c]
push esi
push ecx
push eax
push edx
call fcn.00421ba0
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edx
mov edx, dword [ebp - 0x16c]
xor eax, eax
mov ecx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], esi
mov edx, dword [ebp - 0x24c]
cmp edx, dword [ebp - 0x254]
jb 0x402024
ja 0x4019c1
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x258]
jbe 0x402024
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x17c]
mov cl, byte [eax]
mov byte [ebp - 0x14d], cl
mov edx, dword [ebp - 0x178]
cmp cl, byte [edx]
jne 0x401a37
cmp byte [ebp - 0x14d], 0
je 0x401a2b
mov eax, dword [ebp - 0x17c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x14e], cl
mov edx, dword [ebp - 0x178]
cmp cl, byte [edx + 1]
jne 0x401a37
add dword [ebp - 0x17c], 2
add dword [ebp - 0x178], 2
cmp byte [ebp - 0x14e], 0
jne 0x4019d9
mov dword [ebp - 0x1c4], 0
jmp 0x401a42
sbb eax, eax
or eax, 1
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1d4], ecx
mov eax, dword [ebp - 0x1d4]
cdq
mov esi, eax
mov edi, edx
mov eax, dword [0x42a898]
cdq
mov ecx, edx
add eax, 8
adc ecx, 0
mov dword [ebp - 0x1dc], eax
mov eax, dword [0x42a89c]
cdq
add eax, 0x8000
adc edx, 0
push 0
push 0x8000
push edx
push eax
mov dword [ebp - 0x1e0], ecx
call fcn.00420760
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x1d8], eax
mov eax, dword [0x42a89c]
cdq
add eax, 8
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0x1d8]
push eax
push ecx
call fcn.00420760
mov ecx, dword [ebp - 0x1dc]
add ecx, eax
mov eax, dword [ebp - 0x1e0]
adc eax, edx
add ecx, 0x8000
adc eax, 0
push eax
push ecx
call fcn.004013d0
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
mov edx, dword [ebp - 0x260]
cmp edx, dword [ebp - 0x2a8]
jne 0x402024
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x2a4]
jne 0x402024
movzx ecx, word [ebp - 0x14c]
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x144]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
cmp ecx, dword [ebp - 0x148]
jb 0x402022
mov edx, dword [ebp - 0x148]
add edx, dword [ebp - 0x1c8]
cmp dword [ebp - 0x164], edx
ja 0x402022
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x180], 0
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004151e0
add esp, 0xc
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.00417457
add esp, 4
mov dword [ebp - 0x174], eax
xor edx, edx
mov byte [ebp - 0x14f], dl
xor eax, eax
mov byte [ebp - 0x150], al
xor ecx, ecx
mov byte [ebp - 0x151], cl
mov dl, byte [ebp - 0x14f]
mov byte [ebp - 0x19c], dl
mov al, byte [ebp - 0x150]
mov byte [ebp - 0x194], al
mov cl, byte [ebp - 0x151]
mov byte [ebp - 0x190], cl
mov dword [ebp - 0x270], 0xaf4e655b
mov dword [ebp - 0x26c], 0x4204e642
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x2d0], edx
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x278], 0xb1f4f876
mov dword [ebp - 0x274], 0x2f24f3f1
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x2c4], edx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x130], 0xaf4e6575
mov dword [ebp - 0x12c], 0x4204e642
mov dword [ebp - 0x128], 0xb1f4f876
mov dword [ebp - 0x124], 0x2f24f3f1
xor ecx, ecx
mov byte [ebp - 0x152], cl
mov dl, byte [ebp - 0x152]
mov byte [ebp - 0x18c], dl
movaps xmm0, xmmword [ebp - 0x130]
movaps xmmword [ebp - 0x300], xmm0
mov eax, dword [ebp - 0x1a4]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x2f0], xmm0
movaps xmm0, xmmword [ebp - 0x2f0]
pxor xmm0, xmmword [ebp - 0x300]
movaps xmmword [ebp - 0x310], xmm0
movaps xmm0, xmmword [ebp - 0x310]
mov ecx, dword [ebp - 0x1a4]
movups xmmword [ecx], xmm0
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.00414d30
add esp, 8
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov byte [edx], 0
mov eax, dword [ebp - 0x160]
add eax, 1
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x174]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 0x153], al
xor ecx, ecx
mov byte [ebp - 0x154], cl
xor edx, edx
mov byte [ebp - 0x155], dl
mov al, byte [ebp - 0x153]
mov byte [ebp - 0x1b0], al
mov cl, byte [ebp - 0x154]
mov byte [ebp - 0x188], cl
mov dl, byte [ebp - 0x155]
mov byte [ebp - 0x1bc], dl
mov dword [ebp - 0x280], 0xc322015b
mov dword [ebp - 0x27c], 0x4204e642
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 0x288], 0xb1f4f876
mov dword [ebp - 0x284], 0x2f24f3f1
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2b4], eax
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x140], 0xaf4e6575
mov dword [ebp - 0x13c], 0x4204e642
mov dword [ebp - 0x138], 0xb1f4f876
mov dword [ebp - 0x134], 0x2f24f3f1
xor edx, edx
mov byte [ebp - 0x156], dl
mov al, byte [ebp - 0x156]
mov byte [ebp - 0x1b8], al
movaps xmm0, xmmword [ebp - 0x140]
movaps xmmword [ebp - 0x330], xmm0
mov ecx, dword [ebp - 0x1a8]
movups xmm0, xmmword [ecx]
movaps xmmword [ebp - 0x320], xmm0
movaps xmm0, xmmword [ebp - 0x320]
pxor xmm0, xmmword [ebp - 0x330]
movaps xmmword [ebp - 0x340], xmm0
movaps xmm0, xmmword [ebp - 0x340]
mov edx, dword [ebp - 0x1a8]
movups xmmword [edx], xmm0
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1ec]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x401e85
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.004175ae
add esp, 4
xor eax, eax
jmp 0x40202f
xor edx, edx
mov byte [ebp - 0x157], dl
xor eax, eax
mov byte [ebp - 0x158], al
xor ecx, ecx
mov byte [ebp - 0x159], cl
mov dl, byte [ebp - 0x157]
mov byte [ebp - 0x1b4], dl
mov al, byte [ebp - 0x158]
mov byte [ebp - 0x1a0], al
mov cl, byte [ebp - 0x159]
mov byte [ebp - 0x184], cl
mov dword [ebp - 0x290], 0xaf4e6556
mov dword [ebp - 0x28c], 0x4204e642
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x2e0], edx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x298], 0xb1f4f876
mov dword [ebp - 0x294], 0x2f24f3f1
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x2d4], edx
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x120], 0xaf4e6575
mov dword [ebp - 0x11c], 0x4204e642
mov dword [ebp - 0x118], 0xb1f4f876
mov dword [ebp - 0x114], 0x2f24f3f1
xor ecx, ecx
mov byte [ebp - 0x15a], cl
mov dl, byte [ebp - 0x15a]
mov byte [ebp - 0x198], dl
movaps xmm0, xmmword [ebp - 0x120]
movaps xmmword [ebp - 0x360], xmm0
mov eax, dword [ebp - 0x1ac]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x350], xmm0
movaps xmm0, xmmword [ebp - 0x350]
pxor xmm0, xmmword [ebp - 0x360]
movaps xmmword [ebp - 0x370], xmm0
movaps xmm0, xmmword [ebp - 0x370]
mov ecx, dword [ebp - 0x1ac]
movups xmmword [ecx], xmm0
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1f0], edx
mov eax, dword [ebp - 0x1f0]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.00414d30
add esp, 8
test eax, eax
jne 0x401fe4
mov edx, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x180]
call fcn.00401570
mov dword [ebp - 0x164], eax
jmp 0x402013
mov edx, dword [ebp - 0x160]
add edx, 1
push edx
call fcn.004178b5
add esp, 4
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x180]
call fcn.00401570
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x174]
push eax
call fcn.004175ae
add esp, 4
jmp 0x402029
jmp 0x4016dd
mov eax, dword [ebp - 0x164]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret