Function at 0x10049d50
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 [0x10104934]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x5a0c]
lea ecx, [edi + 0x5a14]
sub eax, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
js 0x10049df3
lea ebx, [eax + eax*4]
shl ebx, 2
mov ecx, dword [ecx]
cmp dword [ecx + ebx + 4], 7
jne 0x10049dd9
mov esi, dword [edi + 0x5a14]
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 + 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 fcn.10092030
mov eax, dword [esp + 0x28]
add esp, 0xc
dec dword [edi + 0x5a0c]
dec eax
lea ecx, [edi + 0x5a14]
sub ebx, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x10049d85
lea ecx, [edi + 0x5a14]
jmp 0x10049df7
mov dword [esp + 0x20], ecx
xor esi, esi
cmp dword [edi + 0x5a0c], esi
jle 0x10049e27
xor ebx, ebx
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x10049e1b
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x28]
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a0c]
jl 0x10049e03
mov esi, dword [0x10104934]
cmp byte [esi + 0x66], 0
je 0x10049e3d
test byte [esi + 0xc], 2
jne 0x10049e3d
mov byte [esi + 0x66], 0
cmp byte [esi + 0x59d5], 0
jne 0x10049e9d
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10049e96
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call fcn.10044f60
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x10049e96
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x10049e7e
call fcn.10059280
mov ecx, dword [esp + 0x28]
mov eax, dword [0x10104934]
test eax, eax
je 0x10049e8d
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov byte [esi + 0x59d5], 1
movss xmm0, dword [esi + 0x59d8]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10049f28
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x59d8], xmm0
jb 0x10049f28
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x10049f17
mov eax, dword [0x10104934]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [eax + 0x59d8], 0
call fcn.100594d0
mov edx, 0x100ef708
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.10044e60
mov ebx, eax
test ebx, ebx
je 0x10049f1e
push ebx
push dword [esp + 0x20]
push 1
push dword [esp + 0x34]
call fcn.100990a0
push ebx
call fcn.10095e64
add esp, 0x14
jmp 0x10049f1e
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 0x10049f82
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.1005a730
mov dword [edi + 0x59a8], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5b98]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x100f1b94]
movss xmm4, dword [0x100f1a88]
subss xmm0, dword [edi + eax*4 + 0x5aa8]
movss dword [esp + 0x1c], xmm2
addss xmm0, dword [edi + 0x5ba0]
movss dword [edi + 0x5ba0], xmm0
movss dword [edi + eax*4 + 0x5aa8], xmm1
mov eax, dword [edi + 0x5b98]
inc eax
movss xmm1, dword [edi + 0x5ba0]
cdq
idiv ecx
mov eax, dword [edi + 0x5b9c]
inc eax
mov dword [edi + 0x5b98], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x5b9c], ecx
jbe 0x1004a01d
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x1004a020
movaps xmm0, xmm2
mov esi, dword [0x10104934]
xor ebx, ebx
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], ebx
jle 0x1004a135
mov eax, dword [esi + 0x4790]
movaps xmm2, xmm3
mov edx, dword [eax + ebx*4]
inc ebx
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 ebx, dword [esi + 0x4788]
jl 0x1004a064
movss xmm2, dword [esp + 0x1c]
mov eax, dword [edi + 0x48]
mov esi, dword [0x10104934]
mov byte [eax + 0x10], 1
mov ebx, dword [esi + 0x54]
test ebx, ebx
jne 0x1004a151
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
movss xmm1, dword [esi + 0x4c]
movaps xmm0, xmm4
mov eax, dword [esi + 0x3e28]
mov dword [esi + 0x3bb0], ebx
mulss xmm1, dword [ebx + 0x10]
mulss xmm1, dword [ebx + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bb8], xmm0
test eax, eax
je 0x1004a19b
mulss xmm0, dword [eax + 0x240]
mov eax, dword [eax + 0x2dc]
test eax, eax
je 0x1004a19e
mulss xmm0, dword [eax + 0x240]
jmp 0x1004a19e
movaps xmm0, xmm3
movss xmm4, dword [0x100f1bb4]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm0
movaps xmm6, xmm2
mov edx, dword [ebx + 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 + 0x3bc0], ecx
mov dword [esi + 0x3db8], eax
mov dword [esi + 0x3bc4], ebx
movss dword [esi + 0x3bc8], xmm0
mov edx, dword [edi + 0x4788]
test edx, edx
jle 0x1004a237
mov ecx, dword [edi + 0x4790]
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 0x1004a217
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1004a21f
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x1004a227
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1004a22f
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x1004a1f3
movss dword [edi + 0x3bd4], xmm7
movss dword [edi + 0x3bd8], xmm6
movss dword [edi + 0x3bdc], xmm4
movss dword [edi + 0x3be0], xmm5
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
mov dword [edi + 0x3bcc], eax
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1004a364
movss dword [edi + 0x3bd0], xmm1
xor esi, esi
mov ebx, 0x200
nop
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x1004a31d
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100f1a88]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100b7530
movss xmm1, dword [0x100f1adc]
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 fcn.100b6160
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 0x1004a313
mov eax, 4
jmp 0x1004a322
cmp eax, 0x200
cmovg eax, ebx
jmp 0x1004a322
mov eax, 0x30
mov byte [esi + edi + 0x3d78], al
inc esi
cmp esi, 0x40
jl 0x1004a290
movsd xmm0, qword [0x100f1a98]
call fcn.100b7a50
movss xmm1, dword [0x100f1a88]
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 0x1004a387
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x1004a3a9
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1004a3a9
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x1004a3bb
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x1004a3ca
or ecx, 8
mov dword [edi + 0x3be4], ecx
xor esi, esi
cmp dword [edi + 0x4788], esi
jle 0x1004a3f6
mov eax, dword [edi + 0x4790]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call fcn.10093c30
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x4788]
jl 0x1004a3d4
cmp byte [edi + 0x491c], 0
je 0x1004a430
mov eax, dword [edi + 0x4934]
cmp eax, dword [edi + 0x3e60]
jne 0x1004a430
mov ecx, dword [0x10104934]
cmp dword [ecx + 0x3e60], eax
jne 0x1004a421
mov dword [ecx + 0x3e64], eax
cmp dword [ecx + 0x3e88], eax
jne 0x1004a430
mov byte [ecx + 0x3e8c], 1
cmp dword [edi + 0x3e50], 0
lea eax, [edi + 0x3e4c]
mov ecx, dword [eax]
jne 0x1004a44d
mov dword [edi + 0x3e58], 0
jmp 0x1004a45d
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x1004a46b
cmp dword [edi + 0x3e60], ecx
jne 0x1004a46b
mov dword [edi + 0x3e5c], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x1004a4a2
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e58]
movss dword [edi + 0x3e58], xmm0
cmp dword [edi + 0x3e60], edx
je 0x1004a4a2
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 0x1004a4f8
cmp dword [edi + 0x3e64], eax
je 0x1004a4f8
cmp dword [edi + 0x3e88], eax
jne 0x1004a4f8
test byte [edi + 0x5a50], 1
je 0x1004a4ea
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.10059c30
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10048090
movss xmm2, dword [edi + 0x18]
mov edx, dword [edi + 0x3e60]
test edx, edx
je 0x1004a515
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], edx
mov dword [edi + 0x3e64], 0
mov byte [edi + 0x3e71], 0
mov byte [edi + 0x3e8c], 0
mov byte [edi + 0x3e6c], 0
test eax, eax
je 0x1004a57a
cmp edx, eax
je 0x1004a57a
mov dword [edi + 0x5928], 0
test edx, edx
jne 0x1004a598
mov dword [edi + 0x4664], edx
mov dword [edi + 0x465c], edx
mov byte [edi + 0x4660], dl
mov dword [edi + 0x4664], edx
jmp 0x1004a5bb
mov eax, dword [edi + 0x4664]
test eax, eax
je 0x1004a5bb
test al, 2
je 0x1004a5bb
mov ecx, 0x20e
call fcn.10044380
mov dword [eax + 4], edx
mov dword [eax], edx
mov word [eax + 8], 0
mov eax, dword [edi + 0x4a44]
movss xmm0, dword [edi + 0x4a4c]
mov dword [edi + 0x4a48], eax
test eax, eax
je 0x1004a5ec
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a44], 0
movss dword [edi + 0x4a4c], xmm0
jmp 0x1004a62c
comiss xmm0, dword [0x100f19dc]
jbe 0x1004a636
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x100f1a24]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a50]
addss xmm1, xmm1
movss dword [edi + 0x4a50], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x1004a636
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 0x1004a68f
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.1005ae00
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.10052e30
call fcn.10048cb0
call fcn.100565c0
call fcn.10049160
call fcn.10049ae0
mov esi, dword [0x10104934]
mov ecx, dword [esi + 0x3e34]
test ecx, ecx
je 0x1004a76e
mov eax, dword [esi + 0x3e60]
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x1004a6e4
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x2e4]
je 0x1004a762
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x1004a705
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x100f1bac]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x1004a762
comiss xmm2, xmm1
jb 0x1004a762
movss xmm0, dword [eax]
lea edx, [esp + 0x30]
subss xmm0, dword [esi + 0x3e74]
push 1
mov ecx, ebx
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e78]
movss dword [esp + 0x38], xmm0
call fcn.10052170
mov ecx, dword [esi + 0x3e34]
add esp, 4
call fcn.10051b80
jmp 0x1004a7aa
mov dword [esi + 0x3e34], 0
jmp 0x1004a7a1
mov ecx, dword [esi + 0x3e7c]
test ecx, ecx
je 0x1004a7aa
mov eax, dword [esi + 0x3e60]
cmp dword [ecx + 0x54], eax
jne 0x1004a7aa
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x1004a798
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
jne 0x1004a7aa
xor edx, edx
xor ecx, ecx
call fcn.10048090
mov eax, dword [0x10104934]
mov edx, dword [eax + 0x476c]
sub edx, 1
js 0x1004a7e7
mov eax, dword [eax + 0x4774]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1004a7df
test dword [ecx + 8], 0x8000000
jne 0x1004a801
sub eax, 0x28
sub edx, 1
jns 0x1004a7d0
cmp dword [edi + 0x48ec], 0
je 0x1004a820
movss xmm0, dword [edi + 0x48fc]
comiss xmm0, dword [0x100f19dc]
jbe 0x1004a820
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x100f1af4]
addss xmm1, dword [edi + 0x4914]
minss xmm1, dword [0x100f1a88]
jmp 0x1004a841
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100f1b04]
movss xmm1, dword [edi + 0x4914]
subss xmm1, xmm0
maxss xmm1, dword [0x100f19dc]
movss dword [edi + 0x4914], xmm1
movups xmm0, xmmword [edi + 0x59b4]
mov dword [edi + 0x4918], 0
mov dword [edi + 0x5bac], 0xffffffff
mov dword [edi + 0x5ba8], 0xffffffff
mov dword [edi + 0x5ba4], 0xffffffff
movups xmmword [edi + 0x59c4], xmm0
mov byte [edi + 0x59b4], 0
call fcn.100494c0
cmp byte [edi + 0x3dd7], 0
jne 0x1004a8b9
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x1004a8b9
movsd xmm1, qword [edi + 0x3dc0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
jmp 0x1004a8bf
movss xmm1, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [edi + 0x3de0], ebx
je 0x1004aa68
nop dword [eax]
mov eax, dword [edi + 0x3de8]
mov esi, dword [eax + ebx*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 0x1004aa55
cmp byte [esi + 0x32c], al
jne 0x1004aa55
comiss xmm1, dword [esi + 0x220]
jbe 0x1004aa55
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 0x1004a98a
mov eax, dword [0x10104934]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x1004a977
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0xd0], 0
mov ecx, dword [esi + 0x248]
call fcn.100628f0
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x1004a9d5
mov eax, dword [0x10104934]
mov dword [esi + 0x168], 0
mov dword [esi + 0x164], 0
test eax, eax
je 0x1004a9c2
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x16c], 0
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x1004aa15
mov eax, dword [0x10104934]
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test eax, eax
je 0x1004aa02
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x194], 0
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x1004aa55
mov eax, dword [0x10104934]
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test eax, eax
je 0x1004aa42
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x1a0], 0
movss xmm1, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [edi + 0x3de0]
jne 0x1004a8d0
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x49f0], ecx
jle 0x1004abc7
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x28], edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x49f8]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1004abac
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
jbe 0x1004aba9
mov esi, dword [edi + 0x49d8]
mov ebx, dword [0x10104934]
add esi, edx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x1004ab0a
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x1004aaf7
dec dword [ebx + 0xb0]
push eax
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1cc], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x1004ab51
mov eax, dword [0x10104934]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x1004ab3e
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1d6], 1
cmp dword [esi + 0x54], edx
jle 0x1004ab7d
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [eax + ecx - 0x18], bx
cmp edx, dword [esi + 0x54]
jl 0x1004ab64
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
sub esi, dword [ebx + 0x49d8]
mov eax, 0x22b63cbf
imul esi
mov eax, dword [ebx + 0x49f8]
sar edx, 6
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, 0x1d8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp ecx, dword [edi + 0x49f0]
jl 0x1004aa90
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edi + 0x49c4], eax
jle 0x1004ac25
xor esi, esi
xorps xmm1, xmm1
nop word [eax + eax]
mov ebx, dword [edi + 0x49cc]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x1004ac15
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
jbe 0x1004ac12
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.10065330
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 + 0x49c4]
jl 0x1004abe0
cmp byte [edi + 0x3dd7], 0
je 0x1004acb8
mov esi, dword [0x10104934]
mov eax, dword [esi + 0x475c]
test eax, eax
je 0x1004ac73
mov dword [esi + 0x4758], 0
mov dword [esi + 0x4754], 0
test esi, esi
je 0x1004ac60
dec dword [esi + 0xb0]
push eax
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x475c], 0
mov ecx, dword [esi + 0x4768]
test ecx, ecx
je 0x1004acb3
mov eax, dword [0x10104934]
mov dword [esi + 0x4764], 0
mov dword [esi + 0x4760], 0
test eax, eax
je 0x1004aca0
dec dword [eax + 0xb0]
push ecx
call fcn.1009a35e
add esp, 4
mov dword [esi + 0x4768], 0
call fcn.10072df0
mov eax, dword [edi + 0x4794]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x1004ad21
cmp byte [eax + 0x8f], 0
jne 0x1004ad21
mov eax, dword [0x10104934]
mov edx, dword [eax + 0x3dec]
sub edx, 1
js 0x1004ad1a
mov eax, dword [eax + 0x3df4]
lea esi, [eax + edx*4]
nop dword [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x1004ad12
cmp byte [ecx + 0x8f], 0
je 0x1004ad12
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x1004aef0
sub esi, 4
sub edx, 1
jns 0x1004acf0
xor ecx, ecx
call fcn.10051b80
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x1004ad47
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.1005ad90
mov dword [edi + 0x3e04], 0
mov ecx, dword [edi + 0x477c]
test ecx, ecx
jns 0x1004ad77
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.1005ad10
lea esi, [edi + 0x4754]
mov dword [edi + 0x4778], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1004ada6
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.1005a730
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1004adbb
push 8
mov ecx, esi
call fcn.1005a730
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.1005a500
mov esi, dword [0x10104934]
cmp byte [esi + 0x5a71], 0
mov dword [esi + 0x5a74], 0
je 0x1004af45
mov ebx, dword [esi + 0x3e50]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [esp + 0x34], ebx
mov dword [esi + 0x4918], 7
call fcn.10052ad0
add esp, 4
test al, al
je 0x1004ae23
mov byte [esi + 0x5a71], 0
mov eax, dword [esi + 0xdd4]
mov dword [esp + 0x1c], eax
cmp eax, 0x3000
je 0x1004ae60
movzx ecx, byte [esi + 0x5a72]
xor edx, edx
push 0
call fcn.10052bf0
add esp, 4
test al, al
mov eax, dword [esp + 0x1c]
je 0x1004ae60
test ebx, ebx
je 0x1004ae60
mov dword [esi + 0x5a74], ebx
mov byte [esi + 0x5a71], 0
xor ebx, ebx
cmp eax, 0x3000
jne 0x1004ae85
push 0
xor edx, edx
mov ecx, ebx
call fcn.10052bf0
add esp, 4
test al, al
mov eax, dword [esp + 0x1c]
je 0x1004ae85
mov byte [esi + 0x5a72], bl
inc ebx
cmp ebx, 3
jl 0x1004ae62
or dword [esi + 0x46c4], 0x40
xor ecx, ecx
mov dword [esi + 0x4718], 0x3f333333
call fcn.10054470
mov ebx, dword [esp + 0x30]
push ebx
push str.HoveredId:_0x_08X
call fcn.10080940
push str.Press_ESC_to_abort_picking.
call fcn.10080940
add esp, 0xc
mov dword [esp + 0x30], str.Left
cmp dword [esp + 0x1c], 0x3000
mov dword [esp + 0x34], str.Right
mov dword [esp + 0x38], str.Middle
jne 0x1004af0c
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.10080940
add esp, 4
jmp 0x1004af3a
mov eax, dword [ecx + 0x2f4]
test eax, eax
je 0x1004af03
cmp byte [eax + 0x8f], 0
jne 0x1004af05
mov eax, ecx
mov ecx, eax
jmp 0x1004ad1c
movzx eax, byte [esi + 0x5a72]
mov ecx, 0x3870
test ebx, ebx
push dword [esp + eax*4 + 0x30]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x10104934]
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.10080a30
add esp, 0xc
call fcn.100519b0
mov esi, dword [0x10104934]
lea eax, [esi + 0x3e48]
lea ebx, [esi + 0x5a88]
mov dword [eax], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
inc eax
cmp dword [esi + 0x3dc8], eax
jne 0x1004b033
mov edx, dword [esi + 0x3e50]
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x1004af82
mov edx, dword [esi + 0x3e60]
mov dword [esp + 0x1c], edx
cmp dword [ebx + 8], edx
je 0x1004afc7
lea eax, [ebx + 0xc]
mov dword [ebx + 8], edx
mov dword [ebx + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1004afc1
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, [ebx + 0xc]
call fcn.1005ae80
mov esi, dword [0x10104934]
lea eax, [ebx + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [eax], 0
test edx, edx
je 0x1004b033
mov eax, dword [ebx + 4]
test eax, eax
js 0x1004b005
mov ecx, eax
cmp eax, dword [ebx + 0xc]
jge 0x1004b018
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax*8]
cmp byte [edx + ecx*8 + 5], 0
mov edx, dword [esp + 0x1c]
jne 0x1004b001
mov edi, dword [ebx + 0x14]
lea edx, [eax + eax*8]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
jle 0x1004b018
inc eax
mov dword [ebx + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1004b014
mov eax, dword [esp + 0x28]
mov dword [eax], edx
jmp 0x1004b033
test ecx, ecx
js 0x1004b033
cmp ecx, dword [ebx + 0xc]
jge 0x1004b033
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*8]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5a70]
test al, al
je 0x1004b051
sub al, 1
mov byte [edi + 0x5a70], al
jne 0x1004b051
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.1004f2b0
xor esi, esi
add esp, 4
cmp dword [edi + 0x5a0c], esi
jle 0x1004b0c4
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x1004b0b8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a0c]
jl 0x1004b0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret