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

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x10c0
call fcn.1800b3cb0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x10f0], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov rax, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18000421b
cmp rax, 0xffffffffffffffff
je 0x18000421b
mov dword [rsp + 0x44], ebp
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov byte [rsp + 0xa0], bpl
xor edx, edx
mov r8d, 0x100f
lea rcx, [rsp + 0xa1]
call fcn.18009e990
mov dword [rsp + 0x40], ebp
cmp esi, 0x1000
ja 0x18000405e
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000402a
cmp dword [rsp + 0x40], esi
je 0x1800040e1
mov qword [rdi + 0x20], sendto
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor r8d, r8d
lea rdx, [0x1800cda5f]
mov rcx, rdi
call fcn.18000f0f0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180004255
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, 0x800
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800041ea
cmp dword [rsp + 0x40], 0x800
jne 0x1800041ea
lea edx, [rsi - 0x800]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, 0x800
lea rdx, [rsp + 0x8a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800041b9
cmp dword [rsp + 0x40], 0x800
jne 0x1800041b9
mov byte [rsp + 0x80], 0
xor eax, eax
mov qword [rsp + 0x81], rax
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov dword [rsp + 0x99], eax
mov word [rsp + 0x9d], ax
mov byte [rsp + 0x9f], al
mov r9d, esi
mov r8d, dword [rsp + 0x44]
lea rdx, str._08x_08x
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x10a0]
lea rcx, [rsp + 0x80]
mov rax, qword [rcx]
mov qword [r11], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
mov r8d, 0x1010
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.180081dec
nop
mov r9d, 0x20
lea r8d, [r9 - 0x16]
mov rdx, rdi
mov rcx, rax
call fcn.18000cbb0
nop
cmp qword [rsp + 0x68], 0x10
jb 0x180004195
mov rcx, qword [rsp + 0x50]
call fcn.18009a864
mov qword [rsp + 0x68], socket
mov qword [rsp + 0x60], rbp
mov byte [rsp + 0x50], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180004255
mov qword [rdi + 0x20], sendto
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor r8d, r8d
lea rdx, [0x1800cda5f]
mov rcx, rdi
call fcn.18000f0f0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180004255
mov qword [rdi + 0x20], sendto
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor r8d, r8d
lea rdx, [0x1800cda5f]
mov rcx, rdi
call fcn.18000f0f0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180004255
mov qword [rdi + 0x20], sendto
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor r8d, r8d
lea rdx, [0x1800cda5f]
mov rcx, rdi
call fcn.18000f0f0
nop
cmp rbx, 0xffffffffffffffff
je 0x180004252
test rbx, rbx
je 0x180004252
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0x10f0]
add rsp, 0x10c0
pop rdi
pop rsi
pop rbp
ret