Function at 0x1400014b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1e8], rbx
mov rax, qword [0x140012070]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140001b10
nop
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140001508
lea rcx, [rsp + 0x50]
call fcn.140001c70
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000186f
mov rax, qword [rsp + 0x178]
mov rbx, rax
mov rsi, qword [rsp + 0x180]
cmp rax, rsi
jbe 0x14000156e
call fcn.1400048c8
mov rsi, qword [rsp + 0x180]
mov rax, qword [rsp + 0x178]
mov rdi, qword [rsp + 0x160]
cmp rax, rsi
jbe 0x140001580
call fcn.1400048c8
test rdi, rdi
je 0x14000158f
cmp rdi, qword [rsp + 0x160]
je 0x140001594
call fcn.1400048c8
cmp rbx, rsi
je 0x1400017aa
test rdi, rdi
jne 0x1400015ac
call fcn.1400048c8
mov r11, r13
jmp 0x1400015af
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1400015ba
call fcn.1400048c8
mov rax, qword [rbx]
mov esi, dword [rax - 0x10]
test rdi, rdi
jne 0x1400015cf
call fcn.1400048c8
mov r11, r13
jmp 0x1400015d2
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1400015dd
call fcn.1400048c8
mov rax, qword [rbx]
cmp dword [rax - 8], 1
jle 0x1400015f1
mov edx, dword [rax - 0x10]
mov rcx, rbx
call fcn.140001910
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, qword [rbx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rdi, rdi
jne 0x140001619
call fcn.1400048c8
mov r11, r13
jmp 0x14000161c
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x140001627
call fcn.1400048c8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001634
mov eax, r13d
jmp 0x140001645
movsxd rdx, dword [rcx - 0xc]
call fcn.1400046f4
test eax, eax
js 0x14000179f
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000179f
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], r13b
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x14000f1f0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rdi, rdi
jne 0x14000168d
call fcn.1400048c8
mov r11, r13
jmp 0x140001690
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x14000169b
call fcn.1400048c8
mov rax, qword [rbx + 8]
mov ebp, dword [rax - 0x10]
test rdi, rdi
jne 0x1400016b1
call fcn.1400048c8
mov r11, r13
jmp 0x1400016b4
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1400016bf
call fcn.1400048c8
mov rax, qword [rbx + 8]
cmp dword [rax - 8], 1
jle 0x1400016d5
mov edx, dword [rax - 0x10]
lea rcx, [rbx + 8]
call fcn.140001910
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, qword [rbx + 8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rdi, rdi
jne 0x1400016fe
call fcn.1400048c8
mov r11, r13
jmp 0x140001701
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x14000170c
call fcn.1400048c8
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14000171a
mov eax, r13d
jmp 0x140001727
movsxd rdx, dword [rcx - 0xc]
call fcn.1400046f4
test eax, eax
js 0x140001794
mov rcx, qword [rbx + 8]
cmp eax, dword [rcx - 0xc]
jg 0x140001794
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], r13b
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [0x14000f1f4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rdi, rdi
jne 0x14000176d
call fcn.1400048c8
mov r11, r13
jmp 0x140001770
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x14000177b
call fcn.1400048c8
add rbx, 0x10
mov rsi, qword [rsp + 0x180]
mov rax, qword [rsp + 0x178]
jmp 0x140001576
mov ecx, 0x80070057
call fcn.140001490
int3
mov ecx, 0x80070057
call fcn.140001490
int3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400017c5
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov rbx, qword [rsp + 0x178]
test rbx, rbx
je 0x140001846
mov rdi, qword [rsp + 0x180]
cmp rbx, rdi
je 0x14000183e
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000180f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000182d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 0x10
cmp rbx, rdi
jne 0x1400017f0
mov rbx, qword [rsp + 0x178]
mov rcx, rbx
call fcn.1400042b8
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r13
mov rcx, qword [rsp + 0x160]
call fcn.1400042b8
xor eax, eax
jmp 0x1400018e2
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140001880
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov rdx, qword [rsp + 0x178]
test rdx, rdx
je 0x1400018b8
mov r8, qword [rsp + 0x180]
lea rcx, [rsp + 0x160]
call fcn.140002f60
mov rcx, qword [rsp + 0x178]
call fcn.1400042b8
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r13
mov rcx, qword [rsp + 0x160]
call fcn.1400042b8
mov eax, 2
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400042d0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret