Function at 0x40a1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [0x4bead0]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5df4]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40a230
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov edx, dword [ebx + 0x5dfc]
cmp dword [edi + edx + 4], 7
jne 0x40a225
mov esi, edx
mov ecx, edi
sub ecx, esi
mov eax, 0x66666667
add ecx, edx
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 [ebx + 0x5df4]
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 [ebp - 0x10]
add esp, 0xc
dec dword [ebx + 0x5df4]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x40a1d0
mov eax, dword [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40a25d
cmp dword [esi + 4], 0
jne 0x40a256
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40a246
mov esi, dword [0x4bead0]
cmp byte [esi + 0x4a], 0
je 0x40a273
test byte [esi + 0xc], 2
jne 0x40a273
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5dbc], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x10], eax
jne 0x40a32a
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40a323
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.004042b0
mov edi, eax
add esp, 8
test edi, edi
je 0x40a323
mov edx, dword [ebp - 4]
test edx, edx
je 0x40a2c2
mov ecx, edi
call fcn.0041dcb0
mov ecx, dword [0x4bead0]
test ecx, ecx
je 0x40a31c
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40a312
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5dbc], 1
movss xmm0, dword [esi + 0x5dc0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40a3b2
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5dc0], xmm0
jb 0x40a3b2
mov edi, dword [esi + 0x20]
test edi, edi
je 0x40a3a1
mov eax, dword [0x4bead0]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5dc0], 0
call fcn.0041ded0
mov edx, 0x4a06a0
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.00404130
mov edi, eax
test edi, edi
je 0x40a3a8
push edi
push dword [ebp - 4]
push 1
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x40a3a8
mov byte [esi + 0x96], 1
mov dword [esi + 0x5dc0], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f08]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f14], 1
mov word [ebx + 0x5d20], ax
mov dword [ebx + 0x3f7c], eax
addsd xmm0, qword [ebx + 0x3f00]
movsd qword [ebx + 0x3f00], xmm0
mov ecx, dword [ebx + 0x5d34]
test ecx, ecx
jns 0x40a40c
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 + 0x5d30]
call fcn.00428f20
mov dword [ebx + 0x5d30], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6008]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x4b6ac4]
subss xmm0, dword [ebx + eax*4 + 0x5f18]
addss xmm0, dword [ebx + 0x6010]
movss dword [ebx + 0x6010], xmm0
movss dword [ebx + eax*4 + 0x5f18], xmm1
mov eax, dword [ebx + 0x6008]
inc eax
movss xmm1, dword [ebx + 0x6010]
cdq
idiv ecx
mov eax, dword [ebx + 0x600c]
movss xmm0, dword [0x4b6c90]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6008], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x4b69e8]
mov dword [ebx + 0x600c], ecx
jbe 0x40a4a5
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f30]
test ecx, ecx
jns 0x40a4d3
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 + 0x3f2c]
call fcn.00429880
mov dword [ebx + 0x3f2c], 0
mov cl, byte [ebx + 0x46]
call fcn.00415ab0
mov edi, dword [0x4bead0]
xorps xmm3, xmm3
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 0x4a34]
mov edx, dword [eax]
mov dword [edx + 4], 5
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov esi, dword [edi + 0x4a34]
mov eax, dword [edi + 0x4a2c]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x40a600
mov ebx, eax
mov edx, dword [esi]
add esi, 4
mov eax, dword [edx + 0x98]
mov ecx, dword [edx + 0x9c]
mov dword [edx + 0x88], eax
mov eax, dword [edx + 0xa0]
mov dword [edx + 0x8c], ecx
mov ecx, dword [edx + 0xa4]
mov dword [edx + 0x90], eax
mov dword [edx + 0x94], ecx
mov dword [edx + 0xa0], 0
mov dword [edx + 0xa4], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x9c], 0
movss xmm0, dword [edx + 0x8c]
movss xmm2, dword [edx + 0x88]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0xc]
addss xmm1, dword [edx + 8]
movss dword [edx + 0x1c], xmm0
movss xmm0, dword [edx + 0x10]
movss dword [edx + 0x18], xmm1
subss xmm0, xmm2
movaps xmm2, xmm3
movaps xmm1, xmm3
addss xmm0, dword [edx + 0x90]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x8c]
addss xmm0, dword [edx + 0x94]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp esi, ebx
jne 0x40a533
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [edi + 0x38]
test esi, esi
jne 0x40a616
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [edi + 0x30]
movss xmm2, dword [0x4b6ac4]
mov ecx, dword [edi + 0x3f8c]
movaps xmm0, xmm2
mov dword [edi + 0x3cf0], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [edi + 0x3cf8], xmm0
test ecx, ecx
je 0x40a672
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x268]
mulss xmm0, dword [eax + 0x3cf8]
mov eax, dword [ecx + 0x304]
test eax, eax
je 0x40a675
mulss xmm0, dword [eax + 0x268]
jmp 0x40a675
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x4b6cfc]
movaps xmm6, xmm7
movss dword [edi + 0x3cf4], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [edi + 0x3cfc], eax
lea eax, [edx + 0x60]
mov dword [edi + 0x3d00], ecx
mov dword [edi + 0x3ef8], eax
mov dword [edi + 0x3d04], esi
movss dword [edi + 0x3d08], xmm0
mov ecx, dword [ebx + 0x4a34]
mov eax, dword [ebx + 0x4a2c]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40a71b
nop
mov eax, dword [ecx]
movss xmm3, dword [eax + 8]
comiss xmm7, xmm3
movss xmm2, dword [eax + 0xc]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0x10]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x14]
jbe 0x40a6f4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40a6fc
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x40a704
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x40a70c
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x40a6d0
movss xmm2, dword [0x4b6ac4]
movss dword [ebx + 0x3d14], xmm7
movss dword [ebx + 0x3d18], xmm6
movss dword [ebx + 0x3d1c], xmm5
movss dword [ebx + 0x3d20], xmm4
mov eax, dword [ebx + 0x3984]
movss xmm1, dword [ebx + 0x3988]
mov dword [ebx + 0x3d0c], eax
movss xmm0, dword [ebx + 0x3d10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40a849
movss dword [ebx + 0x3d10], xmm1
xor esi, esi
mov edi, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40a7f7
movss xmm1, dword [ebx + 0x3d10]
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 [0x4b6b64]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x40a7ed
mov eax, 4
jmp 0x40a7fc
cmp eax, 0x200
cmovg eax, edi
jmp 0x40a7fc
mov eax, 0x30
movss xmm2, dword [0x4b6ac4]
mov byte [esi + ebx + 0x3eb8], al
inc esi
cmp esi, 0x40
jl 0x40a773
movsd xmm0, qword [0x4b6af0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4b6ac4]
cvtsd2ss xmm0, xmm0
mov edi, dword [ebp - 0x14]
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x3d10]
divss xmm0, xmm1
movss dword [ebx + 0x3eb4], xmm0
xor edx, edx
mov dword [ebx + 0x3d24], 0
cmp byte [ebx + 0x3980], dl
je 0x40a86c
mov dword [ebx + 0x3d24], 1
mov edx, 1
cmp byte [ebx + 0x3981], 0
mov ecx, edx
je 0x40a88e
mov eax, dword [ebx + 0x3cf0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40a88e
or ecx, 2
mov dword [ebx + 0x3d24], ecx
cmp byte [ebx + 0x3982], 0
je 0x40a8a0
or ecx, 4
mov dword [ebx + 0x3d24], ecx
test byte [ebx + 0xc], 8
je 0x40a8af
or ecx, 8
mov dword [ebx + 0x3d24], ecx
mov ecx, dword [ebx + 0x4a34]
mov eax, dword [ebx + 0x4a2c]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40a8cf
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x3c], 0
cmp ecx, edx
jne 0x40a8c2
cmp byte [ebx + 0x4c30], 0
je 0x40a903
mov eax, dword [ebx + 0x4c48]
cmp eax, dword [ebx + 0x3fdc]
jne 0x40a903
cmp dword [edi + 0x3fdc], eax
jne 0x40a8f4
mov dword [edi + 0x3fe0], eax
cmp dword [edi + 0x4004], eax
jne 0x40a903
mov byte [edi + 0x4008], 1
cmp dword [ebx + 0x3fcc], 0
jne 0x40a918
mov dword [ebx + 0x3fd4], 0
jmp 0x40a92a
mov eax, dword [ebx + 0x3fc8]
test eax, eax
je 0x40a934
cmp dword [ebx + 0x3fdc], eax
jne 0x40a934
mov dword [ebx + 0x3fd8], 0
mov eax, dword [ebx + 0x3fc8]
test eax, eax
je 0x40a96e
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fd4]
movss dword [ebx + 0x3fd4], xmm0
cmp dword [ebx + 0x3fdc], eax
je 0x40a96e
addss xmm1, dword [ebx + 0x3fd8]
movss dword [ebx + 0x3fd8], xmm1
mov dword [ebx + 0x3fcc], eax
mov eax, dword [ebx + 0x3fdc]
mov dword [ebx + 0x3fc8], 0
mov word [ebx + 0x3fd0], 0
test eax, eax
je 0x40a9c6
cmp dword [ebx + 0x3fe0], eax
je 0x40a9c6
cmp dword [ebx + 0x4004], eax
jne 0x40a9c6
test byte [ebx + 0x5e58], 1
je 0x40a9b7
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00426c60
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.004092f0
mov edi, dword [0x4bead0]
mov esi, dword [ebx + 0x3fdc]
test esi, esi
je 0x40a9e5
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x3fe4]
movss dword [ebx + 0x3fe4], xmm0
mov eax, dword [ebx + 0x3ffc]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4014]
mov dword [ebx + 0x400c], eax
mov al, byte [ebx + 0x3fec]
mov byte [ebx + 0x4009], al
mov eax, dword [ebx + 0x5c88]
movss dword [ebx + 0x4014], xmm0
mov dword [ebx + 0x4004], esi
mov dword [ebx + 0x3fe0], 0
mov byte [ebx + 0x3fed], 0
mov byte [ebx + 0x4008], 0
mov byte [ebx + 0x3fe8], 0
test eax, eax
je 0x40aa4f
cmp esi, eax
je 0x40aa4f
mov dword [ebx + 0x5c88], 0
test esi, esi
jne 0x40aa6e
mov dword [ebx + 0x48d4], esi
mov dword [ebx + 0x48c8], esi
mov byte [ebx + 0x48cc], 0
mov dword [ebx + 0x48d4], esi
jmp 0x40aa93
mov eax, dword [ebx + 0x48d4]
test eax, eax
je 0x40aa93
test al, 2
je 0x40aa93
mov edx, 0x20e
mov ecx, edi
call fcn.004030a0
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [ebx + 0x4d6c]
test ecx, ecx
je 0x40aab6
movss xmm0, dword [ebx + 0x4d88]
comiss xmm0, dword [ebx + 0x3cdc]
jb 0x40aac0
mov dword [ebx + 0x4d7c], ecx
jmp 0x40aac0
mov dword [ebx + 0x4d7c], 0
mov eax, dword [ebx + 0x3f90]
test eax, eax
je 0x40aae6
movss xmm0, dword [ebx + 0x4d88]
comiss xmm0, dword [ebx + 0x3cdc]
jb 0x40aaf0
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d80], eax
jmp 0x40aaf0
mov dword [ebx + 0x4d80], 0
movss xmm0, dword [ebx + 0x4d74]
mov dword [ebx + 0x4d70], ecx
test ecx, ecx
je 0x40ab1b
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d6c], 0
movss dword [ebx + 0x4d74], xmm0
jmp 0x40ab5b
comiss xmm0, dword [0x4b69e8]
jbe 0x40ab65
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x4b6a54]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d78]
addss xmm1, xmm1
movss dword [ebx + 0x4d78], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40ab65
mov dword [ebx + 0x4d74], 0
mov dword [ebx + 0x4d78], 0
mov eax, dword [ebx + 0x4ca4]
mov dword [ebx + 0x4ca8], eax
mov dword [ebx + 0x4ca4], 0
mov dword [ebx + 0x4ca0], 0x7f7fffff
mov word [ebx + 0x4c31], 0
mov dword [ebx + 0x4cb0], 0
call fcn.004147f0
call fcn.00419c60
call fcn.00414cf0
call fcn.00409f10
mov esi, dword [0x4bead0]
mov ecx, dword [esi + 0x3f98]
test ecx, ecx
je 0x40ac64
mov eax, dword [esi + 0x3fdc]
mov dword [esi + 0x3fe0], eax
cmp dword [esi + 0x4004], eax
jne 0x40abdb
mov byte [esi + 0x4008], 1
cmp byte [esi + 0xe08], 0
mov edi, dword [ecx + 0x30c]
je 0x40ac58
lea eax, [esi + 0xe00]
mov ecx, eax
test eax, eax
jne 0x40abfc
lea ecx, [esi + 0xe00]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4b6cf4]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40ac58
comiss xmm2, xmm1
jb 0x40ac58
movss xmm0, dword [eax]
lea edx, [ebp - 0x2c]
subss xmm0, dword [esi + 0x3ff4]
push 1
mov ecx, edi
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ff8]
movss dword [ebp - 0x28], xmm0
call fcn.00413310
mov ecx, dword [esi + 0x3f98]
add esp, 4
xor edx, edx
call fcn.00412930
jmp 0x40aca0
mov dword [esi + 0x3f98], 0
jmp 0x40ac97
mov ecx, dword [esi + 0x3ffc]
test ecx, ecx
je 0x40aca0
mov eax, dword [esi + 0x3fdc]
cmp dword [ecx + 0x74], eax
jne 0x40aca0
mov dword [esi + 0x3fe0], eax
cmp dword [esi + 0x4004], eax
jne 0x40ac8e
mov byte [esi + 0x4008], 1
cmp byte [esi + 0xe08], 0
jne 0x40aca0
xor edx, edx
xor ecx, ecx
call fcn.004092f0
mov eax, dword [0x4bead0]
movss xmm2, dword [0x4b6b94]
mov edx, dword [eax + 0x4a08]
sub edx, 1
js 0x40acde
mov eax, dword [eax + 0x4a10]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x40acd6
test dword [ecx + 0xc], 0x8000000
jne 0x40acf8
sub eax, 0x28
sub edx, 1
jns 0x40acc7
cmp dword [ebx + 0x4c00], 0
je 0x40ad13
movss xmm0, dword [ebx + 0x4c10]
comiss xmm0, dword [0x4b69e8]
jbe 0x40ad13
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c2c]
minss xmm1, dword [0x4b6ac4]
jmp 0x40ad34
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x4b6bb0]
movss xmm1, dword [ebx + 0x4c2c]
subss xmm1, xmm0
maxss xmm1, dword [0x4b69e8]
movss dword [ebx + 0x4c2c], xmm1
movups xmm0, xmmword [ebx + 0x5d9c]
mov dword [ebx + 0x4d84], 0
mov dword [ebx + 0x601c], 0xffffffff
mov dword [ebx + 0x6018], 0xffffffff
mov dword [ebx + 0x6014], 0xffffffff
movups xmmword [ebx + 0x5dac], xmm0
mov byte [ebx + 0x5d9c], 0
call fcn.004150a0
cmp byte [ebx + 0x3f17], 0
jne 0x40adab
movss xmm0, dword [ebx + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x40adab
movsd xmm1, qword [ebx + 0x3f00]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x40adb0
movss xmm1, dword [ebp - 4]
mov edi, dword [ebx + 0x3f48]
mov eax, dword [ebx + 0x3f40]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x40ae81
mov ebx, eax
nop dword [eax]
mov esi, dword [edi]
mov ax, word [esi + 0xbc]
mov cl, byte [esi + 0xae]
mov word [esi + 0xbe], ax
xor eax, eax
mov byte [esi + 0xaf], cl
mov byte [esi + 0xae], 0
mov byte [esi + 0xb0], 0
mov word [esi + 0xbc], ax
test cl, cl
jne 0x40ae6e
cmp byte [esi + 0x368], al
jne 0x40ae6e
comiss xmm1, dword [esi + 0x248]
jbe 0x40ae6e
mov ecx, dword [esi + 0x270]
mov byte [esi + 0x368], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x360], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xec]
mov dword [esi + 0x364], eax
call fcn.004010a0
mov ecx, dword [esi + 0x270]
call fcn.0045f230
lea ecx, [esi + 0x188]
call fcn.004010a0
lea ecx, [esi + 0x1b4]
call fcn.004010a0
lea ecx, [esi + 0x1c0]
call fcn.004010a0
movss xmm1, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x40add0
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d18], ecx
jle 0x40afdf
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [ebx + 0x4d20]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x40afc6
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x40afc3
mov esi, dword [ebx + 0x4d00]
mov edi, dword [0x4bead0]
add esi, edx
mov dword [ebp - 0x28], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40af64
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40af53
movsx eax, word [edi + 0x5ee4]
mov edx, dword [edi + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x1c], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x40af49
movsx eax, word [edi + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [edi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5ee0]
push ecx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.004010a0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x40afa7
xor ecx, ecx
or edi, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x40af90
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x28]
sub esi, dword [edi + 0x4d00]
mov eax, dword [edi + 0x4d20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add edx, 0x200
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebx + 0x4d18]
jl 0x40aea0
imul edi, dword [ebx + 0x4cec], 0x6c
mov esi, dword [ebx + 0x4cf4]
add edi, esi
cmp esi, edi
je 0x40b022
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40b01b
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x40b018
lea ecx, [esi + 0x14]
call fcn.00462ad0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x6c
cmp esi, edi
jne 0x40aff5
cmp byte [ebx + 0x3f17], 0
je 0x40b0d2
mov esi, dword [0x4bead0]
lea ecx, [esi + 0x49f0]
call fcn.004010a0
mov edi, dword [esi + 0x4a04]
test edi, edi
je 0x40b0cd
mov ecx, dword [0x4bead0]
mov dword [esi + 0x4a00], 0
mov dword [esi + 0x49fc], 0
test ecx, ecx
je 0x40b0bc
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x28], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40b0b2
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x28]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a04], 0
call fcn.00473720
mov eax, dword [ebx + 0x4a38]
mov byte [ebx + 0x3f17], 0
test eax, eax
je 0x40b137
cmp byte [eax + 0xaf], 0
jne 0x40b137
mov eax, dword [0x4bead0]
mov edx, dword [eax + 0x3f4c]
sub edx, 1
js 0x40b12b
mov eax, dword [eax + 0x3f54]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40b123
cmp byte [ecx + 0xaf], 0
je 0x40b123
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40b12d
sub esi, 4
sub edx, 1
jns 0x40b105
xor ecx, ecx
mov edx, 1
call fcn.00412930
mov ecx, dword [ebx + 0x3f68]
test ecx, ecx
jns 0x40b15d
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 + 0x3f64]
call fcn.004297c0
mov dword [ebx + 0x3f64], 0
mov ecx, dword [ebx + 0x4a18]
test ecx, ecx
jns 0x40b18d
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 + 0x4a14]
call fcn.00429620
lea esi, [ebx + 0x49f0]
mov dword [ebx + 0x4a14], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40b1bc
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.00428f20
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40b1d1
push 8
mov ecx, esi
call fcn.00428f20
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x49fc]
inc dword [esi]
call fcn.00428be0
mov edi, dword [0x4bead0]
mov dword [ebp - 4], edi
cmp byte [edi + 0x5e85], 0
mov dword [edi + 0x5e88], 0
je 0x40b338
mov eax, dword [edi + 0x3fcc]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [ebp - 0x10], eax
mov dword [edi + 0x4d84], 7
call fcn.00414340
add esp, 4
test al, al
je 0x40b23b
mov byte [edi + 0x5e85], 0
mov esi, dword [edi + 0xe20]
cmp esi, 0x3000
je 0x40b26d
movzx ecx, byte [edi + 0x5e86]
call fcn.004144f0
test al, al
je 0x40b26d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40b26d
mov dword [edi + 0x5e88], eax
mov byte [edi + 0x5e85], 0
xor ebx, ebx
nop
cmp esi, 0x3000
jne 0x40b289
mov ecx, ebx
call fcn.004144f0
test al, al
je 0x40b289
mov byte [edi + 0x5e86], bl
inc ebx
cmp ebx, 3
jl 0x40b270
or dword [edi + 0x4954], 0x40
xor ecx, ecx
mov dword [edi + 0x49ac], 0x3f333333
call fcn.004175c0
mov ebx, dword [ebp - 8]
test al, al
je 0x40b32f
push dword [ebp - 0x10]
push str.HoveredId:_0x_08X
call fcn.004762d0
push str.Press_ESC_to_abort_picking.
call fcn.004762d0
add esp, 0xc
mov dword [ebp - 0x30], 0x4a259c
mov dword [ebp - 0x2c], 0x4a25a4
mov dword [ebp - 0x28], str.Middle
cmp esi, 0x3000
jne 0x40b2f8
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.004762d0
add esp, 4
jmp 0x40b32a
movzx eax, byte [edi + 0x5e86]
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
push dword [ebp + eax*4 - 0x30]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x4bead0]
add eax, 0x398c
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.00476320
add esp, 0xc
call fcn.00412730
mov edi, dword [0x4bead0]
mov dword [ebp - 4], edi
mov esi, edi
mov dword [esi + 0x3fc4], 0
mov eax, dword [esi + 0x5ebc]
inc eax
cmp dword [esi + 0x3f08], eax
jne 0x40b44f
mov ecx, dword [esi + 0x3fcc]
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x40b36d
mov ecx, dword [esi + 0x3fdc]
mov dword [ebp - 0x18], ecx
cmp dword [esi + 0x5ec4], ecx
je 0x40b3ca
lea eax, [esi + 0x5ec8]
mov dword [esi + 0x5ec4], ecx
mov dword [esi + 0x5ec0], 0xffffffff
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
test edx, edx
jns 0x40b3c4
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x28]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x5ec8]
call fcn.00429960
mov edi, dword [0x4bead0]
lea eax, [esi + 0x5ec8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [eax], 0
test ecx, ecx
je 0x40b44f
mov eax, dword [esi + 0x5ec0]
test eax, eax
js 0x40b418
mov edx, eax
cmp eax, dword [esi + 0x5ec8]
jge 0x40b42b
mov ebx, dword [esi + 0x5ed0]
lea edx, [eax + eax*8]
cmp byte [ebx + edx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40b411
mov edi, dword [esi + 0x5ed0]
lea ebx, [eax + eax*8]
mov edx, eax
cmp byte [edi + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
jle 0x40b42b
inc eax
mov dword [esi + 0x5ec0], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x40b427
mov dword [esi + 0x3fc4], ecx
jmp 0x40b44f
test edx, edx
js 0x40b44f
cmp edx, dword [esi + 0x5ec8]
jge 0x40b44f
mov eax, dword [esi + 0x5ed0]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fc4], eax
mov eax, dword [esi + 0x5ed0]
inc byte [eax + ecx*8 + 4]
movss xmm0, dword [edi + 0x5e8c]
xorps xmm1, xmm1
comiss xmm1, xmm0
jae 0x40b50e
mov ecx, dword [edi + 0x49bc]
mulss xmm0, dword [0x4b6b94]
shl ecx, 4
cvtps2pd xmm0, xmm0
lea eax, [ecx + 0x3994]
add eax, edi
lea esi, [ecx + edi]
push eax
add edi, ecx
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4b6a7c]
lea edx, [esi + 0x3990]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x398c]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00404850
mov edi, dword [ebp - 4]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edi + 0x49bc]
add eax, eax
mov dword [edi + eax*8 + 0x3998], 0x3f800000
movss xmm0, dword [edi + 0x5e8c]
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x5e8c], xmm0
jb 0x40b50e
mov eax, dword [edi + 0x49bc]
cmp eax, 0x35
je 0x40b504
movups xmm0, xmmword [edi + 0x5e90]
add eax, eax
movups xmmword [edi + eax*8 + 0x398c], xmm0
mov dword [edi + 0x49bc], 0x35
mov al, byte [ebx + 0x5e7d]
test al, al
je 0x40b533
sub al, 1
mov byte [ebx + 0x5e7d], al
jne 0x40b533
mov dword [ebx + 0x48e0], 0
mov byte [ebx + 0x5e7e], 0
mov al, byte [ebx + 0x5e7c]
test al, al
je 0x40b572
sub al, 1
mov byte [ebx + 0x5e7c], al
jne 0x40b572
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.00426c60
mov eax, dword [ebx + 0x5e78]
add esp, 4
mov edi, dword [0x4bead0]
not eax
and dword [ebx + 0x5e58], eax
mov dword [ebx + 0x5e78], 0
mov byte [ebx + 0x3f15], 1
xor edx, edx
or dword [edi + 0x4954], 2
mov ecx, str.DebugDefault
push 0
mov dword [edi + 0x4974], 0x43c80000
mov dword [edi + 0x4978], 0x43c80000
mov dword [edi + 0x495c], 4
call fcn.0040fc80
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x40b5ea
mov cl, byte [ebx + 0x5e84]
cmp cl, 0xff
jne 0x40b5c4
xor edx, edx
jmp 0x40b5ed
mov eax, dword [ebx + 0x3f08]
and eax, 0x80000003
jns 0x40b5d6
dec eax
or eax, 0xfffffffc
inc eax
neg eax
movsx ecx, cl
sbb eax, eax
inc eax
add eax, ecx
mov ecx, 0xa
cdq
idiv ecx
jmp 0x40b5ed
or dl, 0xff
mov byte [ebx + 0x5e84], dl
mov eax, dword [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40b627
nop dword [eax]
cmp dword [esi + 4], 1
jne 0x40b620
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40b610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret