Function at 0x10017ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [0x1007de40]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x5a44]
sub eax, 1
mov dword [esp + 0x20], eax
js 0x10017f50
lea ebx, [eax + eax*4]
shl ebx, 2
nop dword [eax + eax]
mov ecx, dword [edi + 0x5a4c]
cmp dword [ecx + ebx + 4], 7
jne 0x10017f44
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, ebx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [edi + 0x5a44]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x2c]
add esp, 0xc
dec dword [edi + 0x5a44]
dec eax
sub ebx, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jns 0x10017ef0
xor esi, esi
cmp dword [edi + 0x5a44], esi
jle 0x10017f84
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a4c]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x10017f78
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a44]
jl 0x10017f60
mov esi, dword [0x1007de40]
cmp byte [esi + 0x66], 0
je 0x10017f9a
test byte [esi + 0xc], 2
jne 0x10017f9a
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5a0d], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x1c], ebx
jne 0x10018001
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10017ffa
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
call fcn.10014810
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x10017ffa
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10017fe5
call fcn.100274c0
mov ecx, dword [esp + 0x28]
mov eax, dword [0x1007de40]
test eax, eax
je 0x10017ff4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov byte [esi + 0x5a0d], 1
movss xmm0, dword [esi + 0x5a10]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1001808e
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5a10], xmm0
jb 0x1001808e
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1001807d
mov eax, dword [0x1007de40]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [eax + 0x5a10], 0
call fcn.10027760
mov edx, 0x1005ea38
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.10014710
mov ebx, eax
test ebx, ebx
je 0x10018084
push ebx
push dword [esp + 0x24]
push 1
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x10018084
mov byte [esi + 0x98], 1
mov dword [esi + 0x5a10], 0
movss xmm0, dword [edi + 0x18]
lea ecx, [edi + 0x59e0]
inc dword [edi + 0x3dd8]
xor eax, eax
cvtps2pd xmm0, xmm0
push eax
mov byte [edi + 0x3de4], 1
mov word [edi + 0x59d2], ax
mov dword [edi + 0x3e2c], eax
addsd xmm0, qword [edi + 0x3dd0]
movsd qword [edi + 0x3dd0], xmm0
call fcn.10028e30
mov eax, dword [edi + 0x5bec]
mov ecx, 0x3c
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x10064374]
subss xmm0, dword [edi + eax*4 + 0x5afc]
addss xmm0, dword [edi + 0x5bf4]
movss dword [edi + 0x5bf4], xmm0
movss dword [edi + eax*4 + 0x5afc], xmm1
mov eax, dword [edi + 0x5bec]
inc eax
movss xmm1, dword [edi + 0x5bf4]
cdq
idiv ecx
mov eax, dword [edi + 0x5bf0]
movss xmm0, dword [0x10064430]
inc eax
cmp eax, ecx
mov dword [edi + 0x5bec], edx
movss dword [esp + 0x20], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x100642d4]
mov dword [edi + 0x5bf0], ecx
jbe 0x1001815e
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
push ecx
lea ecx, [edi + 0x378c]
movss dword [edi + 0x9c], xmm0
call fcn.10028cd0
mov cl, byte [edi + 0x62]
call fcn.10021450
mov ebx, dword [0x1007de40]
xor esi, esi
mov dword [esp + 0x28], ebx
xorps xmm3, xmm3
mov eax, dword [ebx + 0x47b4]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [ebx + 0x47ac], esi
jle 0x1001828b
nop dword [eax]
mov eax, dword [ebx + 0x47b4]
movaps xmm2, xmm3
mov edx, dword [eax + esi*4]
inc esi
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
mov dword [edx + 0x7c], eax
mov eax, dword [edx + 0x94]
mov dword [edx + 0x80], ecx
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], ecx
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
movss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 8]
movss xmm1, dword [edx + 0x7c]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 0x88]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, dword [ebx + 0x47ac]
jl 0x100181c0
mov eax, dword [edi + 0x48]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x100182a1
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [ebx + 0x4c]
movss xmm2, dword [0x10064374]
mov eax, dword [ebx + 0x3e38]
movaps xmm0, xmm2
mov dword [ebx + 0x3bc4], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bcc], xmm0
test eax, eax
je 0x100182fb
movss xmm0, dword [eax + 0x258]
mov eax, dword [eax + 0x2f4]
mulss xmm0, dword [ebx + 0x3bcc]
test eax, eax
je 0x100182fe
mulss xmm0, dword [eax + 0x258]
jmp 0x100182fe
movaps xmm0, xmm3
movss xmm7, dword [esp + 0x20]
movss xmm4, dword [0x1006444c]
movaps xmm6, xmm7
movss dword [ebx + 0x3bc8], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bd0], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3bd4], ecx
mov dword [ebx + 0x3dcc], eax
mov dword [ebx + 0x3bd8], esi
movss dword [ebx + 0x3bdc], xmm0
mov edx, dword [edi + 0x47ac]
test edx, edx
jle 0x100183a2
mov ecx, dword [edi + 0x47b4]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x1001837a
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x10018382
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x1001838a
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x10018392
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x10018356
movss xmm2, dword [0x10064374]
movss dword [edi + 0x3be8], xmm7
movss dword [edi + 0x3bec], xmm6
movss dword [edi + 0x3bf0], xmm4
movss dword [edi + 0x3bf4], xmm5
mov eax, dword [edi + 0x386c]
movss xmm1, dword [edi + 0x3870]
mov dword [edi + 0x3be0], eax
movss xmm0, dword [edi + 0x3be4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100184d7
movss dword [edi + 0x3be4], xmm1
xor esi, esi
mov ebx, 0x200
nop word [eax + eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x10018484
movss xmm1, dword [edi + 0x3be4]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x100643ac]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x1001847a
mov eax, 4
jmp 0x10018489
cmp eax, 0x200
cmovg eax, ebx
jmp 0x10018489
mov eax, 0x30
movss xmm2, dword [0x10064374]
mov byte [esi + edi + 0x3d8c], al
inc esi
cmp esi, 0x40
jl 0x10018400
movsd xmm0, qword [0x10064380]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x10064374]
cvtsd2ss xmm0, xmm0
mov ebx, dword [esp + 0x28]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3be4]
divss xmm0, xmm1
movss dword [edi + 0x3d88], xmm0
xor edx, edx
mov dword [edi + 0x3bf8], 0
cmp byte [edi + 0x3868], dl
je 0x100184fa
mov dword [edi + 0x3bf8], 1
mov edx, 1
cmp byte [edi + 0x3869], 0
mov ecx, edx
je 0x1001851c
mov eax, dword [edi + 0x3bc4]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1001851c
or ecx, 2
mov dword [edi + 0x3bf8], ecx
cmp byte [edi + 0x386a], 0
je 0x1001852e
or ecx, 4
mov dword [edi + 0x3bf8], ecx
test byte [edi + 0xc], 8
je 0x1001853d
or ecx, 8
mov dword [edi + 0x3bf8], ecx
xor esi, esi
cmp dword [edi + 0x47ac], esi
jle 0x10018572
nop word [eax + eax]
mov eax, dword [edi + 0x47b4]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x47ac]
jl 0x10018550
cmp byte [edi + 0x4940], 0
je 0x100185a6
mov eax, dword [edi + 0x4958]
cmp eax, dword [edi + 0x3e84]
jne 0x100185a6
cmp dword [ebx + 0x3e84], eax
jne 0x10018597
mov dword [ebx + 0x3e88], eax
cmp dword [ebx + 0x3eac], eax
jne 0x100185a6
mov byte [ebx + 0x3eb0], 1
cmp dword [edi + 0x3e74], 0
jne 0x100185bb
mov dword [edi + 0x3e7c], 0
jmp 0x100185cd
mov eax, dword [edi + 0x3e70]
test eax, eax
je 0x100185d7
cmp dword [edi + 0x3e84], eax
jne 0x100185d7
mov dword [edi + 0x3e80], 0
mov eax, dword [edi + 0x3e70]
test eax, eax
je 0x10018611
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e7c]
movss dword [edi + 0x3e7c], xmm0
cmp dword [edi + 0x3e84], eax
je 0x10018611
addss xmm1, dword [edi + 0x3e80]
movss dword [edi + 0x3e80], xmm1
mov dword [edi + 0x3e74], eax
mov eax, dword [edi + 0x3e84]
mov dword [edi + 0x3e70], 0
mov word [edi + 0x3e78], 0
test eax, eax
je 0x10018669
cmp dword [edi + 0x3e88], eax
je 0x10018669
cmp dword [edi + 0x3eac], eax
jne 0x10018669
test byte [edi + 0x5aa4], 1
je 0x1001865a
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.100280a0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.100170d0
mov ebx, dword [0x1007de40]
mov ecx, dword [edi + 0x3e84]
test ecx, ecx
je 0x10018688
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e8c]
movss dword [edi + 0x3e8c], xmm0
mov eax, dword [edi + 0x3ea0]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3ebc]
mov dword [edi + 0x3eb4], eax
mov al, byte [edi + 0x3e94]
mov byte [edi + 0x3eb1], al
mov eax, dword [edi + 0x5958]
movss dword [edi + 0x3ebc], xmm0
mov dword [edi + 0x3eac], ecx
mov dword [edi + 0x3e88], 0
mov byte [edi + 0x3e95], 0
mov byte [edi + 0x3eb0], 0
mov byte [edi + 0x3e90], 0
test eax, eax
je 0x100186f2
cmp ecx, eax
je 0x100186f2
mov dword [edi + 0x5958], 0
test ecx, ecx
jne 0x10018710
mov dword [edi + 0x4688], ecx
mov dword [edi + 0x4680], ecx
mov byte [edi + 0x4684], cl
mov dword [edi + 0x4688], ecx
jmp 0x10018733
mov eax, dword [edi + 0x4688]
test eax, eax
je 0x10018733
test al, 2
je 0x10018733
mov dword [ebx + 0x3f6c], ecx
mov dword [ebx + 0x3f68], ecx
mov word [ebx + 0x3f70], 0
mov eax, dword [edi + 0x4a68]
movss xmm0, dword [edi + 0x4a70]
mov dword [edi + 0x4a6c], eax
test eax, eax
je 0x10018764
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a68], 0
movss dword [edi + 0x4a70], xmm0
jmp 0x100187a4
comiss xmm0, dword [0x100642d4]
jbe 0x100187ae
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x10064324]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a74]
addss xmm1, xmm1
movss dword [edi + 0x4a74], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x100187ae
mov dword [edi + 0x4a70], 0
mov dword [edi + 0x4a74], 0
mov eax, dword [edi + 0x49a4]
mov dword [edi + 0x49a8], eax
mov dword [edi + 0x49a4], 0
mov dword [edi + 0x49a0], 0x7f7fffff
mov word [edi + 0x4941], 0
mov dword [edi + 0x49b0], 0
call fcn.10020160
call fcn.10024010
call fcn.100206c0
call fcn.10017c50
mov esi, dword [0x1007de40]
mov ecx, dword [esi + 0x3e44]
test ecx, ecx
je 0x100188ae
mov eax, dword [esi + 0x3e84]
mov dword [esi + 0x3e88], eax
cmp dword [esi + 0x3eac], eax
jne 0x10018824
mov byte [esi + 0x3eb0], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x2fc]
je 0x100188a2
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x10018845
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x10064448]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x100188a2
comiss xmm2, xmm1
jb 0x100188a2
movss xmm0, dword [eax]
lea edx, [esp + 0x30]
subss xmm0, dword [esi + 0x3e98]
push 1
mov ecx, ebx
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e9c]
movss dword [esp + 0x38], xmm0
call fcn.1001f780
mov ecx, dword [esi + 0x3e44]
add esp, 4
call fcn.1001f4e0
jmp 0x100188ea
mov dword [esi + 0x3e44], 0
jmp 0x100188e1
mov ecx, dword [esi + 0x3ea0]
test ecx, ecx
je 0x100188ea
mov eax, dword [esi + 0x3e84]
cmp dword [ecx + 0x6c], eax
jne 0x100188ea
mov dword [esi + 0x3e88], eax
cmp dword [esi + 0x3eac], eax
jne 0x100188d8
mov byte [esi + 0x3eb0], 1
cmp byte [esi + 0xdc0], 0
jne 0x100188ea
xor edx, edx
xor ecx, ecx
call fcn.100170d0
mov eax, dword [0x1007de40]
mov edx, dword [eax + 0x4790]
sub edx, 1
js 0x10018927
mov eax, dword [eax + 0x4798]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001891f
test dword [ecx + 8], 0x8000000
jne 0x10018941
sub eax, 0x28
sub edx, 1
jns 0x10018910
cmp dword [edi + 0x4910], 0
je 0x10018960
movss xmm0, dword [edi + 0x4920]
comiss xmm0, dword [0x100642d4]
jbe 0x10018960
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x100643b8]
addss xmm1, dword [edi + 0x4938]
minss xmm1, dword [0x10064374]
jmp 0x10018981
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100643c4]
movss xmm1, dword [edi + 0x4938]
subss xmm1, xmm0
maxss xmm1, dword [0x100642d4]
movss dword [edi + 0x4938], xmm1
movups xmm0, xmmword [edi + 0x59ec]
mov dword [edi + 0x493c], 0
mov dword [edi + 0x5c00], 0xffffffff
mov dword [edi + 0x5bfc], 0xffffffff
mov dword [edi + 0x5bf8], 0xffffffff
movups xmmword [edi + 0x59fc], xmm0
mov byte [edi + 0x59ec], 0
call fcn.10020a50
cmp byte [edi + 0x3de7], 0
jne 0x100189f9
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x100189f9
movsd xmm1, qword [edi + 0x3dd0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
jmp 0x100189ff
movss xmm1, dword [esp + 0x20]
xor ebx, ebx
cmp dword [edi + 0x3df0], ebx
je 0x10018ba4
nop dword [eax]
mov eax, dword [edi + 0x3df8]
mov esi, dword [eax + ebx*4]
mov ax, word [esi + 0xb2]
mov cl, byte [esi + 0xa6]
mov word [esi + 0xb4], ax
xor eax, eax
mov byte [esi + 0xa7], cl
mov byte [esi + 0xa6], 0
mov byte [esi + 0xa8], 0
mov word [esi + 0xb2], ax
test cl, cl
jne 0x10018b91
cmp byte [esi + 0x344], al
jne 0x10018b91
comiss xmm1, dword [esi + 0x238]
jbe 0x10018b91
mov ecx, dword [esi + 0x260]
mov byte [esi + 0x344], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x33c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x340], eax
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x10018ac9
mov eax, dword [0x1007de40]
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe0], 0
test eax, eax
je 0x10018ab7
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0xe8], 0
mov ecx, dword [esi + 0x260]
call fcn.100319c0
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x10018b13
mov eax, dword [0x1007de40]
mov dword [esi + 0x180], 0
mov dword [esi + 0x17c], 0
test eax, eax
je 0x10018b01
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x184], 0
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x10018b52
mov eax, dword [0x1007de40]
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
test eax, eax
je 0x10018b40
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x1ac], 0
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x10018b91
mov eax, dword [0x1007de40]
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
test eax, eax
je 0x10018b7f
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x1b8], 0
movss xmm1, dword [esp + 0x20]
inc ebx
cmp ebx, dword [edi + 0x3df0]
jne 0x10018a10
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x4a14], ecx
jle 0x10018cf5
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x28], edx
nop
mov eax, dword [edi + 0x4a1c]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x10018cda
movss xmm1, dword [esp + 0x20]
comiss xmm1, xmm0
jbe 0x10018cd7
mov esi, dword [edi + 0x49fc]
mov ebx, dword [0x1007de40]
add esi, edx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x198], 0
mov eax, dword [esi + 0x194]
test eax, eax
je 0x10018c39
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test ebx, ebx
je 0x10018c27
dec dword [ebx + 0xb0]
push eax
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x194], 0
mov byte [esi + 0x1d9], 1
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x10018c7f
mov eax, dword [0x1007de40]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x10018c6d
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x15c], 0
xor edx, edx
mov byte [esi + 0x1e5], 1
cmp dword [esi + 0x40], edx
jle 0x10018cab
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x10018c92
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
sub esi, dword [ebx + 0x49fc]
mov eax, 0x4325c53f
imul esi
mov eax, dword [ebx + 0x4a1c]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x24]
xorps xmm1, xmm1
inc ecx
add edx, 0x1e8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp ecx, dword [edi + 0x4a14]
jl 0x10018bc0
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edi + 0x49e8], eax
jle 0x10018d55
xor esi, esi
xorps xmm1, xmm1
nop dword [eax + eax]
mov ebx, dword [edi + 0x49f0]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x10018d45
movss xmm1, dword [esp + 0x20]
comiss xmm1, xmm0
jbe 0x10018d42
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.10034570
mov eax, dword [esp + 0x28]
mov dword [esi + ebx + 4], 0xbf800000
xorps xmm1, xmm1
inc eax
add esi, 0x68
mov dword [esp + 0x28], eax
cmp eax, dword [edi + 0x49e8]
jl 0x10018d10
cmp byte [edi + 0x3de7], 0
je 0x10018dec
mov esi, dword [0x1007de40]
mov eax, dword [esi + 0x4780]
test eax, eax
je 0x10018da6
mov dword [esi + 0x477c], 0
mov dword [esi + 0x4778], 0
test esi, esi
je 0x10018d90
dec dword [esi + 0xb0]
mov ebx, dword [esp + 0x1c]
push eax
call ebx
add esp, 4
mov dword [esi + 0x4780], 0
jmp 0x10018daa
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x478c]
test ecx, ecx
je 0x10018de7
mov eax, dword [0x1007de40]
mov dword [esi + 0x4788], 0
mov dword [esi + 0x4784], 0
test eax, eax
je 0x10018dd7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x478c], 0
call fcn.1003bf20
mov eax, dword [edi + 0x47b8]
mov byte [edi + 0x3de7], 0
test eax, eax
je 0x10018e51
cmp byte [eax + 0xa7], 0
jne 0x10018e51
mov eax, dword [0x1007de40]
mov edx, dword [eax + 0x3dfc]
sub edx, 1
js 0x10018e4a
mov eax, dword [eax + 0x3e04]
lea esi, [eax + edx*4]
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x10018e42
cmp byte [ecx + 0xa7], 0
je 0x10018e42
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x10019017
sub esi, 4
sub edx, 1
jns 0x10018e20
xor ecx, ecx
call fcn.1001f4e0
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
jns 0x10018e77
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3e14]
call fcn.10029410
mov dword [edi + 0x3e14], 0
mov ecx, dword [edi + 0x47a0]
test ecx, ecx
jns 0x10018ea7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x479c]
call fcn.10029390
lea esi, [edi + 0x4778]
mov dword [edi + 0x479c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10018ed6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10028b90
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x10018eeb
push 8
mov ecx, esi
call fcn.10028b90
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x4784]
inc dword [esi]
call fcn.10028960
mov esi, dword [0x1007de40]
cmp byte [esi + 0x5ac5], 0
mov dword [esi + 0x5ac8], 0
je 0x1001906f
mov ebx, dword [esi + 0x3e74]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [esp + 0x34], ebx
mov dword [esi + 0x493c], 7
call fcn.1001fe60
add esp, 4
test al, al
je 0x10018f53
mov byte [esi + 0x5ac5], 0
mov eax, dword [esi + 0xdd4]
mov dword [esp + 0x20], eax
cmp eax, 0x3000
je 0x10018f89
movzx ecx, byte [esi + 0x5ac6]
call fcn.1001ffc0
test al, al
mov eax, dword [esp + 0x20]
je 0x10018f89
test ebx, ebx
je 0x10018f89
mov dword [esi + 0x5ac8], ebx
mov byte [esi + 0x5ac5], 0
xor ebx, ebx
nop dword [eax + eax]
cmp eax, 0x3000
jne 0x10018fac
mov ecx, ebx
call fcn.1001ffc0
test al, al
mov eax, dword [esp + 0x20]
je 0x10018fac
mov byte [esi + 0x5ac6], bl
inc ebx
cmp ebx, 3
jl 0x10018f90
or dword [esi + 0x46e8], 0x40
xor ecx, ecx
mov dword [esi + 0x473c], 0x3f333333
call fcn.10022450
mov ebx, dword [esp + 0x30]
push ebx
push str.HoveredId:_0x_08X
call fcn.1003cfe0
push str.Press_ESC_to_abort_picking.
call fcn.1003cfe0
add esp, 0xc
mov dword [esp + 0x30], str.Left
cmp dword [esp + 0x20], 0x3000
mov dword [esp + 0x34], str.Right
mov dword [esp + 0x38], str.Middle
jne 0x10019033
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.1003cfe0
add esp, 4
jmp 0x10019064
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x1001902a
cmp byte [eax + 0xa7], 0
jne 0x1001902c
mov eax, ecx
mov ecx, eax
jmp 0x10018e4c
movzx eax, byte [esi + 0x5ac6]
xor ecx, ecx
test ebx, ebx
push dword [esp + eax*4 + 0x30]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x1007de40]
add eax, 0x3874
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.1003d0b0
add esp, 0xc
call fcn.1001f290
mov esi, dword [0x1007de40]
mov ebx, esi
mov dword [ebx + 0x3e6c], 0
mov eax, dword [ebx + 0x5adc]
inc eax
cmp dword [ebx + 0x3dd8], eax
jne 0x1001918b
mov ecx, dword [ebx + 0x3e74]
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x100190a6
mov ecx, dword [ebx + 0x3e84]
mov dword [esp + 0x20], ecx
cmp dword [ebx + 0x5ae4], ecx
je 0x10019103
lea eax, [ebx + 0x5ae8]
mov dword [ebx + 0x5ae4], ecx
mov dword [ebx + 0x5ae0], 0xffffffff
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
test edx, edx
jns 0x100190fd
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x30]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x5ae8]
call fcn.10029480
mov esi, dword [0x1007de40]
lea eax, [ebx + 0x5ae8]
mov ecx, dword [esp + 0x20]
mov dword [eax], 0
test ecx, ecx
je 0x1001918b
mov eax, dword [ebx + 0x5ae0]
test eax, eax
js 0x10019154
mov edx, eax
cmp eax, dword [ebx + 0x5ae8]
jge 0x10019167
mov ecx, dword [ebx + 0x5af0]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
mov ecx, dword [esp + 0x20]
jne 0x1001914d
mov edi, dword [ebx + 0x5af0]
lea ecx, [eax + eax*8]
mov edx, eax
cmp byte [edi + ecx*8 + 4], 2
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
jle 0x10019167
inc eax
mov dword [ebx + 0x5ae0], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x10019163
mov dword [ebx + 0x3e6c], ecx
jmp 0x1001918b
test edx, edx
js 0x1001918b
cmp edx, dword [ebx + 0x5ae8]
jge 0x1001918b
mov eax, dword [ebx + 0x5af0]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [ebx + 0x3e6c], eax
mov eax, dword [ebx + 0x5af0]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5ac4]
test al, al
je 0x100191a9
sub al, 1
mov byte [edi + 0x5ac4], al
jne 0x100191a9
mov dword [edi + 0x4694], 0
mov byte [edi + 0x3de5], 1
xor edx, edx
or dword [esi + 0x46e8], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x4708], 0x43c80000
mov dword [esi + 0x470c], 0x43c80000
mov dword [esi + 0x46f0], 4
call fcn.1001c9d0
xor esi, esi
add esp, 4
cmp dword [edi + 0x5a44], esi
jle 0x10019216
xor ebx, ebx
mov eax, dword [edi + 0x5a4c]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x1001920a
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a44]
jl 0x100191f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret