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

Disassembly:
mov eax, 0x50
call fcn.0053e710
push ebp
mov ebp, dword [esp + 0x68]
xor ecx, ecx
push edi
movzx eax, byte [ebp]
sub eax, 4
je 0x6548bd
sub eax, 2
je 0x6548bd
mov eax, dword [esp + 0x5c]
lea edi, [ecx + 0x15]
push 1
push dword [esp + 0x6c]
add eax, 8
mov dword [esp + 0x10], 1
push eax
call fcn.00689800
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x6548c6
pop edi
pop ebp
add esp, 0x50
ret
mov dword [esp + 8], ecx
mov edi, 7
push ebx
push esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp eax, edi
jae 0x6548f6
mov ecx, dword [esp + 0x14]
mov eax, 0xfffffffe
mov dword [esi + 8], ecx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
mov edx, dword [ebp]
cmp dl, 5
jne 0x654911
movzx eax, byte [ecx + 0x28]
shl eax, 9
xor eax, edx
and eax, 0x200
xor eax, edx
mov dword [ebp], eax
mov eax, dword [esp + 0x7c]
xor ecx, ecx
mov edx, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], ecx
test eax, eax
je 0x6549da
cmp eax, 8
jb 0x6549da
mov ecx, eax
xorps xmm5, xmm5
and ecx, 0xfffffff8
lea eax, [edx + 0x14]
xorps xmm4, xmm4
nop dword [eax + eax]
movd xmm2, dword [eax + 8]
lea eax, [eax + 0x40]
movd xmm0, dword [eax - 0x40]
add ebx, 8
movd xmm1, dword [eax - 0x48]
movd xmm3, dword [eax - 0x50]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x20]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x18]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x28]
paddd xmm5, xmm3
movd xmm3, dword [eax - 0x30]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
paddd xmm4, xmm3
cmp ebx, ecx
jb 0x654960
mov eax, dword [esp + 0x7c]
paddd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
paddd xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
paddd xmm4, xmm0
movd ecx, xmm4
mov dword [esp + 0x74], ecx
xor edx, edx
xor edi, edi
cmp ebx, eax
jae 0x654a2b
sub eax, ebx
cmp eax, 2
jb 0x654a1a
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
sub eax, ebx
sub eax, 2
add ecx, 0xc
shr eax, 1
inc eax
lea ecx, [ecx + ebx*8]
lea ebx, [ebx + eax*2]
add edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
add edi, dword [ecx - 0x10]
sub eax, 1
jne 0x654a02
mov ecx, dword [esp + 0x74]
cmp ebx, dword [esp + 0x7c]
jae 0x654a22
mov eax, dword [esp + 0x78]
add ecx, dword [eax + ebx*8 + 4]
lea eax, [edi + edx]
add ecx, eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x654c33
cmp dword [esp + 0x10], 0
je 0x654a6f
mov eax, dword [esp + 0x64]
push 1
push dword [esp + 0x74]
add eax, 8
push eax
call fcn.00689800
add esp, 0xc
test eax, eax
jne 0x654a5c
xor edi, edi
jmp 0x654a71
push dword [eax + 0x38]
call fcn.00652700
mov edi, eax
add esp, 4
add edi, dword [esp + 0x74]
jmp 0x654a71
mov edi, ecx
movzx eax, byte [ebp + 8]
push ebp
push eax
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x40], edi
call fcn.00651900
add esp, 8
test eax, eax
je 0x654c33
add eax, edi
cmp eax, dword [esp + 0x18]
ja 0x6548e2
mov eax, dword [ebp]
movzx ecx, al
sub ecx, 4
je 0x654ad2
sub ecx, 2
je 0x654ad2
shr eax, 0xa
and eax, 0xf
push eax
lea eax, [ebp + 0x32]
push eax
mov eax, dword [esp + 0x70]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00651b80
add esp, 0x10
test eax, eax
je 0x654c33
mov eax, dword [esi + 0xc]
lea edi, [esi + 0x48]
sub eax, dword [esi + 8]
add edi, dword [esi + 8]
push 0
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x7c], 0
push edi
push eax
call fcn.005b1d30
add esp, 0x10
test eax, eax
je 0x654c33
lea eax, [esp + 0x20]
push eax
movzx eax, byte [ebp + 8]
push ebp
push eax
lea eax, [esp + 0x50]
push eax
call 0x6514f0
add esp, 0x10
test eax, eax
je 0x654c26
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005b2420
add esp, 8
test eax, eax
je 0x654c26
lea eax, [esp + 0x44]
push eax
call fcn.005b1e30
mov ecx, dword [esp + 0x68]
add esp, 4
mov eax, dword [ecx + 0x2fc]
test eax, eax
je 0x654b7a
push dword [ecx + 0x300]
push dword [ecx + 0x304]
push dword [esp + 0x7c]
push edi
push 0x201
push 1
push 1
call eax
mov ecx, dword [esp + 0x80]
add esp, 0x1c
mov eax, dword [esi + 8]
add eax, dword [esp + 0x74]
mov dword [esi + 8], eax
mov ebx, eax
sub eax, edi
add eax, 0x48
add eax, esi
cmp dword [esp + 0x10], 0
jne 0x654bee
push 0xffffffffffffffff
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.006544a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x654c19
nop
push edi
push dword [esp + 0x78]
lea eax, [esi + 0x48]
add eax, ebx
push eax
call fcn.006fb4d0
add dword [esi + 8], edi
lea eax, [esp + 0x80]
mov ebx, dword [esi + 8]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x44]
push eax
call fcn.006544a0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x654bb0
pop esi
pop ebx
lea eax, [edi + 1]
pop edi
pop ebp
add esp, 0x50
ret
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x70]
push edi
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [esp + 0x44]
push dword [esp + 0x84]
push esi
push eax
push ecx
call fcn.00654510
add esp, 0x24
test eax, eax
je 0x654c33
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x50
ret
lea eax, [esp + 0x44]
push eax
call fcn.005b1e30
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret