Function at 0x140028100
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 [0x140061740]
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 0x1400285d0
cmp dword [rcx], 0
jne 0x1400285d0
add rcx, 0x10
lea rdx, str.params
call fcn.1400154c0
test rax, rax
je 0x1400285d0
cmp dword [rax], 1
jne 0x1400285d0
mov rcx, qword [rax + 0x18]
cmp ecx, 1
jl 0x1400285d0
xor r14d, r14d
test rcx, rcx
je 0x1400281a4
mov rax, qword [rax + 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400281a4
cmp dword [rcx], 2
jne 0x1400281a4
mov r15, qword [rcx + 0x10]
jmp 0x1400281a7
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 0x1400281d0
movsxd rcx, eax
test eax, eax
jle 0x1400281f4
cmp byte [rbp + rcx + 0x370], 0x5c
je 0x1400281f4
dec eax
dec rcx
test rcx, rcx
jg 0x1400281e0
inc eax
movsxd rcx, eax
cmp rcx, 0x12c
jae 0x1400285ca
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 0x140028220
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 0x140028230
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 0x140028280
movzx eax, word [0x14005a880]
mov word [rcx], ax
lea rcx, [rbp + 0x360]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400282a0
movzx eax, word [0x14005a884]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x370]
call fcn.1400306b8
mov qword [rbp + 0x358], rax
test rax, rax
je 0x1400282f6
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400349ac
mov dword [rbp + 0x350], 1
jmp 0x140028341
call fcn.1400310d4
cmp dword [rax], 0
je 0x140028341
lea r9, [rbp + 0x370]
lea r8, str.Cannot_open_file__s_n
mov edx, 3
xor ecx, ecx
call fcn.14000f050
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400285e1
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
jmp 0x1400285e1
mov rbx, qword [rbp + 0x358]
test rbx, rbx
jne 0x140028352
mov rdi, r14
jmp 0x1400283b8
mov rcx, rbx
call fcn.140033678
mov edi, eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x358]
call fcn.1400343b0
mov rcx, qword [rbp + 0x358]
call fcn.140033678
movsxd rbx, eax
xor r8d, r8d
mov edx, edi
mov rcx, qword [rbp + 0x358]
call fcn.1400343b0
mov rdi, rbx
cmp ebx, 0x4000
jle 0x1400283b1
lea r8, str.too_big_file_n
mov edx, 3
xor ecx, ecx
call fcn.14000f050
jmp 0x14002831b
mov rbx, qword [rbp + 0x358]
movsxd r12, edi
mov rcx, r12
call fcn.14002edb0
mov r13, rax
test rbx, rbx
je 0x140028434
test byte [rbp + 0x350], 1
je 0x14002840e
mov r9, rbx
mov r8, r12
mov edx, 1
mov rcx, rax
call fcn.140031bd0
cmp eax, edi
je 0x140028407
mov rcx, qword [rbp + 0x358]
call fcn.1400324c8
test eax, eax
jne 0x140028407
mov rcx, qword [rbp + 0x358]
call fcn.1400324f0
mov rbx, qword [rbp + 0x358]
test rbx, rbx
je 0x140028434
mov rcx, rbx
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
mov qword [rbp + 0x358], r14
mov word [rsp + 0x50], r14w
mov edx, edi
mov rcx, r13
call fcn.140028070
mov r12, rax
mov rcx, r13
call fcn.14002ed70
call fcn.140017200
mov rbx, rax
movsxd rcx, dword [rsp + 0x20]
call fcn.1400176e0
mov r8, rax
lea rdx, [0x1400598b4]
mov rcx, rbx
call fcn.1400172f0
mov edx, 5
lea rcx, str.error
call fcn.140017150
test eax, eax
je 0x1400284d9
lea rdi, [0x140063868]
test rbx, rbx
je 0x1400284bb
cmp dword [rbx], 0
jne 0x1400284bb
cmp rbx, rdi
je 0x1400284bb
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.140015340
test eax, eax
je 0x1400284fe
mov rax, qword [0x140063870]
cmp rax, 0xffffffffffffffff
je 0x1400284fe
dec rax
mov qword [0x140063870], rax
jne 0x1400284fe
mov rcx, rdi
jmp 0x1400284f9
mov rax, qword [0x140063870]
cmp rax, 0xffffffffffffffff
je 0x1400284fe
dec rax
mov qword [0x140063870], rax
jne 0x1400284fe
lea rcx, [0x140063868]
call fcn.140017780
call fcn.140017380
mov rdi, rax
mov r8, rax
lea rdx, str.result
mov rcx, rbx
call fcn.1400172f0
test r15, r15
jne 0x140028522
mov rax, r14
jmp 0x14002852a
mov rcx, r15
call fcn.140017690
mov rdx, rax
mov rcx, rdi
call fcn.140017520
test r12, r12
je 0x140028545
mov rcx, r12
call fcn.140017690
mov r14, rax
mov rdx, r14
mov rcx, rdi
call fcn.140017520
mov rcx, rbx
call fcn.140014d20
mov rdi, rax
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140028560
movsxd r8, esi
mov r14, qword [rsp + 0x28]
movsxd rcx, dword [r14]
add rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.14002e480
add dword [r14], esi
test rbx, rbx
je 0x1400285a4
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x1400285a4
dec rax
mov qword [rbx + 8], rax
jne 0x1400285a4
mov rcx, rbx
call fcn.140017780
mov rcx, rdi
call fcn.14002ed70
mov rcx, r12
call fcn.14002ed70
mov r8, r15
lea rdx, str.Remote_management:_file__s_was_uploaded_n
xor ecx, ecx
call fcn.14000ee60
jmp 0x14002831b
call fcn.14002f174
int3
lea rdx, str.srv:_wrong_miner_getfile:params_format_n
mov ecx, 2
call fcn.14000ee60
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.14002e450
add rsp, 0x5b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret