Function at 0x677480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [eax + 0x10c]
mov ecx, dword [eax + 0xc]
mov edx, ecx
or edx, 2
mov esi, ecx
xor esi, 2
add esi, edx
mov edx, dword [eax]
mov esi, edx
cmovne esi, ecx
cmp ecx, edx
cmovbe esi, edx
mov ecx, dword [eax + 0x18]
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x24]
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
mov ecx, esi
cmovb ecx, eax
cmp eax, esi
cmovbe ecx, esi
mov dword [esp + 0x2c], ecx
mov esi, 0xa
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.00493840
test eax, eax
jne 0x677550
mov edx, eax
or edx, 2
mov dword [esp + 0x4c], eax
mov ecx, eax
xor ecx, 2
add ecx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x3c], eax
je 0x677590
mov dword [esp + 0x30], 0x67
jmp 0x677969
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
nop word cs:[eax + eax]
cmp esi, 6
jne 0x6775b0
mov eax, esi
or eax, 2
xor esi, 2
add esi, eax
je 0x6775b0
xor edi, edi
mov esi, dword [esp + 0x40]
jmp 0x677702
mov esi, 0x15
mov eax, dword [esp + 0x7c]
lea eax, [eax + 0x13c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], 0
xor ebp, ebp
mov edi, dword [esp + 0x48]
jmp 0x677830
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x78]
mov esi, eax
mov eax, dword [esi + 0x10c]
lea ecx, [ebp + ebp*2]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.007c51a0
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebp
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0067d260
test eax, eax
jne 0x6776f0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 8], 0
call fcn.00687fb0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x6776f0
mov eax, 0xa
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, ebp
shl edx, 4
mov ecx, dword [ecx + edx]
mov dword [esp + 0x54], ecx
cmp esi, ecx
jae 0x677740
mov ecx, esi
and ecx, 1
xor ecx, esi
not ecx
test ecx, ecx
je 0x677740
mov dword [esp + 0x50], esi
mov eax, 0x1a
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov ebx, ebp
mov edi, dword [esp + 0x48]
jne 0x6777d7
jmp 0x6777a0
mov dword [esp + 0x54], edi
mov edi, eax
mov eax, dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x3c], eax
mov ebx, ebp
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004936c0
test esi, esi
jne 0x677937
mov eax, 5
mov ecx, esi
not ecx
and ecx, 1
add ecx, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
je 0x67793f
cmp eax, 5
jne 0x677760
jmp 0x677969
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov ebx, ebp
jmp 0x677736
mov esi, 6
lea ebp, [ebx + 1]
mov eax, ebp
not eax
and eax, 1
lea eax, [ebx + eax + 1]
cmp ebp, 3
ja 0x677590
test eax, eax
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
jne 0x6775e0
jmp 0x677590
mov esi, 5
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00493840
mov edi, eax
test edi, edi
jne 0x677830
mov eax, 0xe
mov ecx, edi
not ecx
and ecx, 1
add ecx, edi
je 0x677830
cmp eax, 0xe
je 0x677955
imul eax, eax
and eax, 3
cmp eax, 2
je 0x677955
mov dword [esp + 0x48], edi
mov edi, 9
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, ebx
shl ecx, 4
mov eax, dword [eax + ecx]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
jmp 0x6778b3
cmp esi, 5
jne 0x6778f0
mov eax, esi
or eax, 2
xor esi, 2
add esi, eax
je 0x6778f0
mov esi, 9
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.007c51a0
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00687fb0
test eax, eax
je 0x677910
mov edx, edi
mov dword [esp + 0x48], edx
mov edi, 3
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], edx
je 0x677920
cmp edi, 3
je 0x6778c7
imul edi, edi
and edi, 3
cmp edi, 3
jne 0x6777a0
mov esi, 0xf
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
jmp 0x677920
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
jmp 0x6775e0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
cmp esi, 9
jne 0x67793f
mov eax, esi
or eax, 2
xor esi, 2
add esi, eax
jne 0x677760
jmp 0x67793f
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
jmp 0x677969
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp + 0x30], 0x67
mov eax, dword [esp + 0x30]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret