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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp - 0x40]
test rax, rax
je 0x1800101eb
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 - 0x40]
test rax, rax
je 0x1800101e5
call rax
jmp 0x1800101eb
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rbp - 0x40]
cmp ax, 9
je 0x180010202
cmp ax, 6
lea rax, [0x180047ef0]
jne 0x180010209
lea rax, [0x180047eec]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.180007630
nop
lea rcx, [rbp + 0x18]
call fcn.1800100f0
nop
mov r8d, recv
mov qword [rbp + 8], r8
mov qword [rbp], rsi
mov byte [rbp - 0x10], 0
mov rdi, qword [rbp + 0x28]
or r12, 0xffffffffffffffff
cmp rdi, r12
cmova rdi, r12
cmp rdi, 0xfffffffffffffffe
jbe 0x180010257
lea rcx, str.string_too_long
call fcn.1800212d4
int3
cmp rdi, r8
jbe 0x180010271
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.180003710
mov r8, qword [rbp + 8]
jmp 0x18001027e
test rdi, rdi
jne 0x180010281
mov qword [rbp], rsi
mov byte [rbp - 0x10], dil
test rdi, rdi
setne al
test al, al
je 0x1800102c1
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp - 0x10]
cmp r8, 0x10
cmovae rcx, qword [rbp - 0x10]
mov r8, rdi
call fcn.180022620
mov qword [rbp], rdi
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rax, qword [rbp - 0x10]
mov byte [rax + rdi], 0
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.install.cfg
lea rcx, [rbp - 0x10]
call fcn.180006870
cmp qword [rbp + 0x28], 0
ja 0x18001032f
cmp qword [rbp + 8], 0x10
jb 0x1800102ee
mov rcx, qword [rbp - 0x10]
call fcn.18002228c
mov qword [rbp + 8], recv
mov qword [rbp], rsi
mov byte [rbp - 0x10], 0
cmp qword [rbp + 0x30], 0x10
jb 0x18001030e
mov rcx, qword [rbp + 0x18]
call fcn.18002228c
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x28], rsi
mov byte [rbp + 0x18], 0
lea rcx, [rsp + 0x20]
call fcn.180007f40
xor eax, eax
jmp 0x180010412
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800103c4
and eax, 0x10
test al, al
jne 0x1800103c4
mov ecx, 0xa0
call fcn.180022378
mov qword [rbp - 0x50], rax
test rax, rax
je 0x18001036f
mov rcx, rax
call fcn.180008f60
mov rbx, rax
jmp 0x180010372
mov rbx, rsi
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
xor eax, eax
mov rcx, r12
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 rcx, rax
call fcn.180022c70
mov edi, eax
jmp 0x1800103c6
mov edi, esi
cmp qword [rbp + 8], 0x10
jb 0x1800103d6
mov rcx, qword [rbp - 0x10]
call fcn.18002228c
mov qword [rbp + 8], recv
mov qword [rbp], rsi
mov byte [rbp - 0x10], 0
cmp qword [rbp + 0x30], 0x10
jb 0x1800103f6
mov rcx, qword [rbp + 0x18]
call fcn.18002228c
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x28], rsi
mov byte [rbp + 0x18], 0
lea rcx, [rsp + 0x20]
call fcn.180007f40
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1800221a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret