Function at 0x14001eff0
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 [0x14010b358]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r15, r9
mov r13, r8
movsxd r12, edx
test rcx, rcx
je 0x14001f4ec
cmp dword [rcx], 0
jne 0x14001f4ec
add rcx, 0x10
lea rdx, str.params
call fcn.140019ca0
mov rcx, rax
test rax, rax
je 0x14001f4ec
cmp dword [rax], 1
jne 0x14001f4ec
mov rdx, qword [rax + 0x18]
cmp edx, 2
jl 0x14001f4ec
xor r9d, r9d
test rdx, rdx
je 0x14001f093
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
test r8, r8
je 0x14001f093
cmp dword [r8], 2
jne 0x14001f093
mov r14, qword [r8 + 0x10]
jmp 0x14001f096
mov r14, r9
cmp rdx, 1
jb 0x14001f0b6
jbe 0x14001f0b6
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001f0b6
cmp dword [rcx], 2
jne 0x14001f0b6
mov rcx, qword [rcx + 0x10]
jmp 0x14001f0b9
mov rcx, r9
test r14, r14
je 0x14001f4ec
test rcx, rcx
je 0x14001f4ec
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], r9b
jne 0x14001f0d2
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
call fcn.14001ef40
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 0x14001f110
movsxd rax, ecx
test ecx, ecx
jle 0x14001f134
cmp byte [rbp + rax + 0x350], 0x5c
je 0x14001f134
dec ecx
dec rax
test rax, rax
jg 0x14001f120
lea eax, [rcx + 1]
movsxd rcx, eax
cmp rcx, 0x12c
jae 0x14001f4e6
mov byte [rbp + rcx + 0x350], 0
lea rcx, [rbp + 0x350]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001f160
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 0x14001f170
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 0x14001f1c0
movzx eax, word [0x1400dc230]
mov word [rcx], ax
lea rcx, [rbp + 0x340]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001f1e0
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 0x14001f200
movzx eax, word [0x1400e0984]
mov word [rcx], ax
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x350]
call fcn.14008bbac
mov qword [rbp + 0x338], rax
test rax, rax
je 0x14001f257
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140090334
mov ecx, 2
mov dword [rbp + 0x330], ecx
jmp 0x14001f2b0
call fcn.14008c1e4
cmp dword [rax], 0
je 0x14001f2aa
lea r9, [rbp + 0x350]
lea r8, str.Cannot_create_file__s_n
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov rcx, rbx
call fcn.140089874
nop
mov rcx, qword [rbp + 0x338]
test rcx, rcx
je 0x14001f4fd
call fcn.14008a888
mov rcx, qword [rbp + 0x338]
call fcn.14008b124
jmp 0x14001f4fd
mov ecx, dword [rbp + 0x330]
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001f314
shr ecx, 1
test cl, 1
je 0x14001f2ed
mov r8, rsi
mov r9, rax
mov edx, 1
mov rcx, rbx
call fcn.14008b018
cmp eax, esi
je 0x14001f2e6
mov rcx, qword [rbp + 0x338]
call fcn.14008d0ac
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001f314
mov rcx, rax
call fcn.14008a888
mov rcx, qword [rbp + 0x338]
call fcn.14008b124
xor eax, eax
mov qword [rbp + 0x338], rax
mov word [rsp + 0x30], ax
mov rcx, rbx
call fcn.140089874
mov r8, r14
lea rdx, str.Remote_management:_file__s_was_downloaded_n
xor ecx, ecx
call fcn.140010790
call fcn.14001b920
mov rbx, rax
mov rcx, r12
call fcn.14001be00
mov r8, rax
lea rdx, [0x1400dc7d4]
mov rcx, rbx
call fcn.14001ba10
mov edx, 5
lea rcx, str.error
call fcn.14001b870
test eax, eax
je 0x14001f3bb
lea rsi, reloc.WS2_32.dll_getsockopt
test rbx, rbx
je 0x14001f39d
cmp dword [rbx], 0
jne 0x14001f39d
cmp rbx, rsi
je 0x14001f39d
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.140019b20
test eax, eax
je 0x14001f3e0
mov rax, qword [0x14010db30]
cmp rax, 0xffffffffffffffff
je 0x14001f3e0
dec rax
mov qword [0x14010db30], rax
jne 0x14001f3e0
mov rcx, rsi
jmp 0x14001f3db
mov rax, qword [0x14010db30]
cmp rax, 0xffffffffffffffff
je 0x14001f3e0
dec rax
mov qword [0x14010db30], rax
jne 0x14001f3e0
lea rcx, reloc.WS2_32.dll_getsockopt
call fcn.14001bea0
mov edx, 6
lea rcx, str.result
call fcn.14001b870
test eax, eax
je 0x14001f44c
lea rsi, [0x14010db38]
test rbx, rbx
je 0x14001f42e
cmp dword [rbx], 0
jne 0x14001f42e
cmp rbx, rsi
je 0x14001f42e
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.140019b20
test eax, eax
je 0x14001f471
mov rax, qword [0x14010db40]
cmp rax, 0xffffffffffffffff
je 0x14001f471
dec rax
mov qword [0x14010db40], rax
jne 0x14001f471
mov rcx, rsi
jmp 0x14001f46c
mov rax, qword [0x14010db40]
cmp rax, 0xffffffffffffffff
je 0x14001f471
dec rax
mov qword [0x14010db40], rax
jne 0x14001f471
lea rcx, [0x14010db38]
call fcn.14001bea0
mov rcx, rbx
call fcn.140019500
mov rsi, rax
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001f480
movsxd r8, edi
movsxd rcx, dword [r15]
add rcx, r13
mov rdx, rax
call fcn.1400889a0
add dword [r15], edi
test rbx, rbx
je 0x14001f4bd
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14001f4bd
dec rax
mov qword [rbx + 8], rax
jne 0x14001f4bd
mov rcx, rbx
call fcn.14001bea0
mov rcx, rsi
call fcn.140089874
lea rdx, str.epools.txt
mov rcx, r14
call fcn.140093520
test eax, eax
jne 0x14001f284
call fcn.14003b420
jmp 0x14001f284
call fcn.140089f2c
int3
lea rdx, str.srv:_wrong_miner_file:params_format_n
mov ecx, 2
call fcn.140010790
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140088760
add rsp, 0x598
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret