Function at 0x14000ffd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x140108af0]
lea rdx, str.S_0_0_0_c_c
mov r9d, 0xa
add rcx, 0x12c92e0
lea r8d, [r9 + 3]
call fcn.140001190
mov rbx, qword [0x140108af0]
xor edi, edi
cmp dword [rbx + 0x12ca2f8], 1
jne 0x140010072
mov rsi, qword [rbx + 0x4174770]
cmp dword [rsi + 8], 1
je 0x140010072
lea rdx, [rbx + 0x12c92e0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x140010045
mov rcx, qword [rsi + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [0x140108af0]
mov dword [rsi + 0xe00020], edi
cmp dword [rbx + 0x12ca2f8], 1
mov qword [rsp + 0xa0], rbp
jne 0x14001009a
lea rsi, [rbx + 0xbb12e0]
mov rbx, qword [rbx + 0x4174770]
cmp dword [rbx + 8], 1
jne 0x1400100cc
mov byte [rsi], dil
mov eax, 0xffffffff
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001d8d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
movsxd rdx, dword [rbx + 0xe0001c]
cmp dword [rbx + 0xe00018], edx
jne 0x1400100ff
sub eax, ebp
cmp eax, 0x1f4
ja 0x14001009a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400100d4
sub eax, dword [rbx + 0xe00024]
cmp eax, 0x14
jae 0x140010117
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400100d4
mov r9d, edi
mov r8, rdx
nop dword [rax]
movzx eax, byte [r8 + rbx + 0x700018]
lea ecx, [rdx + 1]
mov byte [rsi], al
lea rsi, [rsi + 1]
inc r9d
lea rax, [r8 + 1]
cmp ecx, 0x700000
mov edx, edi
mov r8, rdi
cmovb edx, ecx
cmovb r8, rax
cmp edx, dword [rbx + 0xe00018]
jne 0x140010120
test r9d, r9d
jle 0x14001009a
mov r10, qword [0x140108af0]
mov edx, edi
movsxd rax, r9d
mov byte [rax + r10 + 0xbb12e0], dil
mov rcx, qword [r10 + 0x4174770]
mov r8d, dword [rcx + 0xe00018]
nop
mov eax, dword [rcx + 0xe0001c]
cmp r8d, eax
je 0x1400101a7
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x1400101a0
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r9d
jl 0x140010180
xorps xmm0, xmm0
mov dword [r10 + 0x4174748], 1
movabs rax, 0x4000000000000000
mov dword [r10 + 0x4174744], 1
movups xmmword [rsp + 0x40], xmm0
mov qword [r10 + 0x88], rax
lea r11, [r10 + 0xbb12e6]
movups xmmword [rsp + 0x50], xmm0
mov dword [r10 + 0x64], InitCommonControls
mov esi, edi
movups xmmword [rsp + 0x60], xmm0
mov dword [r10 + 0x41747dc], edi
mov rbx, rdi
mov dword [r10 + 0x12ca320], 1
mov dword [r10 + 0x41747e4], edi
mov dword [r10 + 0x12ca3a4], 1
mov dword [r10 + 0x417468c], edi
mov dword [r10 + 0x12ca3cc], edi
mov dword [r10 + 0x4174698], edi
nop dword [rax]
mov r8d, edi
mov r9d, edi
mov rdx, rdi
nop dword [rax]
movzx ecx, byte [rdx + r11]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140010259
movsx eax, al
lea ecx, [r8 + r8*4]
lea r8d, [rax + rcx*2]
jmp 0x140010264
cmp cl, 0x2d
jne 0x14001026f
mov r9d, 1
inc rdx
cmp rdx, 0x10
jl 0x140010240
jmp 0x140010277
cmp cl, 0x2c
jne 0x140010277
inc rdx
add r11, rdx
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r11]
cmovne eax, r8d
mov dword [rsp + rbx*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14001029e
sub cl, 0x2c
cmp cl, 1
ja 0x1400102ac
inc esi
inc rbx
cmp rbx, 0x1000
jl 0x140010230
mov eax, dword [rsp + 0x40]
lea ecx, [rsi + 1]
mov dword [r10 + 0x4174748], eax
mov eax, dword [rsp + 0x44]
mov dword [r10 + 0x4174744], eax
mov eax, dword [rsp + 0x48]
mov dword [r10 + 0x64], eax
mov eax, dword [rsp + 0x4c]
mov dword [r10 + 0x41747dc], eax
mov eax, dword [rsp + 0x50]
mov dword [r10 + 0x12ca320], eax
mov eax, dword [rsp + 0x54]
mov dword [r10 + 0x41747e4], eax
mov eax, dword [rsp + 0x58]
mov dword [r10 + 0x12ca3a4], eax
cmp ecx, 7
jle 0x140010330
mov eax, dword [rsp + 0x5c]
cmp eax, 0x3e8
jle 0x140010330
movd xmm0, eax
mov edi, 1
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400492f0]
movsd qword [r10 + 0x88], xmm0
movsd qword [r10 + 0x98], xmm0
cmp ecx, 8
jle 0x14001034c
cmp edi, 1
jne 0x14001034c
mov eax, dword [rsp + 0x60]
mov dword [r10 + 0x417468c], eax
mov dword [r10 + 0x4174690], eax
cmp ecx, 9
jle 0x14001035c
mov eax, dword [rsp + 0x64]
mov dword [r10 + 0x12ca3cc], eax
cmp ecx, 0xa
jle 0x14001036c
mov eax, dword [rsp + 0x68]
mov dword [r10 + 0x4174698], eax
xor eax, eax
jmp 0x14001009f