Function at 0x1400032ce
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400ea210
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x14028c8d0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x38], 1
mov r8d, 0x178
xor edx, edx
lea rcx, [rsp + 0x180]
call sub.MSVCR120D.dll_memset
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.MSVCR120D.dll_memset
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0xe0]
call sub.MSVCR120D.dll_memset
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x108]
call sub.MSVCR120D.dll_memset
mov r8d, 0x48
xor edx, edx
lea rcx, [rsp + 0x300]
call sub.MSVCR120D.dll_memset
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x90], 0
jmp 0x1400ea30b
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x370]
add rax, 0x398
mov rcx, rax
call fcn.140004395
cmp qword [rsp + 0x90], rax
jae 0x1400ea3be
mov rax, qword [rsp + 0x370]
add rax, 0x398
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.140005f47
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov rcx, rax
call fcn.1400056eb
cmp dword [rsp + 0x40], eax
jl 0x1400ea389
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov rcx, rax
call fcn.140002f77
cmp dword [rsp + 0x44], eax
jge 0x1400ea3b9
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov rcx, rax
call fcn.1400056eb
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov rcx, rax
call fcn.140002f77
mov dword [rsp + 0x44], eax
jmp 0x1400ea2f8
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3b8], 0
jne 0x1400ea3f5
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3bc], 0
jne 0x1400ea3f5
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
jmp 0x1400ea4b7
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3b8], 0
je 0x1400ea418
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3b8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3bc], 0
je 0x1400ea43b
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3bc]
mov dword [rsp + 0x24], eax
cvtsi2ss xmm0, dword [rsp + 0x40]
cvtsi2ss xmm1, dword [rsp + 0x44]
divss xmm0, xmm1
movss dword [rsp + 0x5c], xmm0
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3b8], 0
jne 0x1400ea485
cvtsi2ss xmm0, dword [rsp + 0x24]
mulss xmm0, dword [rsp + 0x5c]
subss xmm0, dword [0x140237210]
call fcn.14000317f
cvttss2si eax, xmm0
mov dword [rsp + 0x20], eax
jmp 0x1400ea4b7
mov rax, qword [rsp + 0x370]
cmp dword [rax + 0x3bc], 0
je 0x1400ea4b7
cvtsi2ss xmm0, dword [rsp + 0x20]
divss xmm0, dword [rsp + 0x5c]
subss xmm0, dword [0x140237210]
call fcn.14000317f
cvttss2si eax, xmm0
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
add eax, 0xf
and eax, 0xfffffff0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
add eax, 0xf
and eax, 0xfffffff0
mov dword [rsp + 0x24], eax
xor ecx, ecx
call fcn.1400e9be0
mov ecx, eax
call qword [sym.imp.MSVCR120D.dll_srand]
call qword [sym.imp.MSVCR120D.dll_rand]
mov edx, eax
lea rcx, [rsp + 0x180]
call fcn.1401238e0
lea rcx, [rsp + 0x140]
call fcn.1400edd10
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x144], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x148], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x14c], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x150], eax
mov dword [rsp + 0x154], 0
mov dword [rsp + 0x158], 0
mov dword [rsp + 0x15c], 0x3e8
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3d0]
mov dword [rsp + 0x160], eax
mov dword [rsp + 0x164], 0
mov dword [rsp + 0x168], 0
mov dword [rsp + 0x16c], 0
mov dword [rsp + 0x174], 0
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3c8]
mov dword [rsp + 0x178], eax
mov dword [rsp + 0x17c], 6
mov dword [rsp + 0x170], 0
lea rcx, [rsp + 0x140]
call fcn.1400f7aa0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x140]
call fcn.1400edd80
mov eax, dword [rsp + 0x20]
imul eax, dword [rsp + 0x24]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0xb4], eax
movsxd rax, dword [rsp + 0xb4]
mov rcx, rax
call fcn.1401b0bb0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xa0], rax
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + rax + 0x310], rcx
mov eax, 0x18
imul rax, rax, 0
mov ecx, dword [rsp + 0x20]
mov dword [rsp + rax + 0x300], ecx
mov eax, 0x18
imul rax, rax, 0
mov ecx, dword [rsp + 0x24]
mov dword [rsp + rax + 0x304], ecx
mov eax, 0x18
imul rax, rax, 0
mov ecx, dword [rsp + 0x20]
mov dword [rsp + rax + 0x308], ecx
mov eax, dword [rsp + 0x20]
imul eax, dword [rsp + 0x24]
cdqe
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov ecx, 0x18
imul rcx, rcx, 1
mov qword [rsp + rcx + 0x310], rax
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 1
mov dword [rsp + rcx + 0x300], eax
mov eax, dword [rsp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 1
mov dword [rsp + rcx + 0x304], eax
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 1
mov dword [rsp + rcx + 0x308], eax
mov eax, dword [rsp + 0x20]
imul eax, dword [rsp + 0x24]
imul eax, eax, 5
cdq
and edx, 3
add eax, edx
sar eax, 2
cdqe
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov ecx, 0x18
imul rcx, rcx, 2
mov qword [rsp + rcx + 0x310], rax
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 2
mov dword [rsp + rcx + 0x300], eax
mov eax, dword [rsp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 2
mov dword [rsp + rcx + 0x304], eax
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x18
imul rcx, rcx, 2
mov dword [rsp + rcx + 0x308], eax
mov rax, qword [rsp + 0x370]
add rax, 8
lea r8, str._video.ogg
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140005506
nop
mov rax, qword [rsp + 0x370]
add rax, 0x10
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.140001451
lea rcx, [rsp + 0xa8]
call fcn.140002b08
lea r8, [0x140236e18]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR120D.dll__wfopen_s]
cmp qword [rsp + 0x30], 0
jne 0x1400ea7d6
jmp 0x1400eab43
lea rcx, [rsp + 0x108]
call fcn.1400eddc0
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call fcn.1400f8540
test eax, eax
jg 0x1400ea806
jmp 0x1400eab43
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x180]
call fcn.1401223a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call fcn.140122750
cmp eax, 1
je 0x1400ea837
jmp 0x1400eab43
movsxd rax, dword [rsp + 0x78]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_fwrite]
movsxd rax, dword [rsp + 0x88]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCR120D.dll_fwrite]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call fcn.1400f8540
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x1400ea8a3
jmp 0x1400eab43
cmp dword [rsp + 0x38], 0
jne 0x1400ea8ac
jmp 0x1400ea8c3
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x180]
call fcn.1401223a0
jmp 0x1400ea877
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call fcn.1401228a0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x1400ea8e2
jmp 0x1400ea930
cmp dword [rsp + 0x58], 0
jge 0x1400ea8ee
jmp 0x1400eab43
movsxd rax, dword [rsp + 0x78]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_fwrite]
movsxd rax, dword [rsp + 0x88]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCR120D.dll_fwrite]
jmp 0x1400ea8c3
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3e0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x370]
add rax, 0x398
mov rcx, rax
call fcn.140004395
cmp dword [rsp + 0x28], eax
jne 0x1400ea966
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x300]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x370]
call fcn.140004b01
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x50]
call fcn.1400f8600
test eax, eax
je 0x1400ea99e
jmp 0x1400eab43
cmp dword [rsp + 0x48], 0
jne 0x1400ea9af
mov dword [rsp + 0x68], 1
jmp 0x1400ea9b7
mov dword [rsp + 0x68], 0
lea r8, [rsp + 0xe0]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.1400f8d80
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400eaa5f
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x180]
call fcn.1401223a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call fcn.140122750
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x1400eaa13
jmp 0x1400eab43
cmp dword [rsp + 0x64], 0
je 0x1400eaa5a
movsxd rax, dword [rsp + 0x78]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_fwrite]
movsxd rax, dword [rsp + 0x88]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCR120D.dll_fwrite]
jmp 0x1400ea99e
cmp dword [rsp + 0x48], 0
je 0x1400eaa72
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x1400eaa74
jmp 0x1400eaad9
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x370]
add rax, 0x398
mov rcx, rax
call fcn.140004395
cmp dword [rsp + 0x28], eax
jne 0x1400eaaa2
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x370]
mov eax, dword [rax + 0x3e0]
cmp dword [rsp + 0x28], eax
je 0x1400eaad2
mov rax, qword [rsp + 0x370]
add rax, 0x398
mov rcx, rax
call fcn.140004395
cmp dword [rsp + 0x4c], eax
jl 0x1400eaad4
jmp 0x1400eaad9
jmp 0x1400ea966
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call fcn.1401228a0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x1400eaaf8
jmp 0x1400eab43
cmp dword [rsp + 0x60], 0
jge 0x1400eab01
jmp 0x1400eab43
movsxd rax, dword [rsp + 0x78]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_fwrite]
movsxd rax, dword [rsp + 0x88]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCR120D.dll_fwrite]
jmp 0x1400eaad9
lea rcx, [rsp + 0x180]
call fcn.1401239f0
lea rcx, [rsp + 0x108]
call fcn.1400ee1d0
mov rcx, qword [rsp + 0x50]
call fcn.1400f8f90
cmp qword [rsp + 0x30], 0
je 0x1400eab7a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120D.dll_fclose]
mov eax, 0x18
imul rax, rax, 0
cmp qword [rsp + rax + 0x310], 0
je 0x1400eabb4
mov eax, 0x18
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x310]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call sub.MSVCR120D.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, qword [rsp + 0x370]
add rax, 8
lea r8, str.temp_video
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.140005506
nop
lea rax, [rsp + 0x128]
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0xd0]
call fcn.140001a7d
mov qword [rsp + 0xc0], rax
mov dl, 1
mov rcx, qword [rsp + 0xc0]
call fcn.140004507
mov dword [rsp + 0xb0], 1
lea rcx, [rsp + 0xb8]
call fcn.1400053e9
nop
lea rcx, [rsp + 0xa8]
call fcn.1400053e9
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1401b0dd0
add rsp, 0x368
ret