Function at 0x14001a650
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4b8]
sub rsp, 0x5b8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x20], edx
test rcx, rcx
je 0x14001ab20
cmp dword [rcx], 0
jne 0x14001ab20
add rcx, 0x10
lea rdx, str.params
call fcn.140016750
test rax, rax
je 0x14001ab20
cmp dword [rax], 1
jne 0x14001ab20
mov rcx, qword [rax + 0x18]
cmp ecx, 1
jl 0x14001ab20
xor r14d, r14d
test rcx, rcx
je 0x14001a6f4
mov rax, qword [rax + 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001a6f4
cmp dword [rcx], 2
jne 0x14001a6f4
mov r15, qword [rcx + 0x10]
jmp 0x14001a6f7
mov r15, r14
mov r8d, 0x12c
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x370]
or rsi, 0xffffffffffffffff
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r14b
jne 0x14001a720
movsxd rcx, eax
test eax, eax
jle 0x14001a744
cmp byte [rbp + rcx + 0x370], 0x5c
je 0x14001a744
dec eax
dec rcx
test rcx, rcx
jg 0x14001a730
inc eax
movsxd rcx, eax
cmp rcx, 0x12c
jae 0x14001ab1a
mov byte [rbp + rcx + 0x370], r14b
lea rcx, [rbp + 0x370]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14001a770
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r15 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001a780
mov qword [rbp + 0x358], r14
mov dword [rbp + 0x350], r14d
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0x370]
mov qword [rsp + 0x38], rax
mov byte [rbp + 0x360], 0
xor eax, eax
mov dword [rbp + 0x361], eax
mov byte [rbp + 0x365], al
lea rcx, [rbp + 0x360]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], al
jne 0x14001a7d0
movzx eax, word [0x1400da98c]
mov word [rcx], ax
lea rcx, [rbp + 0x360]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14001a7f0
movzx eax, word [0x1400da994]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x370]
call fcn.14008653c
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14001a846
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14008bf40
mov dword [rbp + 0x350], 1
jmp 0x14001a891
call fcn.140087050
cmp dword [rax], 0
je 0x14001a891
lea r9, [rbp + 0x370]
lea r8, str.Cannot_open_file__s_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14001ab31
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
jmp 0x14001ab31
mov rbx, qword [rbp + 0x358]
test rbx, rbx
jne 0x14001a8a2
mov rdi, r14
jmp 0x14001a908
mov rcx, rbx
call fcn.14008a95c
mov edi, eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x358]
call fcn.14008b734
mov rcx, qword [rbp + 0x358]
call fcn.14008a95c
movsxd rbx, eax
xor r8d, r8d
mov edx, edi
mov rcx, qword [rbp + 0x358]
call fcn.14008b734
mov rdi, rbx
cmp ebx, 0x4000
jle 0x14001a901
lea r8, str.too_big_file_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
jmp 0x14001a86b
mov rbx, qword [rbp + 0x358]
movsxd r12, edi
mov rcx, r12
call fcn.14008597c
mov r13, rax
test rbx, rbx
je 0x14001a984
test byte [rbp + 0x350], 1
je 0x14001a95e
mov r9, rbx
mov r8, r12
mov edx, 1
mov rcx, rax
call fcn.140087fdc
cmp eax, edi
je 0x14001a957
mov rcx, qword [rbp + 0x358]
call fcn.14008842c
test eax, eax
jne 0x14001a957
mov rcx, qword [rbp + 0x358]
call fcn.140088454
mov rbx, qword [rbp + 0x358]
test rbx, rbx
je 0x14001a984
mov rcx, rbx
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov qword [rbp + 0x358], r14
mov word [rsp + 0x50], r14w
mov edx, edi
mov rcx, r13
call fcn.14001a5c0
mov r12, rax
mov rcx, r13
call fcn.1400856a4
call fcn.1400183d0
mov rbx, rax
movsxd rcx, dword [rsp + 0x20]
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 0x14001aa29
lea rdi, reloc.WS2_32.dll_getsockopt
test rbx, rbx
je 0x14001aa0b
cmp dword [rbx], 0
jne 0x14001aa0b
cmp rbx, rdi
je 0x14001aa0b
mov r8, qword [rbx + 0x38]
lea rax, [r8 + 1]
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x10]
mov r9, rdi
lea rdx, str.error
call fcn.1400165d0
test eax, eax
je 0x14001aa4e
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001aa4e
dec rax
mov qword [0x140107b30], rax
jne 0x14001aa4e
mov rcx, rdi
jmp 0x14001aa49
mov rax, qword [0x140107b30]
cmp rax, 0xffffffffffffffff
je 0x14001aa4e
dec rax
mov qword [0x140107b30], rax
jne 0x14001aa4e
lea rcx, reloc.WS2_32.dll_getsockopt
call fcn.140018950
call fcn.140018550
mov rdi, rax
mov r8, rax
lea rdx, str.result
mov rcx, rbx
call fcn.1400184c0
test r15, r15
jne 0x14001aa72
mov rax, r14
jmp 0x14001aa7a
mov rcx, r15
call fcn.140018860
mov rdx, rax
mov rcx, rdi
call fcn.1400186f0
test r12, r12
je 0x14001aa95
mov rcx, r12
call fcn.140018860
mov r14, rax
mov rdx, r14
mov rcx, rdi
call fcn.1400186f0
mov rcx, rbx
call fcn.140015fb0
mov rdi, rax
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x14001aab0
movsxd r8, esi
mov r14, qword [rsp + 0x28]
movsxd rcx, dword [r14]
add rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.1400847d0
add dword [r14], esi
test rbx, rbx
je 0x14001aaf4
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14001aaf4
dec rax
mov qword [rbx + 8], rax
jne 0x14001aaf4
mov rcx, rbx
call fcn.140018950
mov rcx, rdi
call fcn.1400856a4
mov rcx, r12
call fcn.1400856a4
mov r8, r15
lea rdx, str.Remote_management:_file__s_was_uploaded_n
xor ecx, ecx
call fcn.140014e30
jmp 0x14001a86b
call fcn.140085d40
int3
lea rdx, str.srv:_wrong_miner_getfile:params_format_n
mov ecx, 2
call fcn.140014e30
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.140084590
add rsp, 0x5b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret