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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x66c0e8
mov dword [esp], ebx
call fcn.006495f0
mov edi, eax
test al, al
je 0x66c474
cmp byte [esp + 0x28], 0
mov dword [esp + 8], 0x6c1
jne 0x66bf20
mov dword [esp + 4], 0x80ec54
mov dword [esp], 0
call fcn.007101f0
mov edx, 0x80ec12
cmp eax, 0x80ec54
cmove eax, edx
mov dword [esp], eax
call fcn.00723840
xor ecx, ecx
mov edx, eax
mov eax, dword [ebp + 0xc]
xor ax, ax
or eax, 0x12
mov dword [ebx + 0x63c], eax
xor eax, eax
mov dword [ebx + 0x7a0], edx
mov dword [ebx + 0x600], ecx
mov byte [ebx + 0x5ac], 1
mov dword [ebx + 0x5b0], 4
jmp 0x66b9d2
mov eax, edi
mov byte [ebx + 0x638], al
xor edx, edx
mov eax, ebx
call fcn.00663b00
mov dword [esp], ebx
call fcn.00664890
cmp byte [ebx + 0x211], 0
jne 0x66c0c0
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.0065f580
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00671790
mov dword [esp], ebx
call fcn.0066a380
test eax, eax
js 0x66b9d0
mov eax, dword [ebx + 0x57c]
mov ecx, dword [ebx + 0x570]
cmp dword [ebx + 0x578], ecx
sbb eax, dword [ebx + 0x574]
jl 0x66c0c0
mov eax, dword [ebx + 0x3c]
or eax, dword [ebx + 0x38]
je 0x66c0c0
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x544]
mov dword [esp], eax
call fcn.004ec2e0
test eax, eax
jne 0x66c213
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0064de00
test eax, eax
js 0x66c2a9
mov eax, dword [ebx + 0x544]
add dword [eax + 0x38], 1
adc dword [eax + 0x3c], 0
mov eax, dword [ebx + 0x600]
test eax, eax
je 0x66bbd0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x66bbd0
mov dword [ebx + 0x608], 0x1a
mov eax, dword [ebx + 0x784]
mov dword [ebx + 0x60c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x1a
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0064e160
test eax, eax
js 0x66c355
mov eax, dword [ebx + 0x784]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00666c90
test eax, eax
js 0x66c2f9
cmp dword [ebx + 0x600], 2
mov eax, dword [ebx + 0x7a0]
je 0x66c4a9
test eax, eax
je 0x66bb46
mov dword [esp], eax
call fcn.007238f0
mov dword [ebx + 0x7a0], 0
mov dword [esp + 8], 0x6c1
mov dword [esp + 4], 0x80ecb4
mov dword [esp], 0
call fcn.007101f0
mov edx, 0x80ec2f
cmp eax, 0x80ecb4
cmove eax, edx
mov dword [esp], eax
call fcn.00723840
mov edx, dword [ebx + 0x1d0]
mov dword [ebx + 0x7a0], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x1cc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x534]
mov dword [esp], eax
call fcn.0054b760
cmp byte [0x90251c], 0
je 0x66bbd0
mov dword [esp], 0x80eccd
call fcn.007101e8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0066a0f0
lea esi, [esi]
mov eax, ebx
call fcn.00662110
mov dword [esp], ebx
call fcn.00672f10
movd xmm0, dword [0x9003c0]
punpckldq xmm0, xmm0
movq qword [ebx + 0x5d0], xmm0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00664750
xor eax, eax
cmp eax, dword [ebx + 0x580]
sbb eax, dword [ebx + 0x584]
mov dword [ebx + 0x564], 1
jge 0x66c1c0
mov esi, dword [ebx + 0x598]
mov edx, dword [ebx + 0x578]
mov ecx, dword [ebx + 0x57c]
mov edi, dword [ebx + 0x59c]
cmp edx, esi
mov eax, ecx
sbb eax, edi
jl 0x66c05b
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0x5a0]
mov ecx, dword [esp + 0x24]
cdq
mov dword [esp + 0x28], eax
add eax, esi
mov dword [esp + 0x2c], edx
adc edx, edi
cmp dword [esp + 0x20], eax
sbb ecx, edx
jge 0x66bc86
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
add eax, 1
adc edx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0066b4d0
test eax, eax
js 0x66c1d9
mov eax, dword [ebx + 0x784]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x598]
mov edx, dword [ebx + 0x59c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0x20], esi
call fcn.0064e160
mov esi, dword [0x901db4]
test esi, esi
je 0x66bf60
test eax, eax
js 0x66bd10
mov edi, dword [ebx + 0x59c]
mov esi, dword [ebx + 0x598]
mov eax, edi
or eax, esi
jne 0x66bf78
test byte [ebx + 0x20], 1
je 0x66bf78
mov dword [ebx + 0x780], 0x386
lea esi, [esi]
cmp dword [0x773544], 3
jne 0x66c130
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
xor eax, eax
cmp eax, esi
mov esi, 0
sbb eax, edi
mov edi, 0
jl 0x66bddd
jmp 0x66bff3
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00674150
mov eax, dword [ebx + 0x60]
movdqu xmm1, xmmword [ebx + 0x5e0]
add dword [ebx + 0x145c], 1
cdq
shrd eax, edx, 0xa
sar edx, 0xa
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x598]
mov dword [esp + 0x24], edx
movq xmm0, qword [esp + 0x20]
mov edx, dword [ebx + 0x59c]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm1
movups xmmword [ebx + 0x5e0], xmm0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x784]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00666df0
test eax, eax
js 0x66be57
add dword [ebx + 0x598], 1
mov edx, dword [esp + 0x28]
adc dword [ebx + 0x59c], 0
mov eax, dword [esp + 0x2c]
add esi, 1
adc edi, 0
xor edx, esi
xor eax, edi
or eax, edx
je 0x66bff3
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0066b4d0
test eax, eax
js 0x66c1d9
mov eax, dword [ebx + 0x784]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0x59c]
mov eax, dword [ebx + 0x598]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0064e160
mov edx, dword [ebx + 0x59c]
test eax, eax
mov eax, dword [ebx + 0x598]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jns 0x66bd40
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00674150
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x780]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00669e30
mov dword [esp], ebx
call fcn.0066a240
test eax, eax
jns 0x66bdb5
mov esi, dword [ebx + 0x544]
mov dword [esp + 8], 1
mov dword [esp + 4], 5
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.004ec660
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 0x77c]
test ecx, ecx
jne 0x66bec1
mov dword [ebx + 0x77c], 1
mov dword [ebx + 0x564], 7
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00670470
mov dword [esp], ebx
call fcn.0064e0d0
mov edx, dword [ebx + 0x77c]
xor eax, eax
test edx, edx
setne al
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x544]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.006647d0
jmp 0x66c0c8
mov dword [esp + 4], 0x80ec41
mov dword [esp], 0
call fcn.007101f0
mov edx, 0x80ec06
cmp eax, 0x80ec41
cmove eax, edx
mov dword [esp], eax
call fcn.00723840
mov ecx, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
xor ax, ax
or eax, 0x30
jmp 0x66b99f
test eax, eax
js 0x66bd10
mov esi, dword [ebx + 0x598]
mov edi, dword [ebx + 0x59c]
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
add eax, esi
mov dword [esp + 4], 0
adc edx, edi
add eax, 0xffffffff
mov dword [esp], ebx
adc edx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00674150
mov ecx, dword [esp + 0x20]
movdqu xmm2, xmmword [ebx + 0x5e0]
mov esi, dword [ebx + 0x600]
add dword [ebx + 0x145c], ecx
mov eax, ecx
imul dword [ebx + 0x60]
shrd eax, edx, 0xa
sar edx, 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
movq xmm0, qword [esp + 0x20]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
movups xmmword [ebx + 0x5e0], xmm0
test esi, esi
jne 0x66c238
mov dword [esp], ebx
call fcn.00673100
mov esi, dword [esp + 0x28]
mov eax, dword [ebx + 0x584]
mov ecx, dword [esp + 0x2c]
imul ecx, dword [ebx + 0x580]
imul eax, esi
add ecx, eax
mov eax, esi
mul dword [ebx + 0x580]
add edx, ecx
add eax, dword [ebx + 0x598]
adc edx, dword [ebx + 0x59c]
mov esi, eax
mov edi, edx
mov dword [ebx + 0x598], eax
mov eax, dword [ebx + 0x578]
mov dword [ebx + 0x59c], edx
mov edx, dword [ebx + 0x57c]
cmp eax, esi
mov dword [esp + 0x20], eax
mov eax, edx
mov dword [esp + 0x24], edx
sbb eax, edi
jge 0x66bc4d
cmp dword [ebx + 0x600], 1
mov edi, dword [ebx + 0x58c]
sbb eax, eax
mov esi, dword [ebx + 0x544]
add eax, 2
test edi, edi
jle 0x66c47e
mov dword [esi + 0x1c], 0xb
add eax, dword [ebx + 0x98]
mov dword [esp], eax
call fcn.004eddb0
mov dword [ebx + 0x564], 7
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00670470
mov dword [esp], ebx
call fcn.0066fe80
jmp 0x66bedb
mov dword [esp], ebx
call fcn.006646b0
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.0066aa30
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x905dac]
test eax, eax
je 0x66c11a
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x66c11a
mov eax, dword [ebp + 0xc]
xor ax, ax
jmp 0x66c106
mov ebx, dword [ebx]
test ebx, ebx
je 0x66c11a
cmp dword [ebx + 0x1c], eax
jne 0x66c100
cmp edx, dword [ebx + 0x20]
je 0x66b944
mov ebx, dword [ebx]
test ebx, ebx
jne 0x66c106
lea esp, [ebp - 0xc]
mov eax, 0xfffffc7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x780]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00669e30
mov eax, dword [0x773544]
and eax, 0xfffffffd
cmp eax, 1
je 0x66bd1d
mov esi, dword [ebx + 0x598]
mov eax, dword [esp + 0x28]
mov edi, dword [ebx + 0x59c]
mov edx, dword [esp + 0x2c]
mov dword [esp], ebx
add eax, esi
mov dword [esp + 8], esi
adc edx, edi
add eax, 0xffffffff
mov dword [esp + 0xc], edi
adc edx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 4], 1
call fcn.00674150
mov dword [esp], ebx
call fcn.0066a240
test eax, eax
jns 0x66bff3
jmp 0x66be89
mov dword [ebx + 0x580], 1
mov dword [ebx + 0x584], 0
jmp 0x66bc21
cmp dword [ebx + 0x600], 1
mov edi, dword [ebx + 0x58c]
sbb eax, eax
mov esi, dword [ebx + 0x544]
add eax, 2
test edi, edi
jle 0x66c2ce
mov dword [esi + 0x1c], 0xb
add eax, dword [ebx + 0x98]
mov dword [esp], eax
call fcn.004eddb0
jmp 0x66be89
mov dword [esp], 0x80ec65
call fcn.007101e8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0066a0f0
jmp 0x66ba76
mov eax, dword [ebx + 0x598]
mov edx, dword [ebx + 0x59c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x784]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00666df0
mov esi, dword [ebx + 0x598]
mov edi, dword [ebx + 0x59c]
test eax, eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
js 0x66c3cf
add eax, esi
mov dword [esp + 8], esi
adc edx, edi
add eax, 0xffffffff
mov dword [esp + 0xc], edi
adc edx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00674150
jmp 0x66bff3
mov dword [esp], 0x80ec76
call fcn.007101e8
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0066a0f0
jmp 0x66bee3
mov dword [esp + 0xc], 1
mov dword [esp + 8], 9
mov eax, dword [esi + 0x1c]
mov dword [esp], 5
mov dword [esp + 4], eax
call fcn.004ec690
mov dword [esi + 0x1c], eax
jmp 0x66be89
mov dword [ebx + 0x608], 0x11d
mov eax, dword [ebx + 0x784]
mov dword [ebx + 0x60c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x11d
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0064e160
test eax, eax
js 0x66c355
mov eax, dword [ebx + 0x784]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00666c90
test eax, eax
jns 0x66bb1d
cmp byte [0x90251c], 0
jne 0x66c430
mov dword [esp], 0x80ecdc
call fcn.007101e8
mov dword [esp], 0x80ed17
mov esi, eax
call fcn.007101e8
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0059a0f0
cmp byte [0x773548], 0
je 0x66c468
mov eax, dword [ebx + 0x544]
mov dword [eax + 0x1c], 0xb
mov dword [esp], 0x80ed30
call fcn.007101e8
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0066a0f0
jmp 0x66c0c8
add eax, esi
mov dword [esp + 8], esi
adc edx, edi
add eax, 0xffffffff
mov dword [esp + 0xc], edi
adc edx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00674150
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x780]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00669e30
mov dword [esp], ebx
call fcn.0066a240
test eax, eax
jns 0x66bff3
jmp 0x66be89
mov dword [esp], 0x80ed1d
call fcn.007101e8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0066a0f0
cmp byte [0x90251c], 0
jne 0x66c390
jmp 0x66c362
mov dword [esp], 0x80ed64
jmp 0x66c3b1
mov eax, 0xfffffc6c
jmp 0x66c0da
mov dword [esp + 0xc], 1
mov dword [esp + 8], 9
mov eax, dword [esi + 0x1c]
mov dword [esp], 5
mov dword [esp + 4], eax
call fcn.004ec690
mov dword [esi + 0x1c], eax
jmp 0x66c090
test eax, eax
je 0x66c4bf
mov dword [esp], eax
call fcn.007238f0
mov dword [ebx + 0x7a0], 0
mov dword [esp + 8], 0x6c1
mov dword [esp + 4], 0x80ec8c
mov dword [esp], 0
call fcn.007101f0
mov edx, 0x80ec1c
cmp eax, 0x80ec8c
cmove eax, edx
mov dword [esp], eax
call fcn.00723840
mov edx, dword [ebx + 0x1d0]
mov dword [ebx + 0x7a0], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x1cc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x534]
mov dword [esp], eax
call fcn.0054b760
cmp byte [0x90251c], 0
je 0x66bbd0
mov dword [esp], 0x80eca6
jmp 0x66bbb3