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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push esi
push edi
mov edi, dword [0x101bf8f4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x1bac]
mov byte [eax + 0xac], 1
mov esi, dword [edi + 0x1bac]
mov dword [esp + 0x28], esi
cmp byte [esi + 0xaf], 0
jne 0x10059e36
movss xmm7, dword [0x101b65fc]
xorps xmm4, xmm4
mov byte [esi + 0xac], 1
movss xmm0, dword [edi + 0x1560]
mov eax, dword [edi + 0x1bac]
addss xmm0, xmm0
movss xmm5, dword [eax + 0x1c]
mov eax, dword [edx]
subss xmm5, xmm0
mov eax, dword [eax*4 + 0x10188a98]
movss dword [esp + 0x24], xmm5
test eax, eax
jne 0x100594f5
xorps xmm6, xmm6
jmp 0x10059547
movss xmm2, dword [edi + 0x1940]
movaps xmm3, xmm7
push 0
push 0
push eax
push ecx
mov ecx, dword [edi + 0x193c]
lea eax, [esp + 0x1c]
mov dword [esp], 0xbf800000
push eax
call fcn.10064d90
movss xmm0, dword [esp + 0xc]
xorps xmm4, xmm4
addss xmm0, dword [0x101b63c8]
movss xmm5, dword [esp + 0x24]
movss xmm7, dword [0x101b65fc]
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movss xmm1, dword [0x101b664c]
movaps xmm0, xmm5
subss xmm0, dword [0x101b64dc]
call fcn.10058870
mov eax, dword [edi + 0x1bac]
xor edx, edx
subss xmm5, dword [0x101b6428]
mov byte [eax + 0xac], 1
mov ecx, dword [edi + 0x1bac]
cvttss2si eax, xmm6
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm5, xmm0
movss xmm0, dword [ecx + 0x14]
subss xmm0, dword [ecx + 0x78]
addss xmm5, xmm0
movss xmm0, dword [ecx + 0x108]
maxss xmm0, xmm5
movss dword [ecx + 0xf0], xmm5
movss dword [ecx + 0x108], xmm0
mov ecx, dword [esi + 0xe4]
mov eax, dword [esi + 0xec]
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x1c]
call fcn.1004ce90
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp dword [edi + 0x1be0], esi
jne 0x100595e6
mov dword [edi + 0x1be4], esi
cmp dword [edi + 0x1c1c], esi
jne 0x100595f5
mov byte [edi + 0x1c20], 1
mov ecx, dword [esp + 0x20]
movss xmm5, dword [edi + 0x1940]
mov eax, dword [ecx]
mov eax, dword [eax*4 + 0x10188a98]
test eax, eax
je 0x10059650
push 0
push 0
push eax
push ecx
mov ecx, dword [edi + 0x193c]
lea eax, [esp + 0x1c]
mov dword [esp], 0xbf800000
movaps xmm3, xmm7
push eax
movaps xmm2, xmm5
call fcn.10064d90
movss xmm0, dword [esp + 0xc]
addss xmm0, dword [0x101b63c8]
movss xmm5, dword [esp + 0x10]
cvttss2si eax, xmm0
movd xmm4, eax
cvtdq2ps xmm4, xmm4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
movss xmm3, dword [eax + 0xf0]
movss xmm2, dword [eax + 0xf4]
movaps xmm0, xmm3
addss xmm0, xmm4
movss dword [esp + 0x2c], xmm3
movaps xmm1, xmm2
movss dword [esp + 0x30], xmm2
addss xmm1, xmm5
movss dword [esp + 0x3c], xmm3
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x1c]
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x48], xmm1
subss xmm1, xmm2
movss dword [esp + 0x44], xmm0
subss xmm0, xmm3
movss dword [esp + 0x10], xmm1
movss xmm1, dword [edi + 0x1564]
movss dword [esp + 0xc], xmm0
call fcn.10058570
push ecx
lea eax, [esp + 0x30]
mov edx, esi
push eax
lea ecx, [esp + 0x44]
call fcn.100586a0
add esp, 8
test al, al
je 0x10059e36
mov edx, dword [0x101bf8f4]
cmp byte [edx + 0x1d97], 0
mov ecx, dword [edx + 0x1bac]
je 0x1005973d
cmp byte [edx + 0x1d96], 0
jne 0x1005973d
test byte [edx + 0x1c4c], 4
jne 0x100597d1
mov eax, dword [edx + 0x1d48]
cmp eax, dword [edx + 0x1c48]
jne 0x1005972e
test eax, eax
je 0x1005972e
mov al, 1
jmp 0x10059730
xor al, al
test al, al
je 0x100597d3
jmp 0x100597c4
mov eax, dword [edx + 0x1c50]
test al, 1
je 0x100597d1
cmp dword [edx + 0x1bb0], ecx
je 0x10059757
test al, al
jns 0x100597d1
mov eax, dword [edx + 0x1be0]
test eax, eax
je 0x10059777
cmp eax, dword [edx + 0x1c48]
je 0x10059777
cmp byte [edx + 0x1bed], 0
jne 0x10059777
cmp eax, dword [ecx + 0x70]
jne 0x100597d1
mov eax, dword [edx + 0x1d44]
test eax, eax
je 0x100597a5
mov eax, dword [eax + 0x32c]
test eax, eax
je 0x100597a5
cmp byte [eax + 0xab], 0
je 0x100597a5
cmp eax, dword [ecx + 0x32c]
je 0x100597a5
test dword [eax + 0x10], 0xc000000
jne 0x100597d1
test byte [edx + 0x1c4c], 4
jne 0x100597d1
mov eax, dword [edx + 0x1c48]
cmp eax, dword [ecx + 0x70]
jne 0x100597c2
cmp byte [ecx + 0xac], 0
jne 0x100597d1
mov al, 1
cmp byte [edi + 0x3d8], 0
je 0x100597d3
mov cl, 1
jmp 0x100597d5
xor al, al
xor cl, cl
test al, al
je 0x100597e7
cmp byte [edi + 0x3d9], 0
mov byte [esp + 0x17], 1
jne 0x100597ec
mov byte [esp + 0x17], 0
test cl, cl
je 0x1005983d
cmp dword [edi + 0x1be0], esi
je 0x10059829
push 0x200
lea eax, [edi + 0x100]
mov dword [edi + 0xec], 0
push 0
push eax
mov byte [edi + 0xf0], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [eax], 0
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.1004f3f0
mov ecx, edx
call fcn.10057d70
jmp 0x10059856
test al, al
jne 0x1005985c
cmp byte [edi + 0x3d8], al
je 0x1005985c
cmp dword [edi + 0x1be0], esi
jne 0x1005985c
call fcn.1004f4c0
mov edx, dword [0x101bf8f4]
mov eax, dword [esp + 0x20]
mov byte [esp + 0xb], 0
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x1be0], esi
jne 0x1005993b
xor esi, esi
nop dword [eax]
cmp byte [esi + edi + 0xec], 0
je 0x100598d0
cmp esi, 4
ja case.default.0x1005988f
jmp dword [esi*4 + 0x10059e40]
mov dword [esp + 0x18], 1
jmp case.default.0x1005988f
mov dword [esp + 0x18], 2
jmp case.default.0x1005988f
mov dword [esp + 0x18], 4
jmp case.default.0x1005988f
mov dword [esp + 0x18], 5
jmp case.default.0x1005988f
mov dword [esp + 0x18], 6
mov byte [esp + 0xb], 1
call fcn.1004f4c0
inc esi
cmp esi, 5
jl 0x10059880
cmp byte [esp + 0xb], 0
jne 0x10059903
mov esi, 8
cmp byte [edi + esi + 0x100], 0
je 0x100598fa
mov dword [esp + 0x18], esi
mov byte [esp + 0xb], 1
call fcn.1004f4c0
inc esi
cmp esi, 0xa5
jle 0x100598e2
mov eax, dword [0x101bf8f4]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
js 0x1005992c
call fcn.10052950
test al, al
je 0x1005992c
mov eax, dword [esp + 0x20]
mov dword [eax], 0
call fcn.1004f4c0
jmp 0x10059cbf
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x10059cbf
cmp dword [ebp + 8], 0
je 0x10059cc3
mov eax, dword [edx + 0x1d2c]
cmp dword [edx + 0x1d20], eax
jle 0x10059965
lea ecx, [eax + eax*8]
mov eax, dword [edx + 0x1d28]
cmp dword [eax + ecx*4], esi
jne 0x10059965
mov al, 1
jmp 0x10059967
xor al, al
cmp byte [esp + 0x17], 0
je 0x10059980
test al, al
jne 0x10059988
xor edx, edx
mov ecx, esi
call fcn.10059ea0
jmp 0x10059cc3
test al, al
je 0x10059cc3
or dword [edx + 0x1c74], 2
lea eax, [esp + 0x60]
mov dword [edx + 0x1c94], 0x42820000
mov dword [edx + 0x1c98], 0x42700000
mov dword [edx + 0x1c7c], 1
push dword [edi + 0x1d2c]
push str.Combo__02d
push 0x10
push eax
call fcn.1004ce30
push 0
xor edx, edx
lea ecx, [esp + 0x74]
call fcn.1004ce90
add esp, 0x14
mov ecx, eax
call fcn.10052e80
mov dword [esp + 0xc], eax
test eax, eax
je 0x10059b1f
cmp byte [eax + 0xab], 0
je 0x10059b1f
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.10053990
mov esi, dword [0x101bf8f4]
movss xmm7, dword [0x101b6920]
mov eax, dword [esi + 0x1d40]
movss xmm4, dword [esi + 0x15d8]
movss xmm3, dword [esi + 0x15d4]
mov eax, dword [eax]
movss xmm1, dword [eax + 0x10]
movss xmm5, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, dword [eax + 8]
movaps xmm6, xmm5
addss xmm6, dword [eax + 0xc]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
addss xmm0, xmm4
comiss xmm1, xmm0
jbe 0x10059a56
xorps xmm4, xmm7
jmp 0x10059a59
xorps xmm4, xmm4
movaps xmm1, xmm6
movaps xmm0, xmm3
subss xmm1, xmm5
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x10059a71
xorps xmm3, xmm7
jmp 0x10059a74
xorps xmm3, xmm3
movss xmm0, dword [eax + 8]
subss xmm5, xmm3
push 1
subss xmm0, xmm4
addss xmm4, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x54]
movss dword [esp + 0x54], xmm5
push eax
mov eax, dword [esp + 0x18]
addss xmm3, xmm6
movss dword [esp + 0x5c], xmm0
lea edx, [esp + 0x24]
movss xmm0, dword [esp + 0x38]
lea ecx, [esp + 0x18]
add eax, 0xc8
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
movss dword [esp + 0x64], xmm3
push eax
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x30], xmm0
call fcn.1005a280
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, dword [esp + 0x10]
or dword [esi + 0x1c74], 1
mov dword [esi + 0x1c84], eax
mov dword [esi + 0x1c88], ecx
mov dword [esi + 0x1c8c], 0
mov dword [esi + 0x1c90], 0
mov dword [esi + 0x1c78], 1
movss xmm0, dword [edi + 0x1570]
lea edx, [esp + 0xc]
mov ecx, 0xd
movss dword [esp + 0xc], xmm0
mov dword [esp + 0x10], 0
call fcn.1004dd40
mov esi, dword [0x101bf8f4]
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 2
movups xmm0, xmmword [esi + 0x160c]
lea ecx, [esi + 0x1cd8]
movups xmmword [esp + 0x54], xmm0
call fcn.1005eb30
mov dword [esi + 0x160c], 0x3d20a0a1
lea ecx, [esp + 0x60]
mov dword [esi + 0x1610], 0x3d20a0a1
xor edx, edx
mov dword [esi + 0x1614], 0x3d20a0a1
push 0x4000143
mov dword [esi + 0x1618], 0x3f800000
call fcn.10055500
mov esi, dword [0x101bf8f4]
add esp, 4
mov eax, dword [esi + 0x1cd8]
mov ecx, dword [esi + 0x1ce0]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
mov ecx, 1
movups xmmword [esi + eax*8 + 0x15ec], xmm0
dec dword [esi + 0x1cd8]
call fcn.1004ddc0
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0
mov ecx, str.always_on
mov dword [esp + 0x14], 0
cmp dword [esi], 0
mov dword [esp + 0x18], 0
sete dl
call fcn.10076ad0
add esp, 8
test al, al
je 0x10059c17
mov dword [esi], 0
cmp dword [esi], 1
lea eax, [esp + 0xc]
push eax
sete dl
mov dword [esp + 0x10], 0
push 0
mov ecx, str.on_hotkey
mov dword [esp + 0x18], 0
call fcn.10076ad0
add esp, 8
test al, al
je 0x10059c4b
mov dword [esi], 1
cmp dword [esi], 2
lea eax, [esp + 0xc]
push eax
sete dl
mov dword [esp + 0x10], 0
push 0
mov ecx, str.toggle
mov dword [esp + 0x18], 0
call fcn.10076ad0
add esp, 8
test al, al
je 0x10059c7f
mov dword [esi], 2
mov esi, dword [0x101bf8f4]
mov eax, dword [esi + 0x1bac]
cmp dword [esi + 0x1d44], eax
jne 0x10059ca3
mov dword [esi + 0x1e44], eax
mov dword [esi + 0x1e48], 2
test dword [eax + 0x10], 0x1000000
je 0x10059cb3
mov byte [esi + 0x1b56], 1
call fcn.10057b40
mov byte [esi + 0x1b56], 0
mov esi, dword [esp + 0x24]
mov eax, dword [str._..._]
mov dword [esp + 0x70], eax
mov ax, word [0x101ad594]
push 0x3a
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x10059d03
cmp dword [edi + 0x1be0], esi
je 0x10059d0b
push dword [eax*4 + 0x10188a98]
jmp 0x10059d10
cmp dword [edi + 0x1be0], esi
jne 0x10059d20
push str._..._
lea eax, [esp + 0x74]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [0x101f5cec]
call fcn.10057f80
mov edx, dword [esp + 0x28]
movss xmm2, dword [edi + 0x1528]
cmp dword [edi + 0x1be0], esi
jne 0x10059d4c
movss xmm1, dword [0x101b6364]
movaps xmm0, xmm1
jmp 0x10059d57
movss xmm0, dword [0x101b6364]
movaps xmm1, xmm0
movss xmm5, dword [0x101b63d0]
movss xmm3, dword [0x101b6598]
minss xmm1, xmm5
movss xmm4, dword [0x101b6388]
minss xmm0, xmm5
mulss xmm1, xmm3
mulss xmm0, xmm3
addss xmm1, xmm4
addss xmm0, xmm4
cvttss2si ecx, xmm1
cvttss2si eax, xmm0
shl ecx, 8
xorps xmm0, xmm0
or ecx, eax
shl ecx, 8
comiss xmm0, xmm2
ja 0x10059da6
minss xmm2, xmm5
movaps xmm0, xmm2
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si esi, xmm0
shl esi, 0x18
or esi, ecx
or esi, 0x5a
test esi, 0xff000000
je 0x10059e27
lea ecx, [esp + 0x70]
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059dd0
sub ecx, edi
lea eax, [esp + 0x70]
add ecx, eax
cmp eax, ecx
je 0x10059e27
push dword [esp + 0x30]
mov eax, dword [edx + 0x294]
push dword [esp + 0x30]
push 0
mov edx, dword [eax + 0x2c]
movups xmm0, xmmword [eax + 0x60]
push ecx
mov dword [esp], 0
movss xmm2, dword [edx + 0xc]
push ecx
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edx + 8]
push esi
push eax
movups xmmword [esp + 0x84], xmm0
call fcn.100650b0
call fcn.100580a0
mov al, byte [esp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret