Function at 0x1400cb610
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov edi, r12d
mov qword [rsp + 0x48], r12
mov ebx, r12d
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x180]
call fcn.140141ad0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.140141ad0
xor r9d, r9d
mov edx, 0x104
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x180]
call fcn.14010c600
test eax, eax
je 0x1400cb891
mov rdx, qword [r15 + 0x28]
add rdx, 0xce00
mov r8b, 1
lea rcx, [rsp + 0x60]
call fcn.1400f3480
nop
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 0xb0]
mov dword [rcx + 0xa7c8], r12d
mov rcx, qword [r15 + 0x28]
mov rax, qword [rcx]
lea r8d, [r12 + 1]
lea rdx, str.fileupdate
call qword [rax + 0x20]
mov rcx, qword [r15 + 0x28]
mov rax, qword [rcx]
lea edx, [r12 + 8]
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x60]
call fcn.1400f34d0
lea edx, [r12 + 0x5c]
lea rcx, [rsp + 0x180]
call fcn.1401421b8
test rax, rax
jne 0x1400cb7c0
mov ebx, 0x64
mov dword [rsp + 0x40], ebx
mov rcx, qword [r15 + 0x28]
mov rax, qword [rcx]
lea edx, [rbx - 0x5c]
call qword [rax + 0x18]
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 0xb0]
add rcx, 0x247c
lea r8, [rsp + 0x70]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [r8], al
lea rcx, [rcx + 1]
lea r8, [r8 + 1]
test al, al
jne 0x1400cb750
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.1401421b8
test rax, rax
je 0x1400cb7c0
mov ebx, 0xc8
mov dword [rsp + 0x40], ebx
mov byte [rax + 1], 0
lea rcx, [rsp + 0x70]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400cb790
lea r8, [rsp + 0x180]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400cb7b0
cmp byte [rsp + 0x70], 0
jne 0x1400cb7e4
mov rcx, r12
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x180]
mov byte [rsp + rcx + 0x70], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400cb7d0
inc ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400cb891
inc ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], r12d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [r14], eax
test eax, eax
je 0x1400cb888
inc ebx
mov dword [rsp + 0x40], ebx
mov ecx, eax
call fcn.140113934
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, dword [r14]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400cb888
or ebx, 0xffffffff
mov dword [rsp + 0x40], ebx
mov rcx, rdi
call fcn.1401139ac
mov rdi, r12
mov qword [rsp + 0x48], r12
mov dword [r14], r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r10, qword [r15]
mov dword [rsp + 0x30], ebx
mov eax, dword [r14]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
lea r8, str.GetSetupFileContent__s__0x_p__d____d_
mov edx, 4
mov rcx, r15
call qword [r10 + reloc.WS2_32.dll_recv]
nop
mov rax, rdi
jmp 0x1400cb8c7
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret