Function at 0x10012d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x100d24e0]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5e50]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x10012dee
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5e58]
cmp dword [ecx + edi + 4], 7
jne 0x10012de3
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, edi
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 + 0x5e50]
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 + 0x5e50]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x10012d90
mov eax, dword [ebx + 0x5e50]
mov esi, dword [ebx + 0x5e58]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10012e1b
cmp dword [esi + 4], 0
jne 0x10012e14
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10012e04
mov esi, dword [0x100d24e0]
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
cmp byte [esi + 0x5e18], 0
jne 0x10012edc
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10012ed5
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.1000f220
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10012ed5
mov edx, dword [ebp - 4]
test edx, edx
je 0x10012e71
mov ecx, eax
call fcn.10025470
mov ecx, dword [0x100d24e0]
test ecx, ecx
je 0x10012ecc
movsx eax, word [ecx + 0x5f40]
mov edx, dword [ecx + 0x3f30]
mov dword [ebp - 0x18], edx
lea eax, [eax*8 + 0x5f44]
add eax, ecx
cmp dword [eax], edx
je 0x10012ec2
movsx eax, word [ecx + 0x5f40]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5f40], ax
cwde
lea eax, [eax*8 + 0x5f44]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f3c]
push dword [ebp - 0x14]
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5e18], 1
movss xmm0, dword [esi + 0x5e1c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10012f64
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5e1c], xmm0
jb 0x10012f64
mov edi, dword [esi + 0x20]
test edi, edi
je 0x10012f53
mov eax, dword [0x100d24e0]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5e1c], 0
call fcn.10025690
mov edx, 0x100cbc50
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.1000f090
mov edi, eax
test edi, edi
je 0x10012f5a
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 0x10012f5a
mov byte [esi + 0x96], 1
mov dword [esi + 0x5e1c], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f30]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f3c], 1
mov word [ebx + 0x5d7c], ax
mov dword [ebx + 0x3fb4], eax
addsd xmm0, qword [ebx + 0x3f28]
movsd qword [ebx + 0x3f28], xmm0
mov ecx, dword [ebx + 0x5d90]
test ecx, ecx
jns 0x10012fbe
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 + 0x5d8c]
call fcn.10026ee0
mov dword [ebx + 0x5d8c], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6064]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5f74]
addss xmm0, dword [ebx + 0x606c]
movss dword [ebx + 0x606c], xmm0
movss dword [ebx + eax*4 + 0x5f74], xmm1
mov eax, dword [ebx + 0x6064]
inc eax
movss xmm1, dword [ebx + 0x606c]
cdq
idiv ecx
mov eax, dword [ebx + 0x6068]
movss xmm0, dword [0x100cc568]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6064], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x100cc3dc]
mov dword [ebx + 0x6068], ecx
jbe 0x10013054
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100cc48c]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f68]
test ecx, ecx
jns 0x10013082
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.100276c0
mov dword [ebx + 0x3f64], 0
mov cl, byte [ebx + 0x46]
call fcn.1001da80
mov esi, dword [0x100d24e0]
mov eax, dword [esi + 0x4a84]
mov edx, dword [eax]
mov dword [edx + 4], 5
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov edi, dword [esi + 0x4a84]
mov eax, dword [esi + 0x4a7c]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x100131ad
mov ebx, eax
nop dword [eax]
mov edx, dword [edi]
add edi, 4
mov eax, dword [edx + 0x9c]
mov ecx, dword [edx + 0xa0]
movss xmm0, dword [edx + 0xc]
mov dword [edx + 0x8c], eax
mov eax, dword [edx + 0xa4]
mov dword [edx + 0x90], ecx
mov ecx, dword [edx + 0xa8]
mov dword [edx + 0x94], eax
mov dword [edx + 0x98], ecx
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa8], 0
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
movss xmm2, dword [edx + 0x8c]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0x90]
addss xmm1, dword [edx + 8]
movss dword [edx + 0x1c], xmm0
movss xmm0, dword [edx + 0x10]
movss dword [edx + 0x18], xmm1
subss xmm0, xmm2
xorps xmm2, xmm2
xorps xmm1, xmm1
addss xmm0, dword [edx + 0x94]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x90]
addss xmm0, dword [edx + 0x98]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp edi, ebx
jne 0x100130e0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.10012b40
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x100131c8
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm0, dword [0x100cc48c]
mov ecx, dword [esi + 0x3fc4]
mov dword [esi + 0x3d18], edi
movss xmm1, dword [edi + 0x10]
mulss xmm1, dword [esi + 0x30]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d20], xmm0
test ecx, ecx
je 0x10013221
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x270]
mulss xmm0, dword [eax + 0x3d20]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x10013224
mulss xmm0, dword [eax + 0x270]
jmp 0x10013224
xorps xmm0, xmm0
movss dword [esi + 0x3d1c], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d28], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d2c], ecx
mov dword [esi + 0x3f24], eax
mov dword [esi + 0x3d30], edi
movss dword [esi + 0x3d34], xmm0
mov ecx, dword [ebx + 0x4a84]
mov eax, dword [ebx + 0x4a7c]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x1001327d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x10013270
cmp byte [ebx + 0x4c84], 0
je 0x100132b1
mov eax, dword [ebx + 0x4c9c]
cmp eax, dword [ebx + 0x4018]
jne 0x100132b1
cmp dword [esi + 0x4018], eax
jne 0x100132a2
mov dword [esi + 0x401c], eax
cmp dword [esi + 0x4040], eax
jne 0x100132b1
mov byte [esi + 0x4044], 1
cmp dword [ebx + 0x4008], 0
lea eax, [ebx + 0x4004]
mov ecx, dword [eax]
jne 0x100132ce
mov dword [ebx + 0x400c], 0
jmp 0x100132de
mov edx, ecx
mov edi, eax
test ecx, ecx
je 0x100132ec
cmp dword [ebx + 0x4018], ecx
jne 0x100132ec
mov dword [ebx + 0x4010], 0
mov edx, ecx
mov edi, eax
movss xmm1, dword [ebx + 0x18]
test edx, edx
je 0x10013323
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x400c]
movss dword [ebx + 0x400c], xmm0
cmp dword [ebx + 0x4018], edx
je 0x10013323
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x4010]
movss dword [ebx + 0x4010], xmm0
mov eax, dword [ebx + 0x4018]
movaps xmm2, xmm1
mov dword [ebx + 0x4008], edx
mov dword [edi], 0
mov word [ebx + 0x4014], 0
test eax, eax
je 0x1001337f
cmp dword [ebx + 0x401c], eax
je 0x1001337f
cmp dword [ebx + 0x4040], eax
jne 0x1001337f
test byte [ebx + 0x5eb4], 1
je 0x1001336b
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.10025fe0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10011b40
movss xmm2, dword [ebx + 0x18]
mov esi, dword [0x100d24e0]
mov ecx, dword [ebx + 0x4018]
test ecx, ecx
je 0x1001339c
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x4020]
movss dword [ebx + 0x4020], xmm0
mov eax, dword [ebx + 0x4038]
addss xmm2, dword [ebx + 0x4050]
mov dword [ebx + 0x4048], eax
mov al, byte [ebx + 0x4028]
mov byte [ebx + 0x4045], al
mov eax, dword [ebx + 0x5cdc]
movss dword [ebx + 0x4050], xmm2
mov dword [ebx + 0x4040], ecx
mov dword [ebx + 0x401c], 0
mov byte [ebx + 0x4029], 0
mov byte [ebx + 0x4044], 0
mov byte [ebx + 0x4024], 0
test eax, eax
je 0x10013401
cmp ecx, eax
je 0x10013401
mov dword [ebx + 0x5cdc], 0
test ecx, ecx
jne 0x1001341f
mov dword [ebx + 0x4914], ecx
mov dword [ebx + 0x4908], ecx
mov byte [ebx + 0x490c], cl
mov dword [ebx + 0x4914], ecx
jmp 0x10013442
mov eax, dword [ebx + 0x4914]
test eax, eax
je 0x10013442
test al, 2
je 0x10013442
mov dword [esi + 0x4130], ecx
mov dword [esi + 0x412c], ecx
mov word [esi + 0x4134], 0
mov ecx, dword [ebx + 0x4dc0]
mov eax, ebx
mov edx, 0x4ddc
mov esi, ebx
mov edi, 0x3d04
test ecx, ecx
je 0x10013473
movss xmm0, dword [ebx + 0x4ddc]
comiss xmm0, dword [ebx + 0x3d04]
jb 0x1001347d
mov dword [ebx + 0x4dd0], ecx
jmp 0x1001347d
mov dword [ebx + 0x4dd0], 0
cmp dword [ebx + 0x3fc8], 0
je 0x100134a2
movss xmm0, dword [eax + edx]
comiss xmm0, dword [edi + esi]
jb 0x100134ac
mov eax, dword [ebx + 0x3fc8]
mov eax, dword [eax + 8]
mov dword [ebx + 0x4dd4], eax
jmp 0x100134ac
mov dword [ebx + 0x4dd4], 0
movss xmm0, dword [ebx + 0x4dc8]
mov dword [ebx + 0x4dc4], ecx
test ecx, ecx
je 0x100134d7
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4dc0], 0
movss dword [ebx + 0x4dc8], xmm0
jmp 0x10013517
comiss xmm0, dword [0x100cc3dc]
jbe 0x10013521
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x100cc424]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4dcc]
addss xmm1, xmm1
movss dword [ebx + 0x4dcc], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x10013521
mov dword [ebx + 0x4dc8], 0
mov dword [ebx + 0x4dcc], 0
mov eax, dword [ebx + 0x4cf8]
mov dword [ebx + 0x4cfc], eax
mov dword [ebx + 0x4cf8], 0
mov dword [ebx + 0x4cf4], 0x7f7fffff
mov word [ebx + 0x4c85], 0
mov dword [ebx + 0x4d04], 0
call fcn.1001c740
call fcn.10021690
call fcn.1001cc70
call fcn.10012890
mov esi, dword [0x100d24e0]
mov ecx, dword [esi + 0x3fd4]
test ecx, ecx
je 0x10013620
mov eax, dword [esi + 0x4018]
mov dword [esi + 0x401c], eax
cmp dword [esi + 0x4040], eax
jne 0x10013597
mov byte [esi + 0x4044], 1
cmp byte [esi + 0xc4], 0
mov edi, dword [ecx + 0x314]
je 0x10013614
lea eax, [esi + 0xbc]
mov ecx, eax
test eax, eax
jne 0x100135b8
lea ecx, [esi + 0xbc]
movss xmm0, dword [ecx]
movss xmm1, dword [0x100cc598]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x10013614
comiss xmm2, xmm1
jb 0x10013614
movss xmm0, dword [eax]
lea edx, [ebp - 0x24]
subss xmm0, dword [esi + 0x4030]
push 1
mov ecx, edi
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4034]
movss dword [ebp - 0x20], xmm0
call fcn.1001b6d0
mov ecx, dword [esi + 0x3fd4]
add esp, 4
xor edx, edx
call fcn.1001b050
jmp 0x1001365c
mov dword [esi + 0x3fd4], 0
jmp 0x10013653
mov ecx, dword [esi + 0x4038]
test ecx, ecx
je 0x1001365c
mov eax, dword [esi + 0x4018]
cmp dword [ecx + 0x7c], eax
jne 0x1001365c
mov dword [esi + 0x401c], eax
cmp dword [esi + 0x4040], eax
jne 0x1001364a
mov byte [esi + 0x4044], 1
cmp byte [esi + 0xc4], 0
jne 0x1001365c
xor edx, edx
xor ecx, ecx
call fcn.10011b40
mov eax, dword [0x100d24e0]
movss xmm2, dword [0x100cc4ec]
mov edx, dword [eax + 0x4a58]
sub edx, 1
js 0x1001369a
mov eax, dword [eax + 0x4a60]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x10013692
test dword [ecx + 0xc], 0x8000000
jne 0x100136b4
sub eax, 0x28
sub edx, 1
jns 0x10013683
cmp dword [ebx + 0x4c54], 0
je 0x100136cf
movss xmm0, dword [ebx + 0x4c64]
comiss xmm0, dword [0x100cc3dc]
jbe 0x100136cf
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c80]
minss xmm1, dword [0x100cc48c]
jmp 0x100136f0
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x100cc4f8]
movss xmm1, dword [ebx + 0x4c80]
subss xmm1, xmm0
maxss xmm1, dword [0x100cc3dc]
movss dword [ebx + 0x4c80], xmm1
movups xmm0, xmmword [ebx + 0x5df8]
mov dword [ebx + 0x4dd8], 0
mov dword [ebx + 0x6078], 0xffffffff
mov dword [ebx + 0x6074], 0xffffffff
mov dword [ebx + 0x6070], 0xffffffff
movups xmmword [ebx + 0x5e08], xmm0
mov byte [ebx + 0x5df8], 0
call fcn.1001d040
cmp byte [ebx + 0x3f3f], 0
jne 0x10013767
movss xmm0, dword [ebx + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x10013767
movsd xmm1, qword [ebx + 0x3f28]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x1001376c
movss xmm1, dword [ebp - 4]
mov edi, dword [ebx + 0x3f80]
mov eax, dword [ebx + 0x3f78]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x10013841
mov ebx, eax
nop dword [eax + eax]
mov esi, dword [edi]
mov ax, word [esi + 0xc8]
mov cl, byte [esi + 0xba]
mov word [esi + 0xca], ax
xor eax, eax
mov byte [esi + 0xbb], cl
mov byte [esi + 0xba], 0
mov byte [esi + 0xbc], 0
mov word [esi + 0xc8], ax
test cl, cl
jne 0x1001382e
cmp byte [esi + 0x370], al
jne 0x1001382e
comiss xmm1, dword [esi + 0x250]
jbe 0x1001382e
mov ecx, dword [esi + 0x278]
mov byte [esi + 0x370], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x368], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xf4]
mov dword [esi + 0x36c], eax
call fcn.1000bfb0
mov ecx, dword [esi + 0x278]
call fcn.10028910
lea ecx, [esi + 0x190]
call fcn.1000bfb0
lea ecx, [esi + 0x1bc]
call fcn.1000bfb0
lea ecx, [esi + 0x1c8]
call fcn.1000bfb0
movss xmm1, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x10013790
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d6c], ecx
jle 0x10013995
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [ebx + 0x4d74]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1001397c
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x10013979
mov esi, dword [ebx + 0x4d54]
mov edi, dword [0x100d24e0]
add esi, edx
mov dword [ebp - 0x20], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x10013921
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x10013910
movsx eax, word [edi + 0x5f40]
mov edx, dword [edi + 0x3f30]
mov dword [ebp - 0x1c], edx
lea eax, [eax*8 + 0x5f44]
add eax, edi
cmp dword [eax], edx
je 0x10013906
movsx eax, word [edi + 0x5f40]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [edi + 0x5f40], ax
cwde
lea eax, [eax*8 + 0x5f44]
add eax, edi
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5f3c]
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.1000bfb0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x1001395d
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x10013946
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
sub esi, dword [edi + 0x4d54]
mov eax, dword [edi + 0x4d74]
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 + 0x4d6c]
jl 0x10013860
mov eax, dword [ebx + 0x4d40]
mov ecx, eax
mov esi, dword [ebx + 0x4d48]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x100139df
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x100139d8
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x100139d5
lea ecx, [esi + 0x20]
call fcn.1002b5c0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x100139b2
cmp byte [ebx + 0x3f3f], 0
je 0x10013a90
mov esi, dword [0x100d24e0]
lea ecx, [esi + 0x4a40]
call fcn.1000bfb0
mov edi, dword [esi + 0x4a54]
test edi, edi
je 0x10013a8b
mov ecx, dword [0x100d24e0]
mov dword [esi + 0x4a50], 0
mov dword [esi + 0x4a4c], 0
test ecx, ecx
je 0x10013a7a
movsx eax, word [ecx + 0x5f40]
mov edx, dword [ecx + 0x3f30]
mov dword [ebp - 0x20], edx
lea eax, [eax*8 + 0x5f44]
add eax, ecx
cmp dword [eax], edx
je 0x10013a70
movsx eax, word [ecx + 0x5f40]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5f40], ax
cwde
lea eax, [eax*8 + 0x5f44]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f3c]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a54], 0
call fcn.10032780
mov eax, dword [ebx + 0x4a88]
mov byte [ebx + 0x3f3f], 0
test eax, eax
je 0x10013af5
cmp byte [eax + 0xbb], 0
jne 0x10013af5
mov eax, dword [0x100d24e0]
mov edx, dword [eax + 0x3f84]
sub edx, 1
js 0x10013ae9
mov eax, dword [eax + 0x3f8c]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10013ae1
cmp byte [ecx + 0xbb], 0
je 0x10013ae1
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x10013aeb
sub esi, 4
sub edx, 1
jns 0x10013ac3
xor ecx, ecx
mov edx, 1
call fcn.1001b050
mov ecx, dword [ebx + 0x3fa0]
test ecx, ecx
jns 0x10013b1b
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 + 0x3f9c]
call fcn.10027600
mov dword [ebx + 0x3f9c], 0
mov ecx, dword [ebx + 0x4a68]
test ecx, ecx
jns 0x10013b4b
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 + 0x4a64]
call fcn.10027460
lea esi, [ebx + 0x4a40]
mov dword [ebx + 0x4a64], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10013b7a
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.10026ee0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x10013b8f
push 8
mov ecx, esi
call fcn.10026ee0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x4a4c]
inc dword [esi]
call fcn.10026ba0
call fcn.10026390
mov edx, dword [0x100d24e0]
lea eax, [edx + 0x4000]
lea esi, [edx + 0x5f18]
mov dword [eax], 0
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
inc eax
cmp dword [edx + 0x3f30], eax
jne 0x10013c9a
mov edi, dword [edx + 0x4008]
test edi, edi
jne 0x10013be9
mov edi, dword [edx + 0x4018]
cmp dword [esi + 8], edi
je 0x10013c2a
lea eax, [esi + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x10013c24
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, [esi + 0xc]
call fcn.100277a0
mov edx, dword [0x100d24e0]
lea eax, [esi + 0xc]
mov dword [eax], 0
test edi, edi
je 0x10013c9a
mov eax, dword [esi + 4]
test eax, eax
js 0x10013c6e
mov ecx, eax
mov edx, dword [0x100d24e0]
cmp eax, dword [esi + 0xc]
jge 0x10013c80
mov ebx, dword [esi + 0x14]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x10013c6a
mov edx, dword [esi + 0x14]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x100d24e0]
jle 0x10013c80
inc eax
mov dword [esi + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10013c7c
mov eax, dword [ebp - 0x18]
mov dword [eax], edi
jmp 0x10013c9a
test ecx, ecx
js 0x10013c9a
cmp ecx, dword [esi + 0xc]
jge 0x10013c9a
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*8]
mov edi, dword [ebp - 0x18]
mov eax, dword [eax + ecx*8]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
inc byte [eax + ecx*8 + 4]
movss xmm0, dword [edx + 0x5ee8]
xorps xmm1, xmm1
comiss xmm1, xmm0
jae 0x10013d5e
mov ecx, dword [edx + 0x4a0c]
mulss xmm0, dword [0x100cc4ec]
shl ecx, 4
cvtps2pd xmm0, xmm0
lea eax, [ecx + 0x399c]
add eax, edx
lea esi, [ecx + edx]
push eax
lea edi, [ecx + edx]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x100cc444]
lea edx, [esi + 0x3998]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x3994]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.1000f700
mov edx, dword [0x100d24e0]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x4a0c]
add eax, 0x39a
add eax, eax
mov dword [edx + eax*8], 0x3f800000
movss xmm0, dword [edx + 0x5ee8]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5ee8], xmm0
jb 0x10013d5e
mov eax, dword [edx + 0x4a0c]
cmp eax, 0x37
je 0x10013d54
movups xmm0, xmmword [edx + 0x5eec]
add eax, eax
movups xmmword [edx + eax*8 + 0x3994], xmm0
mov dword [edx + 0x4a0c], 0x37
mov al, byte [ebx + 0x5ed9]
test al, al
je 0x10013d83
sub al, 1
mov byte [ebx + 0x5ed9], al
jne 0x10013d83
mov dword [ebx + 0x4920], 0
mov byte [ebx + 0x5eda], 0
mov al, byte [ebx + 0x5ed8]
test al, al
je 0x10013dbc
sub al, 1
mov byte [ebx + 0x5ed8], al
jne 0x10013dbc
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.10025fe0
mov eax, dword [ebx + 0x5ed4]
add esp, 4
not eax
mov dword [ebx + 0x5ed4], 0
and dword [ebx + 0x5eb4], eax
mov eax, dword [0x100d24e0]
xor edx, edx
mov byte [ebx + 0x3f3d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x49a0], 2
mov dword [eax + 0x49c0], 0x43c80000
mov dword [eax + 0x49c4], 0x43c80000
mov dword [eax + 0x49a8], 4
call fcn.10018290
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x10013e39
mov cl, byte [ebx + 0x5ee0]
cmp cl, 0xff
jne 0x10013e13
xor edx, edx
jmp 0x10013e3c
mov eax, dword [ebx + 0x3f30]
and eax, 0x80000003
jns 0x10013e25
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 0x10013e3c
or dl, 0xff
mov byte [ebx + 0x5ee0], dl
mov eax, dword [ebx + 0x5e50]
mov esi, dword [ebx + 0x5e58]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10013e6f
cmp dword [esi + 4], 1
jne 0x10013e68
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10013e58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret