Function at 0x677e3b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
mov edi, dword [0x67b38b68]
mov dword [esp + 0x14], edi
mov ecx, dword [edi + 0x5a24]
lea edx, [ecx - 1]
mov dword [esp + 0x18], edx
test edx, edx
js 0x677e3bae
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x5a2c]
cmp dword [ecx + eax + 4], 7
jne 0x677e3b98
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 + 0x5a24]
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_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
dec dword [edi + 0x5a24]
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x5a24]
dec edx
sub eax, 0x14
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test edx, edx
jns 0x677e3b40
xor esi, esi
test ecx, ecx
jle 0x677e3bec
xor ecx, ecx
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x5a2c]
add eax, ecx
cmp dword [eax + 4], 0
jne 0x677e3bdc
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x20]
add esp, 8
inc esi
add ecx, 0x14
mov dword [esp + 0x18], ecx
cmp esi, dword [edi + 0x5a24]
jl 0x677e3bc0
mov eax, dword [0x67b38b68]
cmp byte [eax + 0x66], 0
je 0x677e3c01
test byte [eax + 0xc], 2
jne 0x677e3c01
mov byte [eax + 0x66], 0
mov esi, eax
cmp byte [esi + 0x59ed], 0
jne 0x677e3c6e
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x677e3c67
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call fcn.677debf0
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x677e3c62
mov edx, dword [esp + 0x18]
test edx, edx
je 0x677e3c44
call fcn.677f52f0
mov ecx, dword [esp + 0x20]
mov eax, dword [0x67b38b68]
test eax, eax
je 0x677e3c53
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov eax, dword [0x67b38b68]
mov byte [esi + 0x59ed], 1
movss xmm0, dword [esi + 0x59f0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x677e3d05
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x59f0], xmm0
jb 0x677e3d05
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x677e3cf4
lea ecx, [esp + 0x18]
mov dword [eax + 0x59f0], 0
mov dword [esp + 0x18], 0
call fcn.677f5520
mov ecx, dword [esp + 0x20]
mov edx, 0x679509b8
mov dword [esp + 0x1c], eax
call fcn.677deaf0
mov dword [esp + 0x20], eax
test eax, eax
je 0x677e3cfb
push eax
push dword [esp + 0x1c]
push 1
push dword [esp + 0x28]
call dword [sym.imp.ucrtbase.dll_fwrite]
push dword [esp + 0x30]
call dword [sym.imp.ucrtbase.dll_fclose]
add esp, 0x14
jmp 0x677e3cfb
mov byte [esi + 0x98], 1
mov dword [esi + 0x59f0], 0
movss xmm1, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc8]
cvtps2pd xmm0, xmm1
mov byte [edi + 0x3dd4], 1
mov word [edi + 0x59b2], ax
mov dword [edi + 0x3e1c], eax
addsd xmm0, qword [edi + 0x3dc0]
movsd qword [edi + 0x3dc0], xmm0
mov ecx, dword [edi + 0x59c4]
test ecx, ecx
jns 0x677e3d64
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 + 0x59c0]
call fcn.677ff2a0
movss xmm1, dword [edi + 0x18]
mov dword [edi + 0x59c0], 0
movaps xmm0, xmm1
mov eax, dword [edi + 0x5bcc]
mov ecx, 0x3c
movss xmm2, dword [0x67ac46f4]
xorps xmm3, xmm3
movss xmm4, dword [0x67ac4418]
movss dword [esp + 0x10], xmm2
subss xmm0, dword [edi + eax*4 + 0x5adc]
addss xmm0, dword [edi + 0x5bd4]
movss dword [edi + 0x5bd4], xmm0
movss dword [edi + eax*4 + 0x5adc], xmm1
mov eax, dword [edi + 0x5bcc]
inc eax
movss xmm1, dword [edi + 0x5bd4]
cdq
idiv ecx
mov eax, dword [edi + 0x5bd0]
inc eax
mov dword [edi + 0x5bcc], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x5bd0], ecx
jbe 0x677e3dfa
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x677e3dfd
movaps xmm0, xmm2
mov esi, dword [0x67b38b68]
movss dword [edi + 0x9c], xmm0
mov eax, dword [esi + 0x47a4]
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 + 0x479c], 0
jle 0x677e3f1d
xor edi, edi
mov eax, dword [esi + 0x47a4]
movaps xmm2, xmm3
mov edx, dword [eax + edi*4]
inc edi
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
movss xmm1, dword [edx + 4]
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 eax, dword [edx + 0x94]
mov dword [edx + 0x98], 0
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x8c], eax
mov dword [edx + 0x90], ecx
movss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 8]
addss xmm1, dword [edx + 0x7c]
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 + 0x479c]
jl 0x677e3e42
movss xmm2, dword [0x67ac46f4]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
mov byte [eax + 0x10], 1
mov eax, dword [esi + 0x54]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x677e3f3b
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x3e28]
movaps xmm0, xmm4
mov dword [esi + 0x3bb0], eax
movss xmm1, dword [eax + 0x10]
mulss xmm1, dword [esi + 0x4c]
mulss xmm1, dword [eax + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bb8], xmm0
test ecx, ecx
je 0x677e3f85
mulss xmm0, dword [ecx + 0x258]
mov ecx, dword [ecx + 0x2f4]
test ecx, ecx
je 0x677e3f88
mulss xmm0, dword [ecx + 0x258]
jmp 0x677e3f88
movaps xmm0, xmm3
movss xmm4, dword [0x67ac4778]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm0
movaps xmm6, xmm2
mov edx, dword [eax + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3bbc], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3db8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3bc0], ecx
mov dword [esi + 0x3bc4], eax
movss dword [esi + 0x3bc8], xmm0
mov edx, dword [edi + 0x479c]
test edx, edx
jle 0x677e4025
mov ecx, dword [edi + 0x47a4]
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 0x677e4005
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x677e400d
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x677e4015
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x677e401d
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x677e3fe1
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
movss dword [esp + 0x20], xmm7
movss dword [esp + 0x24], xmm6
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x2c], xmm5
movups xmm0, xmmword [esp + 0x20]
mov dword [edi + 0x3bcc], eax
movups xmmword [edi + 0x3bd4], xmm0
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x677e4169
xor eax, eax
movss dword [edi + 0x3bd0], xmm1
mov dword [esp + 0xc], eax
mov esi, 0x200
movd xmm0, eax
cvtdq2ps xmm0, xmm0
test eax, eax
je 0x677e4112
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x67ac4418]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.ucrtbase.dll__libm_sse2_acos_precise
movss xmm1, dword [0x67ac4510]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call sub.ucrtbase.dll_ceil
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x677e4108
mov eax, 4
jmp 0x677e4117
cmp eax, 0x200
cmovg eax, esi
jmp 0x677e4117
mov eax, 0x30
mov ecx, dword [esp + 0xc]
mov byte [edi + ecx + 0x3d78], al
mov eax, ecx
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x40
jl 0x677e4085
movsd xmm0, qword [0x67ac4450]
call sub.ucrtbase.dll__libm_sse2_cos_precise
movss xmm1, dword [0x67ac4418]
cvtsd2ss xmm0, xmm0
mov esi, dword [0x67b38b68]
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 0x677e418c
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x677e41ae
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x677e41ae
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x677e41c0
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x677e41cf
or ecx, 8
mov dword [edi + 0x3be4], ecx
cmp dword [edi + 0x479c], 0
jle 0x677e4208
xor esi, esi
nop word [eax + eax]
mov eax, dword [edi + 0x47a4]
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 + 0x479c]
jl 0x677e41e0
mov esi, dword [0x67b38b68]
cmp byte [edi + 0x4930], 0
je 0x677e423c
mov eax, dword [edi + 0x4948]
cmp eax, dword [edi + 0x3e74]
jne 0x677e423c
cmp dword [esi + 0x3e74], eax
jne 0x677e422d
mov dword [esi + 0x3e78], eax
cmp dword [esi + 0x3e9c], eax
jne 0x677e423c
mov byte [esi + 0x3ea0], 1
cmp dword [edi + 0x3e64], 0
mov eax, dword [edi + 0x3e60]
jne 0x677e4257
mov dword [edi + 0x3e6c], 0
jmp 0x677e4265
mov ecx, eax
test eax, eax
je 0x677e4271
cmp dword [edi + 0x3e74], eax
jne 0x677e4275
mov dword [edi + 0x3e70], 0
mov ecx, eax
test ecx, ecx
je 0x677e42a9
movss xmm1, dword [edi + 0x18]
mov eax, dword [edi + 0x3e74]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e6c]
movss dword [edi + 0x3e6c], xmm0
cmp eax, ecx
je 0x677e42af
addss xmm1, dword [edi + 0x3e70]
movss dword [edi + 0x3e70], xmm1
jmp 0x677e42af
mov eax, dword [edi + 0x3e74]
mov dword [edi + 0x3e64], ecx
mov dword [edi + 0x3e60], 0
mov word [edi + 0x3e68], 0
test eax, eax
je 0x677e4301
cmp dword [edi + 0x3e78], eax
je 0x677e4301
cmp dword [edi + 0x3e9c], eax
jne 0x677e4301
test byte [edi + 0x5a84], 1
je 0x677e42f2
push 0x6794fee0
call fcn.677fd4a0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.677e2e30
mov esi, dword [0x67b38b68]
mov ecx, dword [edi + 0x3e74]
test ecx, ecx
je 0x677e4320
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e7c]
movss dword [edi + 0x3e7c], xmm0
mov eax, dword [edi + 0x3e90]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3eac]
mov dword [edi + 0x3ea4], eax
mov al, byte [edi + 0x3e84]
mov byte [edi + 0x3ea1], al
mov eax, dword [edi + 0x5940]
movss dword [edi + 0x3eac], xmm0
mov dword [edi + 0x3e9c], ecx
mov dword [edi + 0x3e78], 0
mov byte [edi + 0x3e85], 0
mov byte [edi + 0x3ea0], 0
mov byte [edi + 0x3e80], 0
test eax, eax
je 0x677e438a
cmp ecx, eax
je 0x677e438a
mov dword [edi + 0x5940], 0
test ecx, ecx
jne 0x677e43a8
mov dword [edi + 0x4678], ecx
mov dword [edi + 0x4670], ecx
mov byte [edi + 0x4674], cl
mov dword [edi + 0x4678], ecx
jmp 0x677e43cb
mov eax, dword [edi + 0x4678]
test eax, eax
je 0x677e43cb
test al, 2
je 0x677e43cb
mov dword [esi + 0x3f5c], ecx
mov dword [esi + 0x3f58], ecx
mov word [esi + 0x3f60], 0
mov eax, dword [edi + 0x4a58]
movss xmm0, dword [edi + 0x4a60]
mov dword [edi + 0x4a5c], eax
test eax, eax
je 0x677e43fc
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a58], 0
movss dword [edi + 0x4a60], xmm0
jmp 0x677e443c
comiss xmm0, dword [0x67ac4300]
jbe 0x677e4446
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x67ac4384]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a64]
addss xmm1, xmm1
movss dword [edi + 0x4a64], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x677e4446
mov dword [edi + 0x4a60], 0
mov dword [edi + 0x4a64], 0
mov eax, dword [edi + 0x4994]
mov dword [edi + 0x4998], eax
mov dword [edi + 0x4994], 0
mov dword [edi + 0x4990], 0x7f7fffff
mov word [edi + 0x4931], 0
mov dword [edi + 0x49a0], 0
mov ecx, dword [edi + 0x3790]
test ecx, ecx
jns 0x677e449f
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.677ffaa0
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.677ee1b0
call fcn.677ecf20
call fcn.677f2070
call fcn.677ed4f0
call fcn.677e38c0
mov esi, dword [0x67b38b68]
mov ecx, dword [esi + 0x3e34]
test ecx, ecx
je 0x677e4568
mov eax, dword [esi + 0x3e74]
mov dword [esi + 0x3e78], eax
cmp dword [esi + 0x3e9c], eax
jne 0x677e44f4
mov byte [esi + 0x3ea0], 1
cmp byte [esi + 0xdc0], 0
je 0x677e455c
movss xmm1, dword [esi + 0xdb8]
movss xmm2, dword [0x67ac4770]
comiss xmm1, xmm2
movss xmm0, dword [esi + 0xdbc]
jb 0x677e455c
comiss xmm0, xmm2
jb 0x677e455c
subss xmm1, dword [esi + 0x3e88]
subss xmm0, dword [esi + 0x3e8c]
mov ecx, dword [ecx + 0x2fc]
lea edx, [esp + 0x20]
push 1
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x28], xmm0
call fcn.677ec110
mov ecx, dword [esi + 0x3e34]
add esp, 4
call fcn.677eb910
jmp 0x677e45a4
mov dword [esi + 0x3e34], 0
jmp 0x677e459b
mov ecx, dword [esi + 0x3e90]
test ecx, ecx
je 0x677e45a4
mov eax, dword [esi + 0x3e74]
cmp dword [ecx + 0x6c], eax
jne 0x677e45a4
mov dword [esi + 0x3e78], eax
cmp dword [esi + 0x3e9c], eax
jne 0x677e4592
mov byte [esi + 0x3ea0], 1
cmp byte [esi + 0xdc0], 0
jne 0x677e45a4
xor edx, edx
xor ecx, ecx
call fcn.677e2e30
mov eax, dword [0x67b38b68]
mov edx, dword [eax + 0x4780]
sub edx, 1
js 0x677e45da
mov eax, dword [eax + 0x4788]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x677e45d2
test dword [ecx + 8], 0x8000000
jne 0x677e45f4
sub eax, 0x28
sub edx, 1
jns 0x677e45c3
cmp dword [edi + 0x4900], 0
je 0x677e4613
movss xmm0, dword [edi + 0x4910]
comiss xmm0, dword [0x67ac4300]
jbe 0x677e4613
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x67ac4564]
addss xmm1, dword [edi + 0x4928]
minss xmm1, dword [0x67ac4418]
jmp 0x677e4634
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x67ac4584]
movss xmm1, dword [edi + 0x4928]
subss xmm1, xmm0
maxss xmm1, dword [0x67ac4300]
movups xmm0, xmmword [edi + 0x59cc]
mov dword [edi + 0x492c], 0
movss dword [edi + 0x4928], xmm1
mov dword [edi + 0x5be0], 0xffffffff
mov dword [edi + 0x5bdc], 0xffffffff
mov dword [edi + 0x5bd8], 0xffffffff
movups xmmword [edi + 0x59dc], xmm0
mov byte [edi + 0x59cc], 0
call fcn.677ed920
cmp byte [edi + 0x3dd7], 0
jne 0x677e46ac
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x677e46ac
movsd xmm1, qword [edi + 0x3dc0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x10], xmm1
jmp 0x677e46b4
movss xmm1, dword [0x67ac46f4]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [edi + 0x3de0], ecx
je 0x677e4888
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov esi, dword [eax + ecx*4]
mov ax, word [esi + 0xb2]
mov cl, byte [esi + 0xa6]
mov word [esi + 0xb4], ax
xor eax, eax
mov byte [esi + 0xa7], cl
mov byte [esi + 0xa6], 0
mov byte [esi + 0xa8], 0
mov word [esi + 0xb2], ax
test cl, cl
jne 0x677e486d
cmp byte [esi + 0x344], al
jne 0x677e486d
comiss xmm1, dword [esi + 0x238]
jbe 0x677e486d
mov ecx, dword [esi + 0x260]
mov byte [esi + 0x344], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x33c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x340], eax
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x677e4790
mov eax, dword [0x67b38b68]
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe0], 0
test eax, eax
je 0x677e4777
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0xe8], 0
mov ecx, dword [esi + 0x260]
call fcn.6782dc20
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x677e47e1
mov eax, dword [0x67b38b68]
mov dword [esi + 0x180], 0
mov dword [esi + 0x17c], 0
test eax, eax
je 0x677e47c8
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x184], 0
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x677e4827
mov eax, dword [0x67b38b68]
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
test eax, eax
je 0x677e480e
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x1ac], 0
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x677e486d
mov eax, dword [0x67b38b68]
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
test eax, eax
je 0x677e4854
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x1b8], 0
mov ecx, dword [esp + 0x18]
movss xmm1, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [edi + 0x3de0]
jne 0x677e46d0
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x4a04], ecx
jle 0x677e49f9
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x1c], edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x4a0c]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x677e49de
movss xmm1, dword [esp + 0x10]
comiss xmm1, xmm0
jbe 0x677e49db
mov esi, dword [edi + 0x49ec]
mov eax, dword [0x67b38b68]
add esi, edx
mov dword [esp + 0x18], eax
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x677e492f
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test eax, eax
je 0x677e4916
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x1a4], 0
mov byte [esi + 0x1d0], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x677e497c
mov eax, dword [0x67b38b68]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x677e4963
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1dc], 1
cmp dword [esi + 0x54], edx
jle 0x677e49a5
xor ecx, ecx
or edi, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [eax + ecx - 0x18], di
cmp edx, dword [esi + 0x54]
jl 0x677e4990
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub esi, dword [eax + 0x49ec]
mov eax, 0x88888889
imul esi
mov eax, dword [esp + 0x18]
add edx, esi
sar edx, 8
mov ecx, edx
mov eax, dword [eax + 0x4a0c]
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0xc]
xorps xmm1, xmm1
inc ecx
add edx, 0x1e0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
cmp ecx, dword [edi + 0x4a04]
jl 0x677e48b0
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x49d8], ecx
jle 0x677e4a5d
xor esi, esi
xorps xmm1, xmm1
nop dword [eax]
mov eax, dword [edi + 0x49e0]
mov dword [esp + 0x20], eax
movss xmm0, dword [esi + eax + 4]
comiss xmm0, xmm1
jb 0x677e4a4d
movss xmm1, dword [esp + 0x10]
comiss xmm1, xmm0
jbe 0x677e4a4a
lea ecx, [eax + 0x10]
add ecx, esi
call fcn.67831370
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esi + eax + 4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add esi, 0x68
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0x49d8]
jl 0x677e4a10
cmp byte [edi + 0x3dd7], 0
je 0x677e4afc
mov esi, dword [0x67b38b68]
mov eax, dword [esi + 0x4770]
test eax, eax
je 0x677e4ab1
mov dword [esi + 0x476c], 0
mov dword [esi + 0x4768], 0
test esi, esi
je 0x677e4a98
dec dword [esi + 0xb0]
push dword [0x67b38b60]
push eax
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x4770], 0
mov ecx, dword [esi + 0x477c]
test ecx, ecx
je 0x677e4af7
mov eax, dword [0x67b38b68]
mov dword [esi + 0x4778], 0
mov dword [esi + 0x4774], 0
test eax, eax
je 0x677e4ade
dec dword [eax + 0xb0]
push dword [0x67b38b60]
push ecx
call fcn.677dd9b0
add esp, 8
mov dword [esi + 0x477c], 0
call fcn.67841740
mov eax, dword [edi + 0x47a8]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x677e4b61
cmp byte [eax + 0xa7], 0
jne 0x677e4b61
mov eax, dword [0x67b38b68]
mov edx, dword [eax + 0x3dec]
sub edx, 1
js 0x677e4b5a
mov eax, dword [eax + 0x3df4]
lea esi, [eax + edx*4]
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x677e4b52
cmp byte [ecx + 0xa7], 0
je 0x677e4b52
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x677e4d46
sub esi, 4
sub edx, 1
jns 0x677e4b30
xor ecx, ecx
call fcn.677eb910
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x677e4b87
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.677ffa20
mov dword [edi + 0x3e04], 0
mov ecx, dword [edi + 0x4790]
test ecx, ecx
jns 0x677e4bb7
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 + 0x478c]
call fcn.677ff990
lea esi, [edi + 0x4768]
mov dword [edi + 0x478c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x677e4be9
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.677ff2a0
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], 0
test ecx, ecx
jne 0x677e4c00
push 8
mov ecx, esi
call fcn.677ff2a0
mov edx, dword [esi]
mov eax, dword [esi + 8]
lea ecx, [edi + 0x4774]
push 0
mov dword [eax + edx*4], 0
inc dword [esi]
call fcn.677ff040
mov esi, dword [0x67b38b68]
cmp byte [esi + 0x5aa5], 0
mov dword [esi + 0x5aa8], 0
je 0x677e4d9e
mov eax, dword [esi + 0x3e64]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [esp + 0x1c], eax
mov dword [esi + 0x492c], 7
call fcn.677ecb70
add esp, 4
test al, al
je 0x677e4c66
mov byte [esi + 0x5aa5], 0
mov ecx, dword [esi + 0xdd4]
mov dword [esp + 0xc], ecx
cmp ecx, 0x3000
je 0x677e4ca8
movzx ecx, byte [esi + 0x5aa6]
xor edx, edx
push 0
call fcn.677eccd0
mov ecx, dword [esp + 0x10]
add esp, 4
test al, al
je 0x677e4ca8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x677e4ca8
mov dword [esi + 0x5aa8], eax
mov byte [esi + 0x5aa5], 0
xor eax, eax
mov dword [esp + 0x10], eax
nop
cmp ecx, 0x3000
jne 0x677e4cd8
push 0
xor edx, edx
mov ecx, eax
call fcn.677eccd0
mov ecx, dword [esp + 0x10]
add esp, 4
test al, al
mov eax, dword [esp + 0x10]
je 0x677e4cd8
mov byte [esi + 0x5aa6], al
inc eax
mov dword [esp + 0x10], eax
cmp eax, 3
jl 0x677e4cb0
or dword [esi + 0x46d8], 0x40
xor ecx, ecx
mov dword [esi + 0x472c], 0x3f333333
call fcn.677efbe0
push dword [esp + 0x18]
push 0x679522e0
call fcn.678443f0
push 0x679522f4
call fcn.678443f0
add esp, 0xc
mov dword [esp + 0x20], 0x67952310
cmp dword [esp + 0xc], 0x3000
mov dword [esp + 0x24], 0x67952318
mov dword [esp + 0x28], 0x67952320
jne 0x677e4d62
push 0x67952328
call fcn.678443f0
add esp, 4
jmp 0x677e4d93
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x677e4d59
cmp byte [eax + 0xa7], 0
jne 0x677e4d5b
mov eax, ecx
mov ecx, eax
jmp 0x677e4b5c
movzx eax, byte [esi + 0x5aa6]
mov ecx, 0x3870
cmp dword [esp + 0x18], 0
push dword [esp + eax*4 + 0x20]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x67b38b68]
push 0x67952368
push eax
call fcn.67844480
add esp, 0xc
call fcn.677eb7b0
mov esi, dword [0x67b38b68]
lea eax, [esi + 0x3e5c]
lea edx, [esi + 0x5abc]
mov dword [eax], 0
mov dword [esp + 0x18], eax
mov eax, dword [edx]
inc eax
mov dword [esp + 0x20], edx
cmp dword [esi + 0x3dc8], eax
jne 0x677e4ec2
mov ecx, dword [esi + 0x3e64]
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x677e4ddf
mov ecx, dword [esi + 0x3e74]
mov dword [esp + 0xc], ecx
cmp dword [edx + 8], ecx
je 0x677e4e3a
lea eax, [edx + 0xc]
mov dword [edx + 8], ecx
mov dword [edx + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
jge 0x677e4e34
mov eax, dword [esp + 0x10]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x10]
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.677ffb30
mov esi, dword [0x67b38b68]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
test ecx, ecx
je 0x677e4ec2
mov eax, dword [edx + 4]
test eax, eax
js 0x677e4e84
mov dword [esp + 0x10], eax
cmp eax, dword [edx + 0xc]
jge 0x677e4e9f
mov edi, dword [edx + 0x14]
lea ecx, [eax + eax*8]
cmp byte [edi + ecx*8 + 5], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
jne 0x677e4e80
mov edi, dword [edx + 0x14]
lea ecx, [eax + eax*8]
mov dword [esp + 0x10], eax
cmp byte [edi + ecx*8 + 4], 2
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
jle 0x677e4e9f
inc eax
mov dword [edx + 4], eax
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x677e4e95
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x677e4ec2
mov eax, dword [esp + 0x10]
test eax, eax
js 0x677e4ec2
jmp 0x677e4ea3
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 0xc]
jge 0x677e4ec2
lea ecx, [eax + eax*8]
mov eax, dword [edx + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x14]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5aa4]
test al, al
je 0x677e4ee0
sub al, 1
mov byte [edi + 0x5aa4], al
jne 0x677e4ee0
mov dword [edi + 0x4684], 0
mov byte [edi + 0x3dd5], 1
xor edx, edx
or dword [esi + 0x46d8], 2
mov ecx, 0x6794ff24
push 0
mov dword [esi + 0x46f8], 0x43c80000
mov dword [esi + 0x46fc], 0x43c80000
mov dword [esi + 0x46e0], 4
call fcn.677e8f10
xor ecx, ecx
add esp, 4
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x5a24], ecx
jle 0x677e4f5c
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x5a2c]
add eax, esi
cmp dword [eax + 4], 1
jne 0x677e4f4c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x28]
add esp, 8
inc ecx
add esi, 0x14
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0x5a24]
jl 0x677e4f30
pop edi
pop esi
mov esp, ebp
pop ebp
ret