Function at 0x14001a3d0
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 0x14001a8cc
cmp dword [rcx], 0
jne 0x14001a8cc
add rcx, 0x10
lea rdx, str.params
call fcn.140016760
mov rcx, rax
test rax, rax
je 0x14001a8cc
cmp dword [rax], 1
jne 0x14001a8cc
mov rdx, qword [rax + 0x18]
cmp edx, 2
jl 0x14001a8cc
xor r9d, r9d
test rdx, rdx
je 0x14001a473
mov rax, qword [rax + 0x20]
mov r8, qword [rax]
test r8, r8
je 0x14001a473
cmp dword [r8], 2
jne 0x14001a473
mov r14, qword [r8 + 0x10]
jmp 0x14001a476
mov r14, r9
cmp rdx, 1
jb 0x14001a496
jbe 0x14001a496
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001a496
cmp dword [rcx], 2
jne 0x14001a496
mov rcx, qword [rcx + 0x10]
jmp 0x14001a499
mov rcx, r9
test r14, r14
je 0x14001a8cc
test rcx, rcx
je 0x14001a8cc
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], r9b
jne 0x14001a4b2
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
call fcn.14001a320
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 0x14001a4f0
movsxd rax, ecx
test ecx, ecx
jle 0x14001a514
cmp byte [rbp + rax + 0x350], 0x5c
je 0x14001a514
dec ecx
dec rax
test rax, rax
jg 0x14001a500
lea eax, [rcx + 1]
movsxd rcx, eax
cmp rcx, 0x12c
jae 0x14001a8c6
mov byte [rbp + rcx + 0x350], 0
lea rcx, [rbp + 0x350]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a540
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 0x14001a550
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 0x14001a5a0
movzx eax, word [0x1400d6920]
mov word [rcx], ax
lea rcx, [rbp + 0x340]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a5c0
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 0x14001a5e0
movzx eax, word [0x1400daa74]
mov word [rcx], ax
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x350]
call fcn.14008691c
mov qword [rbp + 0x338], rax
test rax, rax
je 0x14001a637
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14008c320
mov ecx, 2
mov dword [rbp + 0x330], ecx
jmp 0x14001a690
call fcn.140087430
cmp dword [rax], 0
je 0x14001a68a
lea r9, [rbp + 0x350]
lea r8, str.Cannot_create_file__s_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov rcx, rbx
call fcn.140085b44
nop
mov rcx, qword [rbp + 0x338]
test rcx, rcx
je 0x14001a8dd
call fcn.140088070
mov rcx, qword [rbp + 0x338]
call fcn.140086bc4
jmp 0x14001a8dd
mov ecx, dword [rbp + 0x330]
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001a6f4
shr ecx, 1
test cl, 1
je 0x14001a6cd
mov r8, rsi
mov r9, rax
mov edx, 1
mov rcx, rbx
call fcn.140086ab8
cmp eax, esi
je 0x14001a6c6
mov rcx, qword [rbp + 0x338]
call fcn.140088834
mov rax, qword [rbp + 0x338]
test rax, rax
je 0x14001a6f4
mov rcx, rax
call fcn.140088070
mov rcx, qword [rbp + 0x338]
call fcn.140086bc4
xor eax, eax
mov qword [rbp + 0x338], rax
mov word [rsp + 0x30], ax
mov rcx, rbx
call fcn.140085b44
mov r8, r14
lea rdx, str.Remote_management:_file__s_was_downloaded_n
xor ecx, ecx
call fcn.140014e30
call fcn.1400183e0
mov rbx, rax
mov rcx, r12
call fcn.1400188c0
mov r8, rax
lea rdx, [0x1400d6ee0]
mov rcx, rbx
call fcn.1400184d0
mov edx, 5
lea rcx, str.error
call fcn.140018330
test eax, eax
je 0x14001a79b
lea rsi, reloc.WS2_32.dll_getsockopt
test rbx, rbx
je 0x14001a77d
cmp dword [rbx], 0
jne 0x14001a77d
cmp rbx, rsi
je 0x14001a77d
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.1400165e0
test eax, eax
je 0x14001a7c0
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001a7c0
dec rax
mov qword [0x140107b30], rax
jne 0x14001a7c0
mov rcx, rsi
jmp 0x14001a7bb
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001a7c0
dec rax
mov qword [0x140107b30], rax
jne 0x14001a7c0
lea rcx, reloc.WS2_32.dll_getsockopt
call fcn.140018960
mov edx, 6
lea rcx, str.result
call fcn.140018330
test eax, eax
je 0x14001a82c
lea rsi, [0x140107b38]
test rbx, rbx
je 0x14001a80e
cmp dword [rbx], 0
jne 0x14001a80e
cmp rbx, rsi
je 0x14001a80e
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.1400165e0
test eax, eax
je 0x14001a851
mov rax, qword [0x140107b40]
cmp rax, 0xffffffffffffffff
je 0x14001a851
dec rax
mov qword [0x140107b40], rax
jne 0x14001a851
mov rcx, rsi
jmp 0x14001a84c
mov rax, qword [0x140107b40]
cmp rax, 0xffffffffffffffff
je 0x14001a851
dec rax
mov qword [0x140107b40], rax
jne 0x14001a851
lea rcx, [0x140107b38]
call fcn.140018960
mov rcx, rbx
call fcn.140015fc0
mov rsi, rax
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001a860
movsxd r8, edi
movsxd rcx, dword [r15]
add rcx, r13
mov rdx, rax
call fcn.140084c70
add dword [r15], edi
test rbx, rbx
je 0x14001a89d
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14001a89d
dec rax
mov qword [rbx + 8], rax
jne 0x14001a89d
mov rcx, rbx
call fcn.140018960
mov rcx, rsi
call fcn.140085b44
lea rdx, str.epools.txt
mov rcx, r14
call fcn.14008f510
test eax, eax
jne 0x14001a664
call fcn.140035bb0
jmp 0x14001a664
call fcn.1400861e0
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.140084a30
add rsp, 0x598
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret