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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100ba040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x34], edi
cmp byte [esi + 0x67], 0
je 0x10051698
call fcn.100503e0
mov eax, dword [0x100bdd64]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax + 0x1b98]
mov dword [ebp - 0x28], eax
cmp byte [eax + 0x8f], 0
je 0x100516c5
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.10050ed0
mov ebx, eax
lea ecx, [ebp - 0x58]
push 0
mov edx, edi
mov dword [ebp - 0x20], ebx
call fcn.100520e0
add esp, 4
test ebx, ebx
je 0x100516fd
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x100516fd
mov edi, dword [esi + 8]
cmp dword [edi], ebx
je 0x100516ff
inc eax
add edi, 0x28
cmp eax, ecx
jl 0x100516f1
xor edi, edi
mov byte [ebp - 0x15], 0
test edi, edi
jne 0x100517d9
mov ecx, dword [esi]
or eax, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x8c], edi
mov edi, dword [esi + 4]
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0x94], 0xffffffff
mov word [ebp - 0x8e], ax
mov word [ebp - 0x90], ax
cmp ecx, edi
jne 0x10051784
inc ecx
test edi, edi
je 0x10051772
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10051777
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1003c280
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0xb0]
mov byte [ebp - 0x15], 1
lea ecx, [eax + eax*4]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [ebp - 0x90]
movq qword [eax + ecx*8 + 0x20], xmm0
inc dword [esi]
mov eax, dword [esi]
movss xmm0, dword [ebp - 0x58]
lea edi, [eax + eax*4]
mov eax, dword [esi + 8]
lea edi, [edi - 5]
mov dword [eax + edi*8], ebx
movss dword [eax + edi*8 + 0x14], xmm0
lea edi, [eax + edi*8]
mov byte [esi + 0x69], 1
jmp 0x100517de
movss xmm0, dword [ebp - 0x58]
mov ecx, edi
mov eax, 0x66666667
sub ecx, dword [esi + 8]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x34]
mov word [esi + 0x6c], ax
movss dword [edi + 0x18], xmm0
movzx ecx, word [esi + 0x6a]
lea eax, [ecx + 1]
mov word [esi + 0x6a], ax
mov word [edi + 0x20], cx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
shr eax, 0x15
mov ecx, dword [ecx + 0x1b38]
and eax, 0xffffff01
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 8]
mov dword [edi + 8], ecx
inc eax
mov dword [edi + 4], 0x100000
mov ecx, dword [esi + 0x84]
mov dword [ebp - 0x44], eax
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edi + 0x1c], ecx
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051858
sub ecx, ebx
lea ebx, [edx + 1]
add ebx, ecx
je 0x1005186c
sub ebx, edx
jmp 0x1005187a
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10051871
sub ebx, ecx
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x84]
test eax, eax
mov edx, 1
cmovne edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], edx
add edx, ebx
mov dword [ebp - 0x30], edx
cmp edx, eax
jl 0x100518b5
add eax, eax
cmp edx, eax
cmovg eax, edx
push eax
call fcn.1002b870
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 0x84]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
cmp edx, eax
jle 0x100518f3
test eax, eax
je 0x100518d2
cdq
sub eax, edx
mov edx, dword [ebp - 0x30]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x3c]
jmp 0x100518d7
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [esi + 0x84]
push eax
call fcn.1002b870
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 0x84]
mov dword [ecx], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x24]
push ebx
push dword [ebp - 0x34]
dec ecx
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add eax, ebx
mov edx, dword [ebp - 0x1c]
mov byte [eax + ecx - 1], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x44], eax
jge 0x10051944
test byte [esi + 0xc], 2
je 0x10051944
cmp dword [esi + 0x18], 0
jne 0x10051944
cmp edx, eax
jge 0x1005193c
cmp dword [esi + 0x14], 0
jne 0x10051944
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0x18], ebx
jmp 0x10051947
mov ebx, dword [ebp - 0x20]
cmp dword [esi + 0x1c], ebx
lea eax, [esi + 0x14]
sete byte [ebp - 0x1c]
jne 0x10051959
mov byte [esi + 0x68], 1
jmp 0x1005197f
cmp dword [esi + 0x14], 0
jne 0x1005197f
lea eax, [esi + 0x14]
cmp edx, dword [ebp - 0x38]
jge 0x1005197f
cmp dword [esi], 1
lea eax, [esi + 0x14]
jne 0x1005197f
test byte [esi + 0xc], 2
lea eax, [esi + 0x14]
jne 0x1005197f
mov byte [ebp - 0x1c], 1
lea eax, [esi + 0x14]
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x44], ecx
jge 0x100519c3
cmp edx, ecx
jge 0x10051991
cmp byte [ebp - 0x15], 0
je 0x100519c3
xorps xmm0, xmm0
lea ecx, [ebp - 0x88]
push 0x18
push 0
mov edx, ebx
movups xmmword [ebp - 0x88], xmm0
call fcn.10024780
mov al, byte [ebp - 0x1c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
cmp dword [eax], ebx
jne 0x100519d3
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x1b38]
mov dword [edi + 0xc], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 4]
movss xmm1, dword [edi + 0x14]
and eax, 0xc0
mov dword [ebp - 0x48], eax
movss xmm0, dword [edx + 0xd0]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [edx + 0xd4]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [edi + 0x10]
jne 0x10051a1a
subss xmm0, dword [esi + 0x48]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x48]
cvtdq2ps xmm0, xmm0
mov ebx, 4
xorps xmm2, xmm2
addss xmm0, dword [esi + 0x28]
movss dword [ebp - 0x24], xmm0
movss xmm4, dword [esi + ebx + 0x28]
mov ebx, dword [ebp - 0x20]
addss xmm4, xmm2
movaps xmm2, xmm0
addss xmm2, xmm1
movss dword [ebp - 0x4c], xmm4
movss dword [edx + 0xd0], xmm0
movss dword [edx + 0xd4], xmm4
movss xmm3, dword [ebp - 0x54]
movss xmm6, dword [0x100b1a78]
addss xmm3, xmm4
movss dword [ebp - 0x6c], xmm2
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x10], xmm4
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 0x54], xmm3
movss dword [ebp - 8], xmm3
test eax, eax
jne 0x10051c0a
movss xmm5, dword [esi + 0x58]
comiss xmm5, xmm0
movss xmm1, dword [esi + 0x5c]
ja 0x10051aa4
comiss xmm2, xmm1
jbe 0x10051c0a
mov ecx, dword [0x100bdd64]
movaps xmm2, xmm0
maxss xmm2, xmm5
mov byte [ebp - 0x16], 1
movaps xmm0, xmm4
movss dword [ebp - 0x60], xmm1
subss xmm0, xmm6
movaps xmm5, xmm3
mov eax, dword [ecx + 0x1b98]
movss dword [ebp - 0x5c], xmm5
movss dword [ebp - 0x68], xmm2
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b98]
mov dword [ebp - 0x78], eax
movss dword [ebp - 0x64], xmm0
mov eax, dword [eax + 0x240]
mov dword [ebp - 0x74], eax
movups xmm4, xmmword [eax + 0x60]
comiss xmm4, xmm2
movups xmmword [ebp - 0x88], xmm4
jbe 0x10051b0a
movaps xmm2, xmm4
movss dword [ebp - 0x68], xmm2
movss xmm4, dword [ebp - 0x84]
comiss xmm4, xmm0
jbe 0x10051b1f
movaps xmm0, xmm4
movss dword [ebp - 0x64], xmm0
movss xmm4, dword [ebp - 0x80]
comiss xmm1, xmm4
movss dword [ebp - 0x60], xmm1
jbe 0x10051b36
movaps xmm1, xmm4
movss dword [ebp - 0x60], xmm1
movss xmm4, dword [ebp - 0x7c]
comiss xmm3, xmm4
jbe 0x10051b48
movaps xmm5, xmm4
movss dword [ebp - 0x5c], xmm5
comiss xmm2, xmm1
jb 0x10051b52
movss dword [ebp - 0x60], xmm2
comiss xmm0, xmm5
jb 0x10051b5c
movss dword [ebp - 0x5c], xmm0
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], ecx
cmp edx, eax
jne 0x10051b94
inc edx
mov dword [ebp - 0x48], edx
test eax, eax
je 0x10051b81
cdq
sub eax, edx
mov edx, dword [ebp - 0x48]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x10051b86
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.1003c200
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
add eax, eax
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [edx + eax*8], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0x74]
movups xmmword [ecx + 0x60], xmm0
call fcn.100340c0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x240]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm2, dword [eax + ecx*8 - 4]
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edx + 0x1ec], eax
movss dword [edx + 0x1f0], xmm0
movss dword [edx + 0x1f4], xmm1
movss dword [edx + 0x1f8], xmm2
movss xmm3, dword [ebp - 0x54]
movss xmm2, dword [ebp - 0x6c]
movss xmm4, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
jmp 0x10051c0e
mov byte [ebp - 0x16], 0
subss xmm2, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
subss xmm3, xmm4
movss xmm0, dword [edx + 0xe8]
lea ecx, [ebp - 0x70]
movss xmm7, dword [edx + 0xec]
movss dword [ebp - 0x4c], xmm0
movss xmm1, dword [eax + 0x1558]
movss dword [ebp - 0x70], xmm2
movss dword [ebp - 0x6c], xmm3
call fcn.10024650
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
movss xmm0, dword [ebp - 0x4c]
mov edx, ebx
push 0
push 0
movss dword [eax + 0xe8], xmm0
movss dword [eax + 0xec], xmm7
call fcn.10024780
add esp, 8
test al, al
jne 0x10051cb1
cmp byte [ebp - 0x16], al
je 0x10051c80
call fcn.1001dec0
mov eax, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 0xd0], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 0xd4], xmm0
mov al, byte [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
mov edx, 0x1010
mov eax, 0x1210
cmp byte [ecx + 0x1e8c], 0
lea ecx, [ebp - 0x14]
cmove eax, edx
mov edx, ebx
push eax
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.1003f4b0
add esp, 0xc
test al, al
je 0x10051ce5
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [0x100bdd64]
cmp dword [ecx + 0x1bd0], ebx
je 0x10051d19
mov edx, dword [eax + 0x1c38]
cmp dword [eax + 0x1bbc], edx
jne 0x10051d0a
mov byte [eax + 0x1bc4], 1
cmp dword [eax + 0x1bd0], edx
jne 0x10051d19
mov byte [eax + 0x1bdd], 1
cmp byte [ebp - 0x15], 0
je 0x10051da7
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x38]
jl 0x10051da7
cmp byte [eax + 0xec], 0
je 0x10051da7
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x450]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x10051da7
cmp byte [ecx + 0x1e8c], 0
jne 0x10051da7
test byte [esi + 0xc], 1
je 0x10051da7
movss xmm1, dword [ecx + 0x370]
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x10051d7c
movss xmm0, dword [ebp - 0x14]
comiss xmm0, dword [ecx + 0xe4]
ja 0x10051d8f
comiss xmm1, xmm2
jbe 0x10051da7
movss xmm0, dword [ecx + 0xe4]
comiss xmm0, dword [ebp - 0xc]
jbe 0x10051da7
push dword [ecx + 0xe8]
mov edx, edi
push dword [ecx + 0xe4]
mov ecx, esi
call fcn.10050fb0
add esp, 8
cmp byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x240]
mov dword [ebp - 0x24], eax
jne 0x10051dea
cmp byte [ebp - 0x17], 0
jne 0x10051dea
cmp byte [ebp - 0x1c], 0
je 0x10051dd7
mov eax, dword [ebp - 0x50]
movzx eax, al
xor eax, 1
lea ecx, [eax*2 + 0x23]
jmp 0x10051def
cmp byte [ebp - 0x50], 0
mov ecx, 0x24
mov edx, 0x21
cmovne ecx, edx
jmp 0x10051def
mov ecx, 0x22
movss xmm1, dword [0x100b1a78]
call fcn.10018cf0
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push eax
push 0x100000
call fcn.100521e0
push 1
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.10019a70
mov ecx, dword [0x100bdd64]
add esp, 0xc
cmp byte [ecx + 0x1d87], 0
mov edx, dword [ecx + 0x1b98]
je 0x10051e6c
cmp byte [ecx + 0x1d86], 0
jne 0x10051e6c
test byte [ecx + 0x1c3c], 4
jne 0x10051f16
mov eax, dword [ecx + 0x1d44]
cmp eax, dword [ecx + 0x1c38]
jne 0x10051e5d
test eax, eax
je 0x10051e5d
mov al, 1
jmp 0x10051e5f
xor al, al
test al, al
je 0x10051f16
jmp 0x10051ef5
mov eax, dword [ecx + 0x1c40]
test al, 1
je 0x10051f16
cmp dword [ecx + 0x1b9c], edx
je 0x10051e8a
test al, al
jns 0x10051f16
mov eax, dword [ecx + 0x1bd0]
test eax, eax
je 0x10051eaa
cmp eax, dword [ecx + 0x1c38]
je 0x10051eaa
cmp byte [ecx + 0x1bdd], 0
jne 0x10051eaa
cmp eax, dword [edx + 0x50]
jne 0x10051f16
mov eax, dword [ecx + 0x1d40]
test eax, eax
je 0x10051ed8
mov eax, dword [eax + 0x2d8]
test eax, eax
je 0x10051ed8
cmp byte [eax + 0x8b], 0
je 0x10051ed8
cmp eax, dword [edx + 0x2d8]
je 0x10051ed8
test dword [eax + 8], 0x8000000
jne 0x10051f16
test byte [ecx + 0x1c3c], 4
jne 0x10051f16
mov eax, dword [ecx + 0x1c38]
cmp eax, dword [edx + 0x50]
jne 0x10051ef5
cmp byte [edx + 0x8c], 0
jne 0x10051f16
movss xmm0, dword [ecx + 0x404]
ucomiss xmm0, dword [0x100b19a4]
lahf
test ah, 0x44
jnp 0x10051f13
cmp byte [ecx + 0x3eb], 0
je 0x10051f16
mov dword [esi + 0x18], ebx
push dword [esi + 0x78]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x17]
push dword [esi + 0x74]
lea edx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3d]
push eax
push dword [ebp - 0x1c]
mov eax, dword [esi + 0xc]
push 0
and eax, 8
push ebx
push dword [ebp - 0x34]
or eax, 0x200000
shr eax, 1
push eax
call fcn.10052630
add esp, 0x24
cmp byte [ebp - 0x16], 0
je 0x10051f54
call fcn.1001dec0
cmp byte [ebp - 0x17], 0
mov eax, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 0xd0], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 0xd4], xmm0
je 0x100520c7
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1bbc], ebx
jne 0x100520c7
cmp byte [ebp - 0x15], 0
jne 0x100520c7
movss xmm0, dword [eax + 0x1bcc]
comiss xmm0, dword [eax + 0x2ef0]
jbe 0x100520c7
mov eax, dword [0x100bdd64]
cmp byte [eax + 0x1d87], 0
mov ecx, dword [eax + 0x1b98]
je 0x10051ff8
cmp byte [eax + 0x1d86], 0
jne 0x10051ff8
test byte [eax + 0x1c3c], 4
jne 0x100520c7
mov ecx, dword [eax + 0x1d44]
cmp ecx, dword [eax + 0x1c38]
jne 0x10051fe9
test ecx, ecx
je 0x10051fe9
mov al, 1
jmp 0x10051feb
xor al, al
test al, al
je 0x100520c7
jmp 0x10052086
mov edx, dword [eax + 0x1c40]
test dl, 1
je 0x100520c7
cmp dword [eax + 0x1b9c], ecx
je 0x10052017
test dl, dl
jns 0x100520c7
mov edx, dword [eax + 0x1bd0]
test edx, edx
je 0x1005203b
cmp edx, dword [eax + 0x1c38]
je 0x1005203b
cmp byte [eax + 0x1bdd], 0
jne 0x1005203b
cmp edx, dword [ecx + 0x50]
jne 0x100520c7
mov edx, dword [eax + 0x1d40]
test edx, edx
je 0x10052069
mov edx, dword [edx + 0x2d8]
test edx, edx
je 0x10052069
cmp byte [edx + 0x8b], 0
je 0x10052069
cmp edx, dword [ecx + 0x2d8]
je 0x10052069
test dword [edx + 8], 0xc000000
jne 0x100520c7
test byte [eax + 0x1c3c], 4
jne 0x100520c7
mov eax, dword [eax + 0x1c38]
cmp eax, dword [ecx + 0x50]
jne 0x10052086
cmp byte [ecx + 0x8c], 0
jne 0x100520c7
test byte [esi + 0xc], 0x20
jne 0x100520c7
test byte [edi + 4], 0x10
jne 0x100520c7
mov eax, dword [ebp - 0x34]
mov ecx, eax
cmp eax, 0xffffffff
jae 0x100520b6
nop dword [eax]
mov dl, byte [ecx]
test dl, dl
je 0x100520b6
cmp dl, 0x23
jne 0x100520b0
cmp byte [ecx + 1], dl
je 0x100520b6
inc ecx
cmp ecx, 0xffffffff
jb 0x100520a0
push eax
sub ecx, eax
push ecx
push str._.s
call fcn.100256f0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret