Function at 0x18005dae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x18050e060]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r15, r8
mov ebx, edx
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rbp + 0x10], esi
mov dword [rsp + 0x48], edx
mov rdx, r8
lea rcx, [rsp + 0x50]
call fcn.1800475d0
nop
lea rax, [rsp + 0x48]
mov qword [rbp + 0x10], rax
mov r13, qword [r14 + 0x28]
lea r12, [r14 + 0x20]
mov rdi, qword [r12]
cmp rdi, r13
je 0x18005dbdb
nop dword [rax]
mov eax, dword [rsp + 0x48]
cmp dword [rdi], eax
je 0x18005db81
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x70]
call fcn.1800475d0
or esi, 3
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.18005f220
cmp rax, 0xffffffffffffffff
jne 0x18005db81
xor r14b, r14b
jmp 0x18005db84
mov r14b, 1
test sil, 1
je 0x18005dbc4
and esi, 0xfffffffe
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x18005dbc4
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005dbbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005dc16
call fcn.180101e04
test r14b, r14b
jne 0x18005dbd6
add rdi, 0x28
cmp rdi, r13
jne 0x18005db50
mov r14, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18005dc22
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005dc1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005dc1d
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.180101e04
cmp rdi, qword [r14 + 0x28]
je 0x18005dc2f
xor al, al
jmp 0x18005e0ab
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x1804f9d90]
movdqu xmmword [rbp + 0x30], xmm1
mov byte [rbp + 0x20], 0
mov eax, ebx
mov dword [rbp + 0x18], ebx
lea rcx, [rbp + 0x20]
cmp rcx, r15
je 0x18005dc72
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18005dc62
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
lea rcx, [rbp + 0x20]
call fcn.18005f320
mov eax, dword [rbp + 0x18]
mov rdx, qword [r12 + 8]
cmp rdx, qword [r12 + 0x10]
je 0x18005dc95
mov dword [rdx], eax
lea rcx, [rdx + 8]
lea rdx, [rbp + 0x20]
call fcn.1800475d0
add qword [r12 + 8], 0x28
jmp 0x18005dca1
lea r8, [rbp + 0x18]
mov rcx, r12
call fcn.18005ff30
lea r9, [rbp + 0x75]
test ebx, ebx
jns 0x18005dce0
neg ebx
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18005dcb0
dec r9
mov byte [r9], reloc.WLDAP32.dll_Ordinal_45
jmp 0x18005dd06
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18005dce0
lea r8, [rbp + 0x75]
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1800598f0
nop
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1800475d0
nop
lea r8, [0x180510418]
cmp qword [0x180510430], 0x10
cmovae r8, qword [0x180510418]
mov r9, qword [0x180510428]
lea rcx, [rbp - 0x30]
call fcn.180059800
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea r8d, [rdi + 9]
lea rdx, str._scrDump_
lea rcx, [rsp + 0x70]
call fcn.1800476f0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.1800594f0
nop
lea r8d, [rdi + 4]
lea rdx, str..lua
lea rcx, [rbp - 0x50]
call fcn.1800476f0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
call fcn.1800475d0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18005de42
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005de3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005de3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18005de80
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005de7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005de7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
movdqa xmm0, xmmword [0x1804f9d90]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x18005ded0
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005deca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005deca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18005df0f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005df0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005df0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
movdqa xmm0, xmmword [0x1804f9d90]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18005df5f
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005df5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005df5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
movdqa xmm0, xmmword [0x1804f9d90]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18005dfb0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005dfab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005dfab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rcx, qword [rbp + 0x40]
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 0x18005e01c
mov dword [rbp + 0x10], edi
mov r8d, dword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x18005dffe
mov r15, qword [r15]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x10]
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x18005e05a
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005e055
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005e055
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
movdqa xmm0, xmmword [0x1804f9d90]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x18005e0a9
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005e0a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005e0a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
mov al, 1
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.1801017e0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret