Function at 0x180037cf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x180091040]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rsi, r9
mov qword [rsp + 0x40], r9
mov r15, r8
mov r13d, edx
mov r14, rcx
xor edi, edi
mov dword [rbp + 8], edi
mov dword [rbp + 0x10], edx
mov rdx, r8
lea rcx, [rbp + 0x18]
call fcn.1800399a0
nop
lea rax, [rbp + 0x10]
mov qword [rbp + 8], rax
mov r12, qword [r14 + 0x28]
mov rbx, qword [r14 + 0x20]
cmp rbx, r12
je 0x180037de6
mov eax, dword [rbp + 0x10]
cmp dword [rbx], eax
je 0x180037d8a
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.1800399a0
or edi, 3
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x48]
call fcn.180039810
cmp rax, 0xffffffffffffffff
jne 0x180037d8a
xor sil, sil
jmp 0x180037d8d
mov sil, 1
test dil, 1
je 0x180037dcf
and edi, 0xfffffffe
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180037dcf
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037dca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180037e1f
call fcn.18003c6d4
test sil, sil
jne 0x180037de1
add rbx, 0x28
cmp rbx, r12
jne 0x180037d56
mov rsi, qword [rsp + 0x40]
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x180037e2b
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037e26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037e26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18003c6d4
cmp rbx, qword [r14 + 0x28]
je 0x180037e38
xor al, al
jmp 0x1800381f1
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
movdqa xmm1, xmmword [0x180089e80]
movdqu xmmword [rbp + 0x28], xmm1
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x10], r13d
mov rdx, r15
lea rcx, [rbp + 0x18]
call fcn.180039910
lea rcx, [r14 + 0x20]
mov rdx, qword [r14 + 0x28]
cmp rdx, qword [r14 + 0x30]
je 0x180037e87
mov eax, dword [rbp + 0x10]
mov dword [rdx], eax
lea rcx, [rdx + 8]
lea rdx, [rbp + 0x18]
call fcn.1800399a0
add qword [r14 + 0x28], 0x28
jmp 0x180037e90
lea r8, [rbp + 0x10]
call fcn.18003b140
mov edx, r13d
lea rcx, [rbp - 0x18]
call fcn.180039bf0
nop
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1800399a0
nop
lea r8, [rbp - 0x78]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.180039f30
nop
mov r8d, 0xe
lea rdx, str.C:Dumpedfile
mov rcx, rax
call fcn.180039ac0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x38]
lea rcx, [rsp + 0x68]
call fcn.18003aca0
nop
lea r8d, [rdi + 4]
lea rdx, str..lua
lea rcx, [rsp + 0x68]
call fcn.180039ac0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x38]
call fcn.1800399a0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x180037f84
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037f7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037f7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x180037fc3
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180037fbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037fbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
movdqa xmm0, xmmword [0x180089e80]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x180038015
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003800f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003800f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180038055
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038050
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038050
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
movdqa xmm0, xmmword [0x180089e80]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1800380a6
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800380a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800380a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
movdqa xmm0, xmmword [0x180089e80]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1800380f5
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800380f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800380f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rcx, qword [rbp + 0x38]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180038162
mov dword [rbp + 8], edi
mov r8d, dword [r15 + 0x10]
cmp qword [r15 + 0x18], 0xf
jbe 0x180038143
mov r15, qword [r15]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 8]
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x1800381a0
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003819b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003819b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
movdqa xmm0, xmmword [0x180089e80]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x1800381ef
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800381ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800381ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c6d4
mov al, 1
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.18003c190
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret