Function at 0x10020590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
push edi
mov edi, dword [0x10086014]
mov dword [esp + 0x1c], edi
mov edx, dword [edi + 0x5a0c]
lea eax, [edi + 0x5a14]
sub edx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
js 0x10020640
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x14], eax
nop dword [eax]
mov ecx, dword [edi + 0x5a14]
cmp dword [ecx + eax + 4], 7
jne 0x10020628
mov esi, ecx
sub ecx, esi
add ecx, eax
mov eax, 0x66666667
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 + 0x5a0c]
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 + 0x20]
add esp, 0xc
dec dword [edi + 0x5a0c]
mov edx, dword [esp + 0x18]
dec edx
sub eax, 0x14
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
test edx, edx
jns 0x100205d0
lea eax, [edi + 0x5a14]
jmp 0x10020644
mov dword [esp + 0x20], eax
xor esi, esi
cmp dword [edi + 0x5a0c], esi
jle 0x10020680
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
add eax, ecx
cmp dword [eax + 4], 0
jne 0x1002066c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
inc esi
add ecx, 0x14
mov dword [esp + 0x18], ecx
cmp esi, dword [edi + 0x5a0c]
jl 0x10020654
mov esi, dword [0x10086014]
cmp byte [esi + 0x66], 0
je 0x10020696
test byte [esi + 0xc], 2
jne 0x10020696
mov byte [esi + 0x66], 0
cmp byte [esi + 0x59d5], 0
lea ecx, [esi + 0x20]
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x14], eax
jne 0x10020705
mov eax, dword [ecx]
test eax, eax
je 0x100206fe
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
mov ecx, eax
call fcn.1001cfc0
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x100206fb
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100206e4
call fcn.1002f850
mov ecx, dword [esp + 0x30]
mov eax, dword [0x10086014]
test eax, eax
je 0x100206f3
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
lea ecx, [esi + 0x20]
mov byte [esi + 0x59d5], 1
movss xmm0, dword [esi + 0x59d8]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x100207a0
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x59d8], xmm0
jb 0x100207a0
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1002078f
mov eax, dword [0x10086014]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [eax + 0x59d8], 0
call fcn.1002fa70
mov ecx, dword [esp + 0x30]
mov edx, 0x10078d6c
mov dword [esp + 0x28], eax
call fcn.1001cec0
mov dword [esp + 0x30], eax
test eax, eax
je 0x10020796
push eax
push dword [esp + 0x1c]
push 1
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x10020796
mov byte [esi + 0x98], 1
mov dword [esi + 0x59d8], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dd4], 1
mov word [edi + 0x599a], ax
mov dword [edi + 0x3e1c], eax
addsd xmm0, qword [edi + 0x3dc0]
movsd qword [edi + 0x3dc0], xmm0
mov ecx, dword [edi + 0x59ac]
test ecx, ecx
jns 0x100207fa
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 + 0x59a8]
call fcn.10030e90
mov dword [edi + 0x59a8], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5bb4]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x10080304]
movss xmm4, dword [0x1008024c]
subss xmm0, dword [edi + eax*4 + 0x5ac4]
movss dword [esp + 0x18], xmm2
addss xmm0, dword [edi + 0x5bbc]
movss dword [edi + 0x5bbc], xmm0
movss dword [edi + eax*4 + 0x5ac4], xmm1
mov eax, dword [edi + 0x5bb4]
inc eax
movss xmm1, dword [edi + 0x5bbc]
cdq
idiv ecx
mov eax, dword [edi + 0x5bb8]
inc eax
mov dword [edi + 0x5bb4], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x5bb8], ecx
jbe 0x10020895
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x10020898
movaps xmm0, xmm2
mov esi, dword [0x10086014]
movss dword [edi + 0x9c], xmm0
mov eax, dword [esi + 0x4790]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [esi + 0x4788], 0
jle 0x100209b5
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x4790]
movaps xmm2, xmm3
mov edx, dword [eax + edi*4]
inc edi
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 edi, dword [esi + 0x4788]
jl 0x100208e0
movss xmm2, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x48]
mov esi, dword [0x10086014]
mov byte [eax + 0x10], 1
mov eax, dword [esi + 0x54]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100209d9
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
movss xmm1, dword [esi + 0x4c]
movaps xmm0, xmm4
mov ecx, dword [esi + 0x3e28]
mov dword [esi + 0x3bb0], eax
mulss xmm1, dword [eax + 0x10]
mulss xmm1, dword [eax + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bb8], xmm0
test ecx, ecx
je 0x10020a2b
movss xmm0, dword [ecx + 0x240]
mov ecx, dword [ecx + 0x2dc]
mulss xmm0, dword [esi + 0x3bb8]
test ecx, ecx
je 0x10020a2e
mulss xmm0, dword [ecx + 0x240]
jmp 0x10020a2e
movaps xmm0, xmm3
movss xmm4, dword [0x1008031c]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm0
movaps xmm6, xmm2
mov edx, dword [eax + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [esi + 0x3bbc], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x3db8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x3bc0], ecx
mov dword [esi + 0x3bc4], eax
movss dword [esi + 0x3bc8], xmm0
mov edx, dword [edi + 0x4788]
test edx, edx
jle 0x10020ad4
mov ecx, dword [edi + 0x4790]
nop word [eax + eax]
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 0x10020ab4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x10020abc
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x10020ac4
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x10020acc
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x10020a90
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
movss dword [esp + 0x30], xmm7
movss dword [esp + 0x34], xmm6
movss dword [esp + 0x38], xmm4
movss dword [esp + 0x3c], xmm5
movups xmm0, xmmword [esp + 0x30]
mov dword [edi + 0x3bcc], eax
movups xmmword [edi + 0x3bd4], xmm0
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10020c09
movss dword [edi + 0x3bd0], xmm1
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x10020bc2
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x1008024c]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x1008027c]
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 0x10020bb3
mov eax, 4
jmp 0x10020bc7
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
jmp 0x10020bc7
mov eax, 0x30
mov byte [esi + edi + 0x3d78], al
inc esi
cmp esi, 0x40
jl 0x10020b30
movsd xmm0, qword [0x10080260]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x1008024c]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bd0]
divss xmm0, xmm1
movss dword [edi + 0x3d74], xmm0
xor edx, edx
mov dword [edi + 0x3be4], 0
cmp byte [edi + 0x3854], dl
je 0x10020c2c
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x10020c4e
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x10020c4e
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x10020c60
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x10020c6f
or ecx, 8
mov dword [edi + 0x3be4], ecx
xor esi, esi
cmp dword [edi + 0x4788], esi
jle 0x10020ca2
nop dword [eax]
mov eax, dword [edi + 0x4790]
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 + 0x4788]
jl 0x10020c80
cmp byte [edi + 0x491c], 0
je 0x10020cdc
mov eax, dword [edi + 0x4934]
cmp eax, dword [edi + 0x3e60]
jne 0x10020cdc
mov ecx, dword [0x10086014]
cmp dword [ecx + 0x3e60], eax
jne 0x10020ccd
mov dword [ecx + 0x3e64], eax
cmp dword [ecx + 0x3e88], eax
jne 0x10020cdc
mov byte [ecx + 0x3e8c], 1
cmp dword [edi + 0x3e50], 0
lea eax, [edi + 0x3e4c]
mov ecx, dword [eax]
jne 0x10020cf9
mov dword [edi + 0x3e58], 0
jmp 0x10020d09
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x10020d17
cmp dword [edi + 0x3e60], ecx
jne 0x10020d17
mov dword [edi + 0x3e5c], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x10020d4e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e58]
movss dword [edi + 0x3e58], xmm0
cmp dword [edi + 0x3e60], edx
je 0x10020d4e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e5c]
movss dword [edi + 0x3e5c], xmm0
mov eax, dword [edi + 0x3e60]
movaps xmm2, xmm1
mov dword [edi + 0x3e50], edx
mov dword [esi], 0
mov word [edi + 0x3e54], 0
test eax, eax
je 0x10020da4
cmp dword [edi + 0x3e64], eax
je 0x10020da4
cmp dword [edi + 0x3e88], eax
jne 0x10020da4
test byte [edi + 0x5a6c], 1
je 0x10020d96
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.10030280
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.1001ea40
movss xmm2, dword [edi + 0x18]
mov ecx, dword [edi + 0x3e60]
test ecx, ecx
je 0x10020dc1
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3e68]
movss dword [edi + 0x3e68], xmm0
mov eax, dword [edi + 0x3e7c]
addss xmm2, dword [edi + 0x3e98]
mov dword [edi + 0x3e90], eax
mov al, byte [edi + 0x3e70]
mov byte [edi + 0x3e8d], al
mov eax, dword [edi + 0x5928]
movss dword [edi + 0x3e98], xmm2
mov dword [edi + 0x3e88], ecx
mov dword [edi + 0x3e64], 0
mov byte [edi + 0x3e71], 0
mov byte [edi + 0x3e8c], 0
mov byte [edi + 0x3e6c], 0
test eax, eax
je 0x10020e26
cmp ecx, eax
je 0x10020e26
mov dword [edi + 0x5928], 0
test ecx, ecx
jne 0x10020e44
mov dword [edi + 0x4664], ecx
mov dword [edi + 0x465c], ecx
mov byte [edi + 0x4660], cl
mov dword [edi + 0x4664], ecx
jmp 0x10020e6c
mov eax, dword [edi + 0x4664]
test eax, eax
je 0x10020e6c
test al, 2
je 0x10020e6c
mov eax, dword [0x10086014]
mov dword [eax + 0x3f48], ecx
mov dword [eax + 0x3f44], ecx
mov word [eax + 0x3f4c], 0
mov eax, dword [edi + 0x4a44]
movss xmm0, dword [edi + 0x4a4c]
mov dword [edi + 0x4a48], eax
test eax, eax
je 0x10020e9d
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a44], 0
movss dword [edi + 0x4a4c], xmm0
jmp 0x10020edd
comiss xmm0, dword [0x100801c8]
jbe 0x10020ee7
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x10080200]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a50]
addss xmm1, xmm1
movss dword [edi + 0x4a50], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x10020ee7
mov dword [edi + 0x4a4c], 0
mov dword [edi + 0x4a50], 0
mov eax, dword [edi + 0x4980]
mov dword [edi + 0x4984], eax
mov dword [edi + 0x4980], 0
mov dword [edi + 0x497c], 0x7f7fffff
mov word [edi + 0x491d], 0
mov dword [edi + 0x498c], 0
mov ecx, dword [edi + 0x3790]
test ecx, ecx
jns 0x10020f40
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 + 0x378c]
call fcn.10031430
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.10029630
call fcn.1001f630
call fcn.1002c8f0
call fcn.1001fae0
call fcn.10020320
mov esi, dword [0x10086014]
mov ecx, dword [esi + 0x3e34]
test ecx, ecx
je 0x10021025
mov eax, dword [esi + 0x3e60]
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x10020f95
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
mov eax, dword [ecx + 0x2e4]
mov dword [esp + 0x30], eax
je 0x10021019
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x10020fba
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x10080318]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x10021019
comiss xmm2, xmm1
jb 0x10021019
movss xmm0, dword [eax]
lea edx, [esp + 0x28]
subss xmm0, dword [esi + 0x3e74]
mov ecx, dword [esp + 0x30]
push 1
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e78]
movss dword [esp + 0x30], xmm0
call fcn.10028cb0
mov ecx, dword [esi + 0x3e34]
add esp, 4
call fcn.10028820
jmp 0x10021061
mov dword [esi + 0x3e34], 0
jmp 0x10021058
mov ecx, dword [esi + 0x3e7c]
test ecx, ecx
je 0x10021061
mov eax, dword [esi + 0x3e60]
cmp dword [ecx + 0x54], eax
jne 0x10021061
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x1002104f
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
jne 0x10021061
xor edx, edx
xor ecx, ecx
call fcn.1001ea40
mov eax, dword [0x10086014]
mov edx, dword [eax + 0x476c]
sub edx, 1
js 0x10021097
mov eax, dword [eax + 0x4774]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1002108f
test dword [ecx + 8], 0x8000000
jne 0x100210b1
sub eax, 0x28
sub edx, 1
jns 0x10021080
cmp dword [edi + 0x48ec], 0
je 0x100210d0
movss xmm0, dword [edi + 0x48fc]
comiss xmm0, dword [0x100801c8]
jbe 0x100210d0
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x10080288]
addss xmm1, dword [edi + 0x4914]
minss xmm1, dword [0x1008024c]
jmp 0x100210f1
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x10080294]
movss xmm1, dword [edi + 0x4914]
subss xmm1, xmm0
maxss xmm1, dword [0x100801c8]
movss dword [edi + 0x4914], xmm1
movups xmm0, xmmword [edi + 0x59b4]
mov dword [edi + 0x4918], 0
mov dword [edi + 0x5bc8], 0xffffffff
mov dword [edi + 0x5bc4], 0xffffffff
mov dword [edi + 0x5bc0], 0xffffffff
movups xmmword [edi + 0x59c4], xmm0
mov byte [edi + 0x59b4], 0
call fcn.1001fed0
cmp byte [edi + 0x3dd7], 0
jne 0x10021169
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x10021169
movsd xmm1, qword [edi + 0x3dc0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x18], xmm1
jmp 0x1002116f
movss xmm1, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x3de0], ecx
je 0x1002132c
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov esi, dword [eax + ecx*4]
mov ax, word [esi + 0x9a]
mov cl, byte [esi + 0x8e]
mov word [esi + 0x9c], ax
xor eax, eax
mov byte [esi + 0x8f], cl
mov byte [esi + 0x8e], 0
mov byte [esi + 0x90], 0
mov word [esi + 0x9a], ax
test cl, cl
jne 0x10021311
cmp byte [esi + 0x32c], al
jne 0x10021311
comiss xmm1, dword [esi + 0x220]
jbe 0x10021311
mov ecx, dword [esi + 0x248]
mov byte [esi + 0x32c], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x324], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x328], eax
mov ecx, dword [esi + 0xd0]
test ecx, ecx
je 0x10021249
mov eax, dword [0x10086014]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x10021237
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0xd0], 0
mov ecx, dword [esi + 0x248]
call fcn.10039190
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x10021293
mov eax, dword [0x10086014]
mov dword [esi + 0x168], 0
mov dword [esi + 0x164], 0
test eax, eax
je 0x10021281
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x16c], 0
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x100212d2
mov eax, dword [0x10086014]
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test eax, eax
je 0x100212c0
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x194], 0
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x10021311
mov eax, dword [0x10086014]
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test eax, eax
je 0x100212ff
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x1a0], 0
mov ecx, dword [esp + 0x24]
movss xmm1, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x3de0]
jne 0x10021190
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [edi + 0x49f0], ecx
jle 0x10021488
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x30], edx
nop word [eax + eax]
mov eax, dword [edi + 0x49f8]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1002146d
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x1002146a
mov esi, dword [edi + 0x49d8]
mov eax, dword [0x10086014]
add esi, edx
mov dword [esp + 0x24], eax
mov dword [esi + 0x1a4], 0
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x100213c8
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test eax, eax
je 0x100213b6
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1cc], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x1002140e
mov eax, dword [0x10086014]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x100213fc
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1d6], 1
cmp dword [esi + 0x54], edx
jle 0x10021436
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [ecx + eax - 0x18], di
cmp edx, dword [esi + 0x54]
jl 0x10021421
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub esi, dword [eax + 0x49d8]
mov eax, 0x22b63cbf
imul esi
mov eax, dword [esp + 0x24]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
mov eax, dword [eax + 0x49f8]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x28]
xorps xmm1, xmm1
inc ecx
add edx, 0x1d8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
cmp ecx, dword [edi + 0x49f0]
jl 0x10021350
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x49c4], ecx
jle 0x100214ed
xor esi, esi
xorps xmm1, xmm1
nop dword [eax + eax]
mov eax, dword [edi + 0x49cc]
mov dword [esp + 0x28], eax
movss xmm0, dword [esi + eax + 4]
comiss xmm0, xmm1
jb 0x100214dd
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x100214da
lea ecx, [eax + 0x10]
add ecx, esi
call fcn.1003bc00
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esi + eax + 4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add esi, 0x68
mov dword [esp + 0x30], ecx
cmp ecx, dword [edi + 0x49c4]
jl 0x100214a0
cmp byte [edi + 0x3dd7], 0
je 0x1002157e
mov esi, dword [0x10086014]
mov eax, dword [esi + 0x475c]
test eax, eax
je 0x1002153a
mov dword [esi + 0x4758], 0
mov dword [esi + 0x4754], 0
test esi, esi
je 0x10021528
dec dword [esi + 0xb0]
push eax
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x475c], 0
mov ecx, dword [esi + 0x4768]
test ecx, ecx
je 0x10021579
mov eax, dword [0x10086014]
mov dword [esi + 0x4764], 0
mov dword [esi + 0x4760], 0
test eax, eax
je 0x10021567
dec dword [eax + 0xb0]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x4768], 0
call fcn.10043620
mov eax, dword [edi + 0x4794]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x100215e2
cmp byte [eax + 0x8f], 0
jne 0x100215e2
mov eax, dword [0x10086014]
mov edx, dword [eax + 0x3dec]
sub edx, 1
js 0x100215db
mov eax, dword [eax + 0x3df4]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x100215d3
cmp byte [ecx + 0x8f], 0
je 0x100215d3
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x100217f6
sub esi, 4
sub edx, 1
jns 0x100215b1
xor ecx, ecx
call fcn.10028820
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x10021608
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 + 0x3e04]
call fcn.100313c0
mov dword [edi + 0x3e04], 0
mov ecx, dword [edi + 0x477c]
test ecx, ecx
jns 0x10021638
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 + 0x4778]
call fcn.10031340
lea esi, [edi + 0x4754]
mov dword [edi + 0x4778], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10021667
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.10030e90
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1002167c
push 8
mov ecx, esi
call fcn.10030e90
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x4760]
inc dword [esi]
call fcn.10030c60
mov esi, dword [0x10086014]
cmp byte [esi + 0x5a8d], 0
mov dword [esi + 0x5a90], 0
je 0x1002184e
mov eax, dword [esi + 0x3e50]
mov dword [esi + 0x4918], 7
cmp byte [esi + 0x2eb8], 0
mov dword [esp + 0x14], eax
je 0x1002172f
movss xmm2, dword [esi + 0x2ebc]
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1002172f
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jnp 0x1002171f
lea eax, [esp + 0x28]
mov ecx, 1
push eax
lea edx, [esp + 0x34]
call fcn.10029150
movss xmm1, dword [esp + 0x34]
add esp, 4
comiss xmm2, xmm1
jbe 0x1002172f
movss xmm2, dword [esp + 0x28]
mov ecx, 0x20e
call fcn.100291d0
test eax, eax
jle 0x1002172f
cmp byte [esi + 0x3f4c], 0
jne 0x1002172f
mov byte [esi + 0x5a8d], 0
mov eax, dword [esi + 0xdd4]
mov dword [esp + 0x18], eax
cmp eax, 0x3000
je 0x10021769
movzx ecx, byte [esi + 0x5a8e]
call fcn.10029330
test al, al
je 0x10021765
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10021765
mov dword [esi + 0x5a90], eax
mov byte [esi + 0x5a8d], 0
mov eax, dword [esp + 0x18]
xor edx, edx
nop dword [eax + eax]
cmp eax, 0x3000
jne 0x1002178c
mov ecx, edx
call fcn.10029330
test al, al
mov eax, dword [esp + 0x18]
je 0x1002178c
mov byte [esi + 0x5a8e], dl
inc edx
cmp edx, 3
jl 0x10021770
or dword [esi + 0x46c4], 0x40
xor ecx, ecx
mov dword [esi + 0x4718], 0x3f333333
call fcn.1002aaa0
push dword [esp + 0x14]
push str.HoveredId:_0x_08X
call fcn.10044430
push str.Press_ESC_to_abort_picking.
call fcn.10044430
add esp, 0xc
mov dword [esp + 0x30], str.Left
cmp dword [esp + 0x18], 0x3000
mov dword [esp + 0x34], str.Right
mov dword [esp + 0x38], str.Middle
jne 0x10021812
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.10044430
add esp, 4
jmp 0x10021843
mov eax, dword [ecx + 0x2f4]
test eax, eax
je 0x10021809
cmp byte [eax + 0x8f], 0
jne 0x1002180b
mov eax, ecx
mov ecx, eax
jmp 0x100215dd
movzx eax, byte [esi + 0x5a8e]
mov ecx, 0x3870
cmp dword [esp + 0x14], 0
push dword [esp + eax*4 + 0x30]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x10086014]
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.100444c0
add esp, 0xc
call fcn.10028570
mov esi, dword [0x10086014]
lea eax, [esi + 0x3e48]
lea edx, [esi + 0x5aa4]
mov dword [eax], 0
mov dword [esp + 0x28], eax
mov eax, dword [edx]
inc eax
mov dword [esp + 0x14], edx
cmp dword [esi + 0x3dc8], eax
jne 0x10021963
mov eax, dword [esi + 0x3e50]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1002188f
mov eax, dword [esi + 0x3e60]
mov dword [esp + 0x18], eax
cmp dword [edx + 8], eax
je 0x100218ea
lea ecx, [edx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 4], 0xffffffff
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
jge 0x100218e4
mov eax, dword [esp + 0x24]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x24]
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.100314b0
mov esi, dword [0x10086014]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [ecx], 0
test eax, eax
je 0x10021963
mov eax, dword [edx + 4]
test eax, eax
js 0x1002192d
mov ecx, eax
cmp eax, dword [edx + 0xc]
jge 0x10021944
mov edi, dword [edx + 0x14]
lea ecx, [eax + eax*8]
mov dword [esp + 0x30], edi
cmp byte [edi + ecx*8 + 5], 0
mov edi, dword [esp + 0x1c]
jne 0x10021929
mov edi, dword [esp + 0x30]
lea edx, [eax + eax*8]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
jle 0x10021944
inc eax
mov dword [edx + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10021940
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x10021963
test ecx, ecx
js 0x10021963
cmp ecx, dword [edx + 0xc]
jge 0x10021963
mov eax, dword [edx + 0x14]
lea ecx, [ecx + ecx*8]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x14]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5a8c]
test al, al
je 0x10021981
sub al, 1
mov byte [edi + 0x5a8c], al
jne 0x10021981
mov dword [edi + 0x4670], 0
mov byte [edi + 0x3dd5], 1
xor edx, edx
or dword [esi + 0x46c4], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x46e4], 0x43c80000
mov dword [esi + 0x46e8], 0x43c80000
mov dword [esi + 0x46cc], 4
call fcn.10025ef0
xor esi, esi
add esp, 4
cmp dword [edi + 0x5a0c], esi
jle 0x100219fc
xor ecx, ecx
mov dword [esp + 0x30], ecx
nop
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add eax, ecx
cmp dword [eax + 4], 1
jne 0x100219ec
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x38]
add esp, 8
inc esi
add ecx, 0x14
mov dword [esp + 0x30], ecx
cmp esi, dword [edi + 0x5a0c]
jl 0x100219d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret