Function at 0x180043670
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 [0x1801a8080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r13d, r13d
lea edx, [r13 + 8]
lea rcx, [rbp - 0x59]
call fcn.18001bf20
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x59]
call fcn.18001a920
nop
cmp qword [rsi + 0x30], r13
jne 0x1800439a4
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.180044490
nop
cmp qword [rbp - 1], r13
je 0x180043957
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.180044770
mov r14, rax
mov qword [rbp - 0x41], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x180043736
mov rax, qword [rdi]
mov qword [rbp - 0x41], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x39]
call fcn.18001e0f0
mov r14, qword [rbp - 0x41]
cmp qword [rbp - 0x39], 0
je 0x18004393e
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 0x1800437e3
cmp rbx, 0xffffffffffffffff
jne 0x1800437ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x18004391d
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 0x180043780
cmp rbx, 0xffffffffffffffff
je 0x18004391d
test rbx, rbx
je 0x18004391d
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x180043811
mov rcx, qword [rax]
test rcx, rcx
je 0x18004380d
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.180049680
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 0x180043891
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 0x1800438cb
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001bf20
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001a920
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.1800449c0
nop
lea rcx, [rbp - 0x31]
call fcn.18001a950
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x18004393e
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004390a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800439e0
call fcn.1800e2d24
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
jmp 0x18004393e
lea rax, [rbp - 0x41]
cmp rdi, rax
je 0x18004393e
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x41], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x39]
call fcn.18001e0f0
nop
lea rcx, [rbp - 0x41]
call fcn.180044650
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x41]
call fcn.1800e2d24
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x180043993
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004398e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800439da
call fcn.1800e2d24
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
lea rcx, [rbp - 0x59]
call fcn.18001a950
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800e2d00
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.180107ee8
nop
call fcn.180107ee8
int3