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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r15, rdx
mov r13, rcx
xor r12d, r12d
mov edi, r12d
mov ebx, r12d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], r12w
or r8d, 0xffffffff
mov rdx, qword [0x1404435d0]
lea rcx, [rsp + 0x60]
call fcn.1400c2e90
nop
mov rdx, qword [str.h6D_]
cmp word [rdx], r12w
jne 0x1400c05d0
test r15, r15
je 0x1400c0525
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400c2d30
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c0577
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400c07a8
call fcn.14027b988
jmp 0x1400c07a8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400c055a
mov dword [rsp + 0x40], r12d
mov ecx, ebx
call fcn.140125a94
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], ebx
je 0x1400c078b
mov rcx, rdi
call fcn.140125e14
mov rdi, r12
jmp 0x1400c055a
lea rcx, [rsp + 0x60]
call fcn.1400c2d30
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400c05ec
mov rsi, qword [0x140457478]
jmp 0x1400c0665
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
mov word [rbp + 0x88], r12w
or r8d, 0xffffffff
mov rdx, qword [0x1404436f0]
lea rcx, [rbp + 0x80]
call fcn.1400c2e90
nop
mov rcx, qword [rbp + 0x80]
call fcn.1400c29c0
mov r14, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x60]
call fcn.1400d21a0
mov rsi, rax
test r14, r14
je 0x1400c064d
mov rcx, r14
call fcn.140125e14
nop
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
cmp rcx, rax
je 0x1400c0665
call fcn.14027b988
test rsi, rsi
je 0x1400c055a
mov dword [rsp + 0x40], r12d
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov word [rbp - 8], r12w
or r8d, 0xffffffff
mov rdx, r15
lea rcx, [rbp - 0x10]
call fcn.1400c2e90
nop
lea r8, [0x14034b08c]
lea rdx, [0x14034b0a4]
lea rcx, [rbp - 0x10]
call fcn.1400c3270
cmp dword [rsi], 1
je 0x1400c06b9
mov dword [0x140457d08], 0x80000
jmp 0x1400c06e1
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rsi + 8]
call fcn.1400d1ec0
mov dword [0x140457d08], eax
test eax, eax
je 0x1400c06fc
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400c055a
call fcn.14027b988
jmp 0x1400c055a
mov ebx, dword [rbp + 0x33c]
test ebx, ebx
je 0x1400c06e1
mov ecx, ebx
call fcn.140125a94
mov rdi, rax
cmp dword [rsi], 1
je 0x1400c0721
mov dword [0x140457d08], 0x80000
jmp 0x1400c0745
mov r9d, ebx
mov r8, rdi
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400d1fc0
mov dword [0x140457d08], eax
test eax, eax
je 0x1400c0766
cmp eax, 0x600
je 0x1400c0766
mov rcx, rdi
call fcn.140125e14
mov rdi, r12
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x1400c06e1
mov rcx, rsi
call fcn.1400d2330
jmp 0x1400c06e1
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400c0778
mov rcx, rsi
call fcn.1400d2330
nop
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400c078b
call fcn.14027b988
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400c079f
call fcn.14027b988
test rdi, rdi
jne 0x1400c082e
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c082e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400c082e
mov dword [rsp + 0x44], r12d
mov ecx, ebx
call fcn.140125a94
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], ebx
je 0x1400c082e
mov rcx, rdi
call fcn.140125e14
mov rdi, r12
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov rbx, rax
mov rcx, rdi
call fcn.140125e14
lea rcx, [r13 + 0x5c0]
mov rdx, rbx
call fcn.1400c2b50
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret