Function at 0x180043ac0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801a3080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r13d, r13d
lea edx, [r13 + 8]
lea rcx, [rbp - 0x59]
call fcn.18001c730
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x59]
call fcn.18001b130
nop
cmp qword [rsi + 0x30], r13
jne 0x180043df4
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.1800448e0
nop
cmp qword [rbp - 1], r13
je 0x180043da7
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
xor r8d, r8d
xor edx, edx
call fcn.180044bc0
mov r14, rax
mov qword [rbp - 0x41], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x180043b86
mov rax, qword [rdi]
mov qword [rbp - 0x41], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x39]
call fcn.18001e900
mov r14, qword [rbp - 0x41]
cmp qword [rbp - 0x39], 0
je 0x180043d8e
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r15, r13
nop dword [rax + rax]
cmp byte [rsi], 0
jne 0x180043c33
cmp rbx, 0xffffffffffffffff
jne 0x180043c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x180043d6d
lea ecx, [rbx + 0x33]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc r15
cmp r15, 0xa
jb 0x180043bd0
cmp rbx, 0xffffffffffffffff
je 0x180043d6d
test rbx, rbx
je 0x180043d6d
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x180043c61
mov rcx, qword [rax]
test rcx, rcx
je 0x180043c5d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x59], r13
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.180049ad0
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r13
mov qword [rbp + 0x1f], r13
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbp - 0x29]
mov rax, qword [rbp - 0x21]
cmp rdx, rax
je 0x180043ce1
mov dword [rbp - 0x31], r13d
sub rax, rdx
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x31]
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180043d1b
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001c730
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001b130
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.180044e10
nop
lea rcx, [rbp - 0x31]
call fcn.18001b160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180043d8e
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180043d5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180043e30
call fcn.1800dedc4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
jmp 0x180043d8e
lea rax, [rbp - 0x41]
cmp rdi, rax
je 0x180043d8e
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x41], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x39]
call fcn.18001e900
nop
lea rcx, [rbp - 0x41]
call fcn.180044aa0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1800dedc4
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x180043de3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180043dde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180043e2a
call fcn.1800dedc4
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
lea rcx, [rbp - 0x59]
call fcn.18001b160
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800deda0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180103f88
nop
call fcn.180103f88
int3