Function at 0x18000dab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x180045010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x180047050]
lea rdx, str.S_0_0_0_c_c
mov r9d, 0xa
add rcx, 0x12c92e0
lea r8d, [r9 + 3]
call fcn.180001120
mov rbx, qword [0x180047050]
xor edi, edi
cmp dword [rbx + 0x12ca2f8], 1
jne 0x18000db52
mov rsi, qword [rbx + 0x4174770]
cmp dword [rsi + 8], 1
je 0x18000db52
lea rdx, [rbx + 0x12c92e0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x18000db25
mov rcx, qword [rsi + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [0x180047050]
mov dword [rsi + 0xe00020], edi
cmp dword [rbx + 0x12ca2f8], 1
mov qword [rsp + 0xa0], rbp
jne 0x18000db7a
lea rsi, [rbx + 0xbb12e0]
mov rbx, qword [rbx + 0x4174770]
cmp dword [rbx + 8], 1
jne 0x18000dbac
mov byte [rsi], dil
mov eax, 0xffffffff
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180014fd0
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 0x18000dbdf
sub eax, ebp
cmp eax, 0x1f4
ja 0x18000db7a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000dbb4
sub eax, dword [rbx + 0xe00024]
cmp eax, 0x14
jae 0x18000dbf7
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000dbb4
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 0x18000dc00
test r9d, r9d
jle 0x18000db7a
mov r10, qword [0x180047050]
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 0x18000dc87
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x18000dc80
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r9d
jl 0x18000dc60
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], 0xc
mov esi, edi
movups xmmword [rsp + 0x60], xmm0
mov dword [r10 + 0x41747dc], edi
mov rbx, rdi
mov dword [r10 + 0x41747d4], 1
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 + 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 0x18000dd49
movsx eax, al
lea ecx, [r8 + r8*4]
lea r8d, [rax + rcx*2]
jmp 0x18000dd54
cmp cl, 0x2d
jne 0x18000dd5f
mov r9d, 1
inc rdx
cmp rdx, 0x10
jl 0x18000dd30
jmp 0x18000dd67
cmp cl, 0x2c
jne 0x18000dd67
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 0x18000dd8e
sub cl, 0x2c
cmp cl, 1
ja 0x18000dd9c
inc esi
inc rbx
cmp rbx, 0x1000
jl 0x18000dd20
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 0x18000de20
mov eax, dword [rsp + 0x5c]
cmp eax, 0x3e8
jle 0x18000de20
movd xmm0, eax
mov edi, 1
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x18003ed80]
movsd qword [r10 + 0x88], xmm0
movsd qword [r10 + 0x98], xmm0
cmp ecx, 8
jle 0x18000de3c
cmp edi, 1
jne 0x18000de3c
mov eax, dword [rsp + 0x60]
mov dword [r10 + 0x417468c], eax
mov dword [r10 + 0x4174690], eax
cmp ecx, 9
jle 0x18000de4c
mov eax, dword [rsp + 0x64]
mov dword [r10 + 0x12ca3cc], eax
cmp ecx, 0xa
jle 0x18000de5c
mov eax, dword [rsp + 0x68]
mov dword [r10 + 0x4174698], eax
xor eax, eax
jmp 0x18000db7f