Function at 0x6785e080
Capabilities:
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, 0xc8
mov eax, dword [0x67ad7034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x67b38b68]
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x38], eax
cmp byte [edi + 0x67], 0
je 0x6785e0f1
movups xmm0, xmmword [eax + 0x4688]
mov esi, dword [eax + 0x4698]
movaps xmmword [ebp - 0x20], xmm0
call fcn.6785cdc0
mov eax, dword [ebp - 0x38]
movaps xmm0, xmmword [ebp - 0x20]
mov edx, dword [ebp - 0x54]
movups xmmword [eax + 0x4688], xmm0
mov dword [eax + 0x4698], esi
mov esi, dword [ebp - 0x50]
mov eax, dword [eax + 0x3e28]
mov dword [ebp - 0x40], eax
cmp byte [eax + 0xab], 0
jne 0x6785e132
push ecx
mov ecx, edi
call fcn.6785d930
add esp, 4
mov dword [ebp - 0x28], eax
test esi, esi
je 0x6785e147
cmp byte [esi], 0
jne 0x6785e147
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
push 8
push 0
mov edx, eax
movups xmmword [ebp - 0x20], xmm0
call fcn.677eea90
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x30], ecx
test ecx, 0x100000
je 0x6785e15e
mov dword [ebp - 0x50], 0
jmp 0x6785e16b
test esi, esi
jne 0x6785e16b
or ecx, 0x100000
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x6785e19d
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
jle 0x6785e19d
mov esi, dword [edi + 8]
mov dword [ebp - 0x64], esi
nop dword [eax]
cmp dword [esi], eax
je 0x6785e191
inc ecx
add esi, 0x2c
mov dword [ebp - 0x64], esi
cmp ecx, edx
jl 0x6785e180
jmp 0x6785e19d
mov byte [ebp - 0x21], 0
test esi, esi
jne 0x6785e26e
mov esi, dword [edi + 4]
or eax, 0xffffffff
xorps xmm0, xmm0
mov word [ebp - 0x9a], ax
mov word [ebp - 0x9c], ax
mov eax, dword [edi]
movlpd qword [ebp - 0xc0], xmm0
movlpd qword [ebp - 0xb0], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 0xa4], 0xbf800000
mov dword [ebp - 0xa0], 0xffffffff
cmp eax, esi
jne 0x6785e222
lea ecx, [eax + 1]
test esi, esi
je 0x6785e20e
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x6785e213
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.6785f3e0
mov eax, dword [edi]
movups xmm0, xmmword [ebp - 0xc0]
mov byte [ebp - 0x21], 1
imul eax, eax, 0x2c
add eax, dword [edi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0xa0]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], 0
inc dword [edi]
imul ecx, dword [edi], 0x2c
mov esi, dword [edi + 8]
mov eax, dword [ebp - 0x28]
add esi, 0xffffffd4
add esi, ecx
mov dword [ebp - 0x64], esi
mov dword [esi], eax
mov byte [edi + 0x69], 1
mov ecx, esi
mov eax, 0x2e8ba2e9
sub ecx, dword [edi + 8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x50], 0
mov word [edi + 0x6c], ax
jne 0x6785e298
test byte [ebp - 0x30], 1
jne 0x6785e298
xor al, al
jmp 0x6785e29a
mov al, 1
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x84]
push eax
call fcn.6785ea00
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [esi + 0x1c], 0xbf800000
test byte [edx + 0x4688], 1
je 0x6785e2ce
movss xmm1, dword [edx + 0x468c]
movss dword [esi + 0x1c], xmm1
jmp 0x6785e2d6
movss xmm1, dword [ebp - 0x84]
cmp byte [ebp - 0x21], 0
movss xmm0, dword [0x67ac4418]
je 0x6785e2ed
maxss xmm0, xmm1
movss dword [esi + 0x14], xmm0
movss dword [esi + 0x18], xmm1
movzx ecx, word [edi + 0x6a]
lea eax, [ecx + 1]
mov word [edi + 0x6a], ax
mov word [esi + 0x24], cx
mov eax, dword [edi + 0x24]
mov ecx, dword [edx + 0x3dc8]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 8]
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
test al, 1
je 0x6785e337
test byte [esi + 4], 1
mov byte [ebp - 0x22], 1
je 0x6785e33b
mov byte [ebp - 0x22], 0
mov dword [esi + 8], ecx
mov edx, eax
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x84]
shr edx, 0x15
and edx, 0xffffff01
mov dword [ebp - 0x44], edx
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x54]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x6785e370
sub edx, dword [ebp - 0x4c]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [edi + 0x84]
call fcn.677df900
cmp byte [ebp - 0x44], 0
jne 0x6785e3ca
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], eax
jge 0x6785e3b9
test byte [edi + 0xc], 2
je 0x6785e3b9
cmp dword [edi + 0x18], 0
jne 0x6785e3b9
cmp dword [ebp - 0x3c], eax
jge 0x6785e3b1
cmp dword [edi + 0x14], 0
jne 0x6785e3b9
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x18], eax
jmp 0x6785e3bc
mov eax, dword [ebp - 0x28]
test byte [ebp - 0x30], 2
je 0x6785e3ca
cmp dword [edi + 0x14], eax
je 0x6785e3ca
mov dword [edi + 0x18], eax
mov ecx, dword [ebp - 0x28]
cmp dword [edi + 0x1c], ecx
sete dl
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x74], dl
jne 0x6785e3df
mov byte [edi + 0x68], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], 1
test dl, dl
jne 0x6785e40e
cmp dword [edi + 0x14], 0
jne 0x6785e40e
cmp eax, dword [ebp - 0x5c]
jge 0x6785e40e
cmp dword [edi], 1
jne 0x6785e40e
test byte [edi + 0xc], 2
movzx edx, dl
cmove edx, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x74], dl
mov edx, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], edx
jge 0x6785e447
cmp eax, edx
jge 0x6785e420
cmp byte [ebp - 0x21], 0
je 0x6785e447
xorps xmm0, xmm0
mov edx, ecx
push 8
push 0
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
call fcn.677eea90
add esp, 8
cmp byte [ebp - 0x44], 0
je 0x6785e68f
jmp 0x6785e132
cmp dword [edi + 0x14], ecx
jne 0x6785e458
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x3dc8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [esi + 4]
movss xmm5, dword [esi + 0x14]
movss xmm1, dword [edi + 0x2c]
movss xmm0, dword [ecx + 0xec]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ecx + 0xf0]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [esi + 0x10]
and edx, 0xc0
jne 0x6785e4a8
subss xmm0, dword [edi + 0x48]
xorps xmm4, xmm4
addss xmm1, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
jmp 0x6785e4af
xorps xmm2, xmm2
addss xmm1, xmm2
addss xmm0, dword [edi + 0x28]
movss dword [ecx + 0xec], xmm0
movss dword [ecx + 0xf0], xmm1
movss xmm3, dword [ecx + 0xec]
movss xmm4, dword [ecx + 0xf0]
movaps xmm1, xmm3
movss xmm2, dword [ebp - 0x80]
addss xmm1, xmm5
movss dword [ebp - 0x68], xmm3
addss xmm2, xmm4
movss dword [ebp - 0x6c], xmm4
movss dword [ebp - 0x20], xmm3
movss dword [ebp - 0x1c], xmm4
movss dword [ebp - 0x88], xmm1
movss dword [ebp - 0x80], xmm2
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x14], xmm2
test edx, edx
jne 0x6785e5f2
movss xmm5, dword [edi + 0x58]
comiss xmm5, xmm3
ja 0x6785e52b
comiss xmm1, dword [edi + 0x5c]
jbe 0x6785e5f2
movss xmm0, dword [edi + 0x5c]
mov ecx, dword [0x67b38b68]
movss dword [ebp - 0x90], xmm0
movaps xmm0, xmm3
maxss xmm0, xmm5
mov byte [ebp - 0x21], 1
push 1
mov eax, dword [ecx + 0x3e28]
movss dword [ebp - 0x8c], xmm2
movss dword [ebp - 0x7c], xmm0
movaps xmm0, xmm4
subss xmm0, dword [0x67ac4418]
mov byte [eax + 0xa8], 1
lea eax, [ebp - 0x90]
mov esi, dword [ecx + 0x3e28]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [esi + 0x260]
movss dword [ebp - 0x78], xmm0
call fcn.6782e010
mov eax, dword [esi + 0x260]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
movss xmm0, dword [eax + ecx*8 - 0xc]
mov eax, dword [eax + ecx*8 - 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0x20c], eax
movss dword [esi + 0x210], xmm0
movss dword [esi + 0x214], xmm1
movss dword [esi + 0x218], xmm2
movss xmm1, dword [ebp - 0x88]
movss xmm2, dword [ebp - 0x80]
movss xmm3, dword [ebp - 0x68]
movss xmm4, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x64]
jmp 0x6785e5f6
mov byte [ebp - 0x21], 0
movss xmm0, dword [ecx + 0x104]
subss xmm1, xmm3
mov eax, dword [ebp - 0x38]
subss xmm2, xmm4
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ecx + 0x108]
lea ecx, [ebp - 0x7c]
movss dword [ebp - 0x68], xmm0
movss dword [ebp - 0x7c], xmm1
movss xmm1, dword [eax + 0x37d8]
movss dword [ebp - 0x78], xmm2
call fcn.677ee930
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
movss xmm0, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x28]
push 0
movss dword [eax + 0x104], xmm0
movss xmm0, dword [ebp - 0x68]
push 0
movss dword [eax + 0x108], xmm0
call fcn.677eea90
add esp, 8
test al, al
jne 0x6785e6a5
cmp byte [ebp - 0x21], al
je 0x6785e672
call fcn.677e5160
mov eax, dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 0xec], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [eax + 0xf0], xmm0
mov al, byte [ebp - 0x60]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
movzx ecx, al
mov eax, 0x1200
inc ecx
shl ecx, 4
cmp byte [edx + 0x4930], 0
mov edx, 0x1000
cmove eax, edx
mov edx, dword [ebp - 0x28]
or ecx, eax
lea eax, [ebp - 0x29]
push ecx
push eax
lea eax, [ebp - 0x2a]
push eax
lea ecx, [ebp - 0x20]
call fcn.67844cf0
add esp, 0xc
mov byte [ebp - 0x31], al
test al, al
mov eax, dword [ebp - 0x28]
je 0x6785e6f2
cmp byte [ebp - 0x44], 0
jne 0x6785e6f2
mov dword [edi + 0x18], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x3e74], eax
mov eax, dword [0x67b38b68]
je 0x6785e726
mov edx, dword [eax + 0x469c]
cmp dword [eax + 0x3e60], edx
jne 0x6785e717
mov byte [eax + 0x3e68], 1
cmp dword [eax + 0x3e74], edx
jne 0x6785e726
mov byte [eax + 0x3e81], 1
cmp byte [ebp - 0x29], 0
je 0x6785e7b4
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x5c]
jl 0x6785e7b4
cmp byte [eax + 0xdc0], 0
je 0x6785e7b4
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x3750]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x6785e7b4
cmp byte [ecx + 0x4930], 0
jne 0x6785e7b4
test byte [edi + 0xc], 1
je 0x6785e7b4
movss xmm1, dword [ecx + 0xb4]
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x6785e789
movss xmm0, dword [ebp - 0x20]
comiss xmm0, dword [ecx + 0xdb8]
ja 0x6785e79c
comiss xmm1, xmm2
jbe 0x6785e7b4
movss xmm0, dword [ecx + 0xdb8]
comiss xmm0, dword [ebp - 0x18]
jbe 0x6785e7b4
push dword [ecx + 0xdbc]
mov edx, esi
push dword [ecx + 0xdb8]
mov ecx, edi
call fcn.6785d9f0
add esp, 8
cmp byte [ebp - 0x29], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x260]
mov dword [ebp - 0x48], eax
jne 0x6785e7f7
cmp byte [ebp - 0x2a], 0
jne 0x6785e7f7
cmp byte [ebp - 0x60], 0
je 0x6785e7e4
mov eax, dword [ebp - 0x58]
movzx eax, al
xor eax, 1
lea ecx, [eax*2 + 0x23]
jmp 0x6785e7fc
cmp byte [ebp - 0x58], 0
mov ecx, 0x24
mov edx, 0x21
cmovne ecx, edx
jmp 0x6785e7fc
mov ecx, 0x22
movss xmm1, dword [0x67ac4418]
call fcn.677e07f0
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
call fcn.6785eaf0
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push 1
call fcn.677e1980
add esp, 0xc
mov ecx, 0x20
call fcn.677e2fd0
test al, al
je 0x6785e865
xor edx, edx
push 0
lea ecx, [edx + 1]
call fcn.677eccd0
add esp, 4
test al, al
jne 0x6785e857
mov ecx, 1
call fcn.677ecd80
test al, al
je 0x6785e865
cmp byte [ebp - 0x44], 0
mov eax, dword [ebp - 0x28]
jne 0x6785e868
mov dword [edi + 0x18], eax
jmp 0x6785e868
mov eax, dword [ebp - 0x28]
test byte [edi + 0xc], 8
je 0x6785e872
or dword [ebp - 0x30], 4
xor edx, edx
cmp dword [ebp - 0x50], edx
je 0x6785e8b2
push eax
mov ecx, 0x6794ff60
call fcn.677dea60
mov ecx, dword [0x67b38b68]
mov edx, eax
add esp, 4
mov dword [ebp - 0x58], edx
cmp dword [ecx + 0x3e5c], edx
jne 0x6785e8b2
push ecx
push 0x6794ff60
mov edx, 0xb
mov ecx, eax
call fcn.677fe2f0
mov edx, dword [ebp - 0x58]
add esp, 8
movss xmm0, dword [edi + 0x74]
mov ecx, dword [ebp - 0x30]
mov eax, ecx
movss dword [ebp - 0x70], xmm0
and eax, 0xfffffffe
movss xmm0, dword [edi + 0x78]
cmp byte [ebp - 0x22], 0
movss dword [ebp - 0x6c], xmm0
push dword [ebp - 0x6c]
cmovne ecx, eax
lea eax, [ebp - 0x22]
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x2a]
push eax
push dword [ebp - 0x74]
push edx
push dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.6785ef40
add esp, 0x24
cmp byte [ebp - 0x2a], 0
je 0x6785e946
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x6785e946
mov byte [eax], 0
mov eax, dword [esi + 4]
test eax, 0x200000
jne 0x6785e946
test al, 1
jne 0x6785e93c
mov byte [esi + 0x28], 1
mov eax, dword [edi + 0x1c]
cmp eax, dword [esi]
jne 0x6785e946
mov dword [esi + 8], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
jmp 0x6785e946
mov eax, dword [esi]
cmp dword [edi + 0x1c], eax
je 0x6785e946
mov dword [edi + 0x18], eax
cmp byte [ebp - 0x21], 0
je 0x6785e951
call fcn.677e5160
cmp byte [ebp - 0x22], 0
mov eax, dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 0xec], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [eax + 0xf0], xmm0
je 0x6785e9d7
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
cmp dword [edx + 0x3e60], eax
jne 0x6785e9d7
cmp byte [ebp - 0x29], 0
jne 0x6785e9d7
test byte [edi + 0xc], 0x20
jne 0x6785e9d7
test byte [esi + 4], 0x10
jne 0x6785e9d7
mov ecx, 0x800
call fcn.677e2fd0
test al, al
je 0x6785e9d7
mov edx, dword [ebp - 0x54]
mov eax, edx
cmp edx, 0xffffffff
jae 0x6785e9c6
nop dword [eax]
mov cl, byte [eax]
test cl, cl
je 0x6785e9c6
cmp cl, 0x23
jne 0x6785e9c0
cmp byte [eax + 1], cl
je 0x6785e9c6
inc eax
cmp eax, 0xffffffff
jb 0x6785e9b0
push edx
sub eax, edx
push eax
push 0x679523a4
call fcn.677efd50
add esp, 0xc
cmp byte [ebp - 0x44], 0
je 0x6785e68f
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x31]
xor ecx, ebp
pop edi
pop esi
call fcn.679343f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret