Function at 0x766540
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, 0x2e0
mov eax, dword [0x58e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x164], 0
cmp dword [ebx + 8], 0
jne 0x76657d
xor eax, eax
jmp 0x766d27
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x76659e
xor eax, eax
jmp 0x766d27
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebx + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
cmp dword [edx], 0x4550
je 0x7665c5
xor eax, eax
jmp 0x766d27
mov eax, dword [ebp - 0x168]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x766612
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + eax + 0x88]
add edx, dword [ebx + 8]
mov dword [ebp - 0x148], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + ecx + 0x8c]
mov dword [ebp - 0x1c4], eax
jmp 0x766645
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + edx + 0x78]
add ecx, dword [ebx + 8]
mov dword [ebp - 0x148], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebx + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x148]
mov eax, dword [ebx + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebx + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x15c], 0
jmp 0x766696
mov eax, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ecx + 0x14]
jae 0x766d21
mov eax, 0xffff
mov word [ebp - 0x144], ax
mov dword [ebp - 0x1bc], 0
cmp dword [ebx + 0xc], 0xffff
ja 0x7666da
mov cx, word [ebp - 0x15c]
mov word [ebp - 0x144], cx
jmp 0x76672c
cmp dword [ebx + 0xc], 0xffff
jbe 0x766725
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x15c]
cmp eax, dword [edx + 0x18]
jae 0x766725
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x1c8]
mov eax, dword [ebx + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x1cc]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x144], ax
jmp 0x76672c
xor eax, eax
jmp 0x766d27
cmp dword [ebx + 0xc], 0xffff
ja 0x766751
movzx ecx, word [ebx + 0xc]
movzx edx, word [ebp - 0x144]
mov eax, dword [ebp - 0x148]
add edx, dword [eax + 0x10]
cmp ecx, edx
je 0x7667f5
cmp dword [ebx + 0xc], 0xffff
jbe 0x766d1c
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x178], edx
mov eax, dword [ebp - 0x178]
mov cl, byte [eax]
mov byte [ebp - 0x149], cl
mov edx, dword [ebp - 0x170]
cmp cl, byte [edx]
jne 0x7667d1
cmp byte [ebp - 0x149], 0
je 0x7667c5
mov eax, dword [ebp - 0x178]
mov cl, byte [eax + 1]
mov byte [ebp - 0x14a], cl
mov edx, dword [ebp - 0x170]
cmp cl, byte [edx + 1]
jne 0x7667d1
add dword [ebp - 0x178], 2
add dword [ebp - 0x170], 2
cmp byte [ebp - 0x14a], 0
jne 0x766773
mov dword [ebp - 0x1c0], 0
jmp 0x7667dc
sbb eax, eax
or eax, 1
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d0], ecx
cmp dword [ebp - 0x1d0], 0
jne 0x766d1c
movzx edx, word [ebp - 0x144]
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [ebx + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x164]
cmp edx, dword [ebp - 0x148]
jb 0x766d1a
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x1c4]
cmp dword [ebp - 0x164], eax
ja 0x766d1a
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x160], 0
push 0x100
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.00774ce0
add esp, 0xc
mov dword [ebp - 0x174], 0
mov edx, dword [ebp - 0x164]
push edx
call fcn.0077c603
add esp, 4
mov dword [ebp - 0x16c], eax
xor eax, eax
mov byte [ebp - 0x14b], al
xor ecx, ecx
mov byte [ebp - 0x14c], cl
xor edx, edx
mov byte [ebp - 0x14d], dl
mov al, byte [ebp - 0x14b]
mov byte [ebp - 0x1a8], al
mov cl, byte [ebp - 0x14c]
mov byte [ebp - 0x1ac], cl
mov dl, byte [ebp - 0x14d]
mov byte [ebp - 0x1b0], dl
mov eax, 0x4195c3
mov dword [ebp - 0x1f0], 0xb4af6af
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edx
mov eax, 0x4abe5136
mov dword [ebp - 0x1f8], 0x907f4c06
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x19c], eax
mov ecx, 0x4195c3
mov dword [ebp - 0x120], 0xb4af681
mov dword [ebp - 0x11c], ecx
mov edx, 0x4abe5136
mov dword [ebp - 0x118], 0x907f4c06
mov dword [ebp - 0x114], edx
xor eax, eax
mov byte [ebp - 0x14e], al
mov cl, byte [ebp - 0x14e]
mov byte [ebp - 0x1b4], cl
movaps xmm0, xmmword [ebp - 0x120]
movaps xmmword [ebp - 0x260], xmm0
mov edx, dword [ebp - 0x19c]
movups xmm0, xmmword [edx]
movaps xmmword [ebp - 0x2e0], xmm0
movaps xmm0, xmmword [ebp - 0x2e0]
pxor xmm0, xmmword [ebp - 0x260]
movaps xmmword [ebp - 0x270], xmm0
movaps xmm0, xmmword [ebp - 0x270]
mov eax, dword [ebp - 0x19c]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00774700
add esp, 8
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov byte [ecx], 0
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [0x58304c]
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 - 0x17c], dl
mov al, byte [ebp - 0x150]
mov byte [ebp - 0x180], al
mov cl, byte [ebp - 0x151]
mov byte [ebp - 0x184], cl
mov edx, 0x4195c3
mov dword [ebp - 0x200], 0x672692af
mov dword [ebp - 0x1fc], edx
mov eax, dword [ebp - 0x200]
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], ecx
mov edx, 0x4abe5136
mov dword [ebp - 0x218], 0x907f4c06
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x240]
mov dword [ebp - 0x1a0], edx
mov eax, 0x4195c3
mov dword [ebp - 0x130], 0xb4af681
mov dword [ebp - 0x12c], eax
mov ecx, 0x4abe5136
mov dword [ebp - 0x128], 0x907f4c06
mov dword [ebp - 0x124], ecx
xor edx, edx
mov byte [ebp - 0x152], dl
mov al, byte [ebp - 0x152]
mov byte [ebp - 0x188], al
movaps xmm0, xmmword [ebp - 0x130]
movaps xmmword [ebp - 0x290], xmm0
mov ecx, dword [ebp - 0x1a0]
movups xmm0, xmmword [ecx]
movaps xmmword [ebp - 0x280], xmm0
movaps xmm0, xmmword [ebp - 0x280]
pxor xmm0, xmmword [ebp - 0x290]
movaps xmmword [ebp - 0x2a0], xmm0
movaps xmm0, xmmword [ebp - 0x2a0]
mov edx, dword [ebp - 0x1a0]
movups xmmword [edx], xmm0
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [0x583044]
lea eax, [ebp - 0x108]
push eax
call dword [0x583048]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jne 0x766b6f
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.0077c657
add esp, 4
xor eax, eax
jmp 0x766d27
xor edx, edx
mov byte [ebp - 0x153], dl
xor eax, eax
mov byte [ebp - 0x154], al
xor ecx, ecx
mov byte [ebp - 0x155], cl
mov dl, byte [ebp - 0x153]
mov byte [ebp - 0x18c], dl
mov al, byte [ebp - 0x154]
mov byte [ebp - 0x190], al
mov cl, byte [ebp - 0x155]
mov byte [ebp - 0x194], cl
mov edx, 0x4195c3
mov dword [ebp - 0x208], 0xb4af6a2
mov dword [ebp - 0x204], edx
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], ecx
mov edx, 0x4abe5136
mov dword [ebp - 0x210], 0x907f4c06
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], ecx
lea edx, [ebp - 0x250]
mov dword [ebp - 0x1a4], edx
mov eax, 0x4195c3
mov dword [ebp - 0x140], 0xb4af681
mov dword [ebp - 0x13c], eax
mov ecx, 0x4abe5136
mov dword [ebp - 0x138], 0x907f4c06
mov dword [ebp - 0x134], ecx
xor edx, edx
mov byte [ebp - 0x156], dl
mov al, byte [ebp - 0x156]
mov byte [ebp - 0x198], al
movaps xmm0, xmmword [ebp - 0x140]
movaps xmmword [ebp - 0x2c0], xmm0
mov ecx, dword [ebp - 0x1a4]
movups xmm0, xmmword [ecx]
movaps xmmword [ebp - 0x2b0], xmm0
movaps xmm0, xmmword [ebp - 0x2b0]
pxor xmm0, xmmword [ebp - 0x2c0]
movaps xmmword [ebp - 0x2d0], xmm0
movaps xmm0, xmmword [ebp - 0x2d0]
mov edx, dword [ebp - 0x1a4]
movups xmmword [edx], xmm0
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.00774700
add esp, 8
test eax, eax
jne 0x766cd7
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.00766540
add esp, 8
mov dword [ebp - 0x164], eax
jmp 0x766d0b
mov edx, dword [ebp - 0x160]
add edx, 1
push edx
call fcn.0077c5c4
add esp, 4
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.00766540
add esp, 8
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x16c]
push edx
call fcn.0077c657
add esp, 4
jmp 0x766d21
jmp 0x766687
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00773418
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret