Function at 0x180038100
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 - 0x78]
sub rsp, 0x178
mov rax, qword [0x180091010]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x70], r9
mov r14, r8
mov esi, edx
mov dword [rbp + 0x18], edx
mov r13, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], edx
mov rdx, r8
lea rcx, [rsp + 0x50]
call fcn.18003a240
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov r12, qword [r13 + 0x28]
mov rbx, qword [r13 + 0x20]
cmp rbx, r12
je 0x1800381ff
nop dword [rax]
mov eax, dword [rsp + 0x48]
cmp dword [rbx], eax
je 0x1800381a6
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x70]
call fcn.18003a240
or edi, 3
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180039fe0
cmp rax, 0xffffffffffffffff
jne 0x1800381a6
xor sil, sil
jmp 0x1800381a9
mov sil, 1
test dil, 1
je 0x1800381ea
and edi, 0xfffffffe
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1800381ea
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800381e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003823a
call fcn.18003cfa4
test sil, sil
jne 0x1800381fc
add rbx, 0x28
cmp rbx, r12
jne 0x180038170
mov esi, dword [rbp + 0x18]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180038246
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038241
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038241
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.18003cfa4
cmp rbx, qword [r13 + 0x28]
je 0x180038253
xor al, al
jmp 0x180038621
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
movdqa xmm1, xmmword [0x18008a110]
movdqu xmmword [rbp + 0x38], xmm1
mov byte [rbp + 0x28], 0
mov eax, esi
mov dword [rbp + 0x20], eax
lea rcx, [rbp + 0x28]
cmp rcx, r14
je 0x180038296
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180038286
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rbp + 0x28]
call fcn.18003a0e0
mov eax, dword [rbp + 0x20]
mov rdx, qword [r13 + 0x28]
cmp rdx, qword [r13 + 0x30]
je 0x1800382b6
mov dword [rdx], eax
lea rcx, [rdx + 8]
lea rdx, [rbp + 0x28]
call fcn.18003a240
add qword [r13 + 0x28], 0x28
jmp 0x1800382c3
lea r8, [rbp + 0x20]
lea rcx, [r13 + 0x20]
call fcn.18003ba70
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.18003a490
nop
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.18003a240
nop
lea r8, [rbp - 0x48]
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.18003a670
nop
mov r8d, 0xe
lea rdx, str.C:Dumpedfile
mov rcx, rax
call fcn.18003a360
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
lea r9, [rsp + 0x48]
lea r8, [rbp - 8]
lea rcx, [rbp - 0x68]
call fcn.18003b320
nop
lea r8d, [rdi + 4]
lea rdx, str..lua
lea rcx, [rbp - 0x68]
call fcn.18003a360
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x48]
call fcn.18003a240
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1800383b7
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800383b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800383b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1800383f5
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800383f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800383f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
movdqa xmm0, xmmword [0x18008a110]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x180038445
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003843f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003843f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180038484
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003847f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003847f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
movdqa xmm0, xmmword [0x18008a110]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x1800384d4
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800384cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800384cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
movdqa xmm0, xmmword [0x18008a110]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180038525
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rcx, qword [rbp + 0x48]
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 0x180038592
mov dword [rbp + 0x18], edi
mov r8d, dword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x180038573
mov r14, qword [r14]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x18]
mov rdx, r14
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 + 0x60]
cmp rdx, 0x10
jb 0x1800385d0
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800385cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800385cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
movdqa xmm0, xmmword [0x18008a110]
movdqu xmmword [rbp + 0x58], xmm0
mov byte [rbp + 0x48], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18003861f
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003861a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003861a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cfa4
mov al, 1
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.18003ca50
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret