Function at 0x180010440
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rbp + 0x48], rax
movzx esi, dl
mov rbx, rcx
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rsp + 0x78], r13
lea rax, [rbp - 0x38]
test rax, rax
je 0x1800104ff
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x38]
test rax, rax
je 0x1800104f9
call rax
jmp 0x1800104ff
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rbp - 0x38]
cmp ax, 9
je 0x180010516
cmp ax, 6
lea rax, [0x180047ef0]
jne 0x18001051d
lea rax, [0x180047eec]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.180007630
nop
mov rdx, qword [rsp + 0x70]
test rdx, rdx
jne 0x180010544
lea rcx, [rsp + 0x30]
call fcn.180007c30
mov rdx, rax
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x20]
call fcn.180003360
nop
cmp qword [rbp + 0x30], 0
ja 0x18001059f
cmp qword [rbp + 0x38], 0x10
jb 0x18001058a
mov rcx, qword [rbp + 0x20]
call fcn.18002228c
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
jmp 0x180010856
mov r8d, 1
lea rdx, [0x1800477a0]
lea rcx, [rbp + 0x20]
call fcn.180006870
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.180006870
mov r11d, recv
mov qword [rbp + 0x10], r11
mov qword [rbp + 8], r13
mov byte [rbp - 8], 0
mov rdi, qword [rbp + 0x30]
cmp rdi, 0xffffffffffffffff
cmova rdi, r14
cmp rdi, 0xfffffffffffffffe
jbe 0x180010603
lea rcx, str.string_too_long
call fcn.1800212d4
int3
cmp rdi, r11
jbe 0x18001061d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.180003710
mov r11, qword [rbp + 0x10]
jmp 0x18001062a
test rdi, rdi
jne 0x18001062d
mov qword [rbp + 8], r13
mov byte [rbp - 8], dil
test rdi, rdi
setne al
test al, al
je 0x18001066d
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdx, qword [rbp + 0x20]
lea rcx, [rbp - 8]
cmp r11, 0x10
cmovae rcx, qword [rbp - 8]
mov r8, rdi
call fcn.180022620
mov qword [rbp + 8], rdi
lea rax, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rax, qword [rbp - 8]
mov byte [rax + rdi], 0
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
call fcn.180007eb0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.deskInstall.cfg
lea rcx, [rbp - 8]
call fcn.180006870
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800107fe
and eax, 0x10
test al, al
jne 0x1800107fe
mov sil, 1
mov ecx, 0xa0
call fcn.180022378
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1800106e2
mov rcx, rax
call fcn.180008f60
mov rbx, rax
jmp 0x1800106e5
mov rbx, r13
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x50]
call fcn.180003360
mov rcx, rbx
call fcn.18000a0f0
lea r8, str.install
lea rdx, str.config
mov rcx, rbx
call fcn.18000b0c0
mov r12, rax
test rax, rax
je 0x180010782
xor eax, eax
mov rcx, r14
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180010782
xor ecx, ecx
call fcn.1800242c4
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.18002427c
mov edi, dword [rax + 0x1c]
mov rcx, r12
call fcn.180022c70
movsxd rcx, eax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.18002427c
cmp edi, dword [rax + 0x1c]
jne 0x18001079a
mov sil, 1
jmp 0x18001079a
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
xor edx, edx
call fcn.18000ff60
xor sil, sil
test rbx, rbx
je 0x1800107ac
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
movzx edi, sil
cmp qword [rbp + 0x10], 0x10
jb 0x1800107c0
mov rcx, qword [rbp - 8]
call fcn.18002228c
mov qword [rbp + 0x10], recv
mov qword [rbp + 8], r13
mov byte [rbp - 8], 0
cmp qword [rbp + 0x38], 0x10
jb 0x1800107e0
mov rcx, qword [rbp + 0x20]
call fcn.18002228c
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.180007f40
mov eax, edi
jmp 0x180010862
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
movzx edx, sil
call fcn.18000ff60
nop
cmp qword [rbp + 0x10], 0x10
jb 0x180010826
mov rcx, qword [rbp - 8]
call fcn.18002228c
mov qword [rbp + 0x10], recv
mov qword [rbp + 8], r13
mov byte [rbp - 8], 0
cmp qword [rbp + 0x38], 0x10
jb 0x180010846
mov rcx, qword [rbp + 0x20]
call fcn.18002228c
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.180007f40
xor eax, eax
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.1800221a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret