Function at 0x14002b480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14012bc80]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, qword [rbp + 0xa0]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x58], rcx
mov rcx, rdi
mov r12, r9
mov r13, r8
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x3c], ebx
call fcn.14002c6e0
test eax, eax
jne 0x14002b755
xor eax, eax
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x148], rsi
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], eax
mov byte [rbp - 0x70], al
mov qword [rbp - 0x6f], rax
mov qword [rbp - 0x67], rax
mov qword [rbp - 0x5f], rax
mov dword [rbp - 0x57], eax
mov word [rbp - 0x53], ax
mov byte [rbp - 0x51], al
mov byte [rsp + 0x70], al
mov qword [rsp + 0x71], rax
mov qword [rsp + 0x79], rax
mov qword [rbp - 0x7f], rax
mov dword [rbp - 0x77], eax
mov word [rbp - 0x73], ax
mov byte [rbp - 0x71], al
call fcn.14001d008
mov esi, dword [rsp + 0x4c]
lea r8d, [rbx + 2]
lea rdx, [0x14010e8e0]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], esi
call fcn.14000ca3c
lea rdx, [0x14010e8e0]
lea rcx, [rbp - 0x70]
mov r8d, esi
call fcn.14000ca3c
lea rax, [rsp + 0x70]
mov rcx, rbx
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x14002b570
lea r8, [rbp - 0x70]
mov rax, rbx
inc rax
cmp byte [r8 + rax], 0
jne 0x14002b580
add eax, 0x10
mov edx, 1
add ecx, eax
call fcn.140022b68
lea rdx, str.___FNLSVer
mov r8, rdi
mov rcx, rax
mov r14, rax
call fcn.14002a840
lea rdx, [rsp + 0x70]
mov r8, rdi
mov rcx, r14
call fcn.14002a5f0
lea rdx, [rbp - 0x70]
mov r8, rdi
mov rcx, r14
call fcn.14002a5f0
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14002b5d0
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14002bbc0
mov esi, eax
test eax, eax
jne 0x14002b6ba
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002b652
lea esi, [rax + 2]
test rdi, rdi
je 0x14002b652
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002b632
mov rcx, qword [rdi]
lea edx, [rsi + 0x17]
mov r9d, 0xb1
mov r8d, esi
call rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14002b652
mov rcx, qword [rdi]
lea r8, str.Not_able_to_write_to_the_named_pipe
mov r9d, 0xb2
mov edx, reloc.WS2_32.dll_inet_ntoa
call rax
test esi, esi
jne 0x14002b6ba
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x50]
mov qword [rsp + 0x20], rdi
call fcn.14002be10
mov esi, eax
test eax, eax
je 0x14002b6ba
test rdi, rdi
je 0x14002b6ba
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002b69a
mov rcx, qword [rdi]
mov edx, 0x19
mov r9d, 0x24a
lea r8d, [rdx - 0x15]
call rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14002b6ba
mov rcx, qword [rdi]
lea r8, str.FNLS_Version_info_not_available___incompatible_version_of_the_service
mov r9d, 0x24b
mov edx, reloc.WS2_32.dll_inet_ntoa
call rax
mov rcx, r14
call fcn.1400108e4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x140]
test esi, esi
jne 0x14002b74b
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str._d._d._d._d._d._d__d__d
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000d748
cmp eax, 4
je 0x14002b711
lea eax, [rsi + 3]
jmp 0x14002b74d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002b721
mov eax, dword [rsp + 0x38]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002b731
mov eax, dword [rsp + 0x34]
mov dword [rcx], eax
test r13, r13
je 0x14002b73e
mov ecx, dword [rsp + 0x30]
mov dword [r13], ecx
test r12, r12
je 0x14002b74b
mov ecx, dword [rsp + 0x3c]
mov dword [r12], ecx
mov eax, esi
mov rsi, qword [rsp + 0x148]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14000c9f0
add rsp, 0x150
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret