Function at 0x14001a090
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r15, r9
mov r13, r8
movsxd r12, edx
test rcx, rcx
je 0x14001a58c
cmp dword [rcx], 0
jne 0x14001a58c
add rcx, 0x10
lea rdx, str.params
call fcn.140016750
mov rcx, rax
test rax, rax
je 0x14001a58c
cmp dword [rax], 1
jne 0x14001a58c
mov rdx, qword [rax + 0x18]
cmp edx, 2
jl 0x14001a58c
xor r9d, r9d
test rdx, rdx
je 0x14001a133
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
test r8, r8
je 0x14001a133
cmp dword [r8], 2
jne 0x14001a133
mov r14, qword [r8 + 0x10]
jmp 0x14001a136
mov r14, r9
cmp rdx, 1
jb 0x14001a156
jbe 0x14001a156
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001a156
cmp dword [rcx], 2
jne 0x14001a156
mov rcx, qword [rcx + 0x10]
jmp 0x14001a159
mov rcx, r9
test r14, r14
je 0x14001a58c
test rcx, rcx
je 0x14001a58c
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], r9b
jne 0x14001a172
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
call fcn.140019fe0
mov rbx, rax
mov r8d, 0x12c
lea rdx, [rbp + 0x350]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0x350]
mov rcx, rdi
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14001a1b0
movsxd rax, ecx
test ecx, ecx
jle 0x14001a1d4
cmp byte [rbp + rax + 0x350], 0x5c
je 0x14001a1d4
dec ecx
dec rax
test rax, rax
jg 0x14001a1c0
lea eax, [rcx + 1]
movsxd rcx, eax
cmp rcx, 0x12c
jae 0x14001a586
mov byte [rbp + rcx + 0x350], 0
lea rcx, [rbp + 0x350]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a200
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r14 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001a210
xor eax, eax
mov qword [rbp + 0x338], rax
mov dword [rbp + 0x330], eax
mov word [rsp + 0x30], ax
lea rax, [rbp + 0x350]
mov qword [rsp + 0x20], rax
mov byte [rbp + 0x340], 0
xor eax, eax
mov dword [rbp + 0x341], eax
mov byte [rbp + 0x345], al
lea rcx, [rbp + 0x340]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], al
jne 0x14001a260
movzx eax, word [0x1400d6900]
mov word [rcx], ax
lea rcx, [rbp + 0x340]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a280
movzx eax, word [str.rab]
mov word [rcx], ax
lea rcx, [rbp + 0x340]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a2a0
movzx eax, word [0x1400da994]
mov word [rcx], ax
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x350]
call fcn.14008653c
mov qword [rbp + 0x338], rax
test rax, rax
je 0x14001a2f7
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14008bf40
mov ecx, 2
mov dword [rbp + 0x330], ecx
jmp 0x14001a350
call fcn.140087050
cmp dword [rax], 0
je 0x14001a34a
lea r9, [rbp + 0x350]
lea r8, str.Cannot_create_file__s_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
mov rcx, rbx
call fcn.1400856a4
nop
mov rcx, qword [rbp + 0x338]
test rcx, rcx
je 0x14001a59d
call fcn.140087c90
mov rcx, qword [rbp + 0x338]
call fcn.1400867e4
jmp 0x14001a59d
mov ecx, dword [rbp + 0x330]
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001a3b4
shr ecx, 1
test cl, 1
je 0x14001a38d
mov r8, rsi
mov r9, rax
mov edx, 1
mov rcx, rbx
call fcn.1400866d8
cmp eax, esi
je 0x14001a386
mov rcx, qword [rbp + 0x338]
call fcn.140088454
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001a3b4
mov rcx, rax
call fcn.140087c90
mov rcx, qword [rbp + 0x338]
call fcn.1400867e4
xor eax, eax
mov qword [rbp + 0x338], rax
mov word [rsp + 0x30], ax
mov rcx, rbx
call fcn.1400856a4
mov r8, r14
lea rdx, str.Remote_management:_file__s_was_downloaded_n
xor ecx, ecx
call fcn.140014e30
call fcn.1400183d0
mov rbx, rax
mov rcx, r12
call fcn.1400188b0
mov r8, rax
lea rdx, [0x1400d6e94]
mov rcx, rbx
call fcn.1400184c0
mov edx, 5
lea rcx, str.error
call fcn.140018320
test eax, eax
je 0x14001a45b
lea rsi, reloc.WS2_32.dll_getsockopt
test rbx, rbx
je 0x14001a43d
cmp dword [rbx], 0
jne 0x14001a43d
cmp rbx, rsi
je 0x14001a43d
mov r8, qword [rbx + 0x38]
lea rax, [r8 + 1]
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x10]
mov r9, rsi
lea rdx, str.error
call fcn.1400165d0
test eax, eax
je 0x14001a480
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001a480
dec rax
mov qword [0x140107b30], rax
jne 0x14001a480
mov rcx, rsi
jmp 0x14001a47b
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001a480
dec rax
mov qword [0x140107b30], rax
jne 0x14001a480
lea rcx, reloc.WS2_32.dll_getsockopt
call fcn.140018950
mov edx, 6
lea rcx, str.result
call fcn.140018320
test eax, eax
je 0x14001a4ec
lea rsi, [0x140107b38]
test rbx, rbx
je 0x14001a4ce
cmp dword [rbx], 0
jne 0x14001a4ce
cmp rbx, rsi
je 0x14001a4ce
mov r8, qword [rbx + 0x38]
lea rax, [r8 + 1]
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x10]
mov r9, rsi
lea rdx, str.result
call fcn.1400165d0
test eax, eax
je 0x14001a511
mov rax, qword [0x140107b40]
cmp rax, 0xffffffffffffffff
je 0x14001a511
dec rax
mov qword [0x140107b40], rax
jne 0x14001a511
mov rcx, rsi
jmp 0x14001a50c
mov rax, qword [0x140107b40]
cmp rax, 0xffffffffffffffff
je 0x14001a511
dec rax
mov qword [0x140107b40], rax
jne 0x14001a511
lea rcx, [0x140107b38]
call fcn.140018950
mov rcx, rbx
call fcn.140015fb0
mov rsi, rax
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001a520
movsxd r8, edi
movsxd rcx, dword [r15]
add rcx, r13
mov rdx, rax
call fcn.1400847d0
add dword [r15], edi
test rbx, rbx
je 0x14001a55d
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14001a55d
dec rax
mov qword [rbx + 8], rax
jne 0x14001a55d
mov rcx, rbx
call fcn.140018950
mov rcx, rsi
call fcn.1400856a4
lea rdx, str.epools.txt
mov rcx, r14
call fcn.14008f130
test eax, eax
jne 0x14001a324
call fcn.140035710
jmp 0x14001a324
call fcn.140085d40
int3
lea rdx, str.srv:_wrong_miner_file:params_format_n
mov ecx, 2
call fcn.140014e30
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140084590
add rsp, 0x598
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret