Function at 0x18000d210
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x180045010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x180047050]
cmp dword [rcx + 0x12ca2f8], 1
jne 0x18000d4b0
mov r9d, 0xa
mov qword [r11 + 8], rbx
add rcx, 0x12c92e0
mov qword [r11 + 0x10], rbp
lea rdx, str.K_0_0_c_c
lea r8d, [r9 + 3]
call fcn.180001120
mov rdx, qword [0x180047050]
xor ebp, ebp
cmp dword [rdx + 0x12ca2f8], 1
jne 0x18000d2b8
mov rbx, qword [rdx + 0x4174770]
cmp dword [rbx + 8], 1
je 0x18000d2b8
add rdx, 0x12c92e0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bpl
jne 0x18000d292
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], ebp
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [0x180047050]
cmp dword [rbx + 0x12ca2f8], 1
jne 0x18000d4a0
mov qword [rsp + 0x90], rdi
lea rdi, [rbx + 0xbb12e0]
mov rbx, qword [rbx + 0x4174770]
cmp dword [rbx + 8], 1
jne 0x18000d2fb
mov byte [rdi], bpl
jmp 0x18000d498
mov qword [rsp + 0xb0], rsi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
nop dword [rax + rax]
call qword [sym.imp.WINMM.dll_timeGetTime]
movsxd rdx, dword [rbx + 0xe0001c]
cmp dword [rbx + 0xe00018], edx
jne 0x18000d33f
sub eax, esi
cmp eax, 0x1f4
ja 0x18000d490
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000d310
sub eax, dword [rbx + 0xe00024]
cmp eax, 0x14
jae 0x18000d357
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000d310
mov r8d, ebp
mov r9, rdx
nop dword [rax]
movzx eax, byte [r9 + rbx + 0x700018]
lea ecx, [rdx + 1]
mov byte [rdi], al
lea rdi, [rdi + 1]
inc r8d
lea rax, [r9 + 1]
cmp ecx, 0x700000
mov edx, ebp
mov r9, rbp
cmovb edx, ecx
cmovb r9, rax
cmp edx, dword [rbx + 0xe00018]
jne 0x18000d360
test r8d, r8d
je 0x18000d490
mov rbx, qword [0x180047050]
mov edx, ebp
mov rcx, qword [rbx + 0x4174770]
jle 0x18000d3dc
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x18000d3dc
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x18000d3d5
mov dword [rcx + 0xe0001c], ebp
inc edx
cmp edx, r8d
jl 0x18000d3b5
xorps xmm0, xmm0
movsxd rax, r8d
movups xmmword [rsp + 0x60], xmm0
lea r10, [rbx + 0xbb12e6]
mov r11, rbp
movups xmmword [rsp + 0x70], xmm0
mov byte [rax + rbx + 0xbb12e0], bpl
nop
mov r8d, ebp
mov r9d, ebp
mov rax, rbp
nop dword [rax]
movzx edx, byte [rax + r10]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x18000d42a
movsx ecx, cl
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx*2]
jmp 0x18000d435
cmp dl, 0x2d
jne 0x18000d440
mov r9d, 1
inc rax
cmp rax, 0x10
jl 0x18000d410
jmp 0x18000d448
cmp dl, 0x2c
jne 0x18000d448
inc rax
add r10, rax
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r10]
cmovne eax, r8d
mov dword [rsp + r11*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x18000d470
sub cl, 0x2c
cmp cl, 1
ja 0x18000d47c
inc r11
cmp r11, 0x1000
jl 0x18000d400
cmp dword [rsp + 0x6c], 0x128e0
jl 0x18000d490
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x41746c0], eax
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180014fd0
add rsp, 0x98
ret