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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x6e8]
sub rsp, 0x7d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov rbx, rcx
lea rax, [rbp + 0x198]
mov qword [rbp + 0x190], rax
xor edi, edi
mov word [rbp + 0x198], di
lea rax, [rbp + 0x220]
mov qword [rbp + 0x218], rax
mov word [rbp + 0x220], di
lea rax, [rbp + 0x2a8]
mov qword [rbp + 0x2a0], rax
mov word [rbp + 0x2a8], di
lea rax, [rbp + 0x330]
mov qword [rbp + 0x328], rax
mov word [rbp + 0x330], di
mov qword [rbp + 0x3ec], rdi
lea rax, [rbp + 0x410]
mov qword [rbp + 0x408], rax
mov word [rbp + 0x410], di
lea rcx, [rbp + 0x190]
call fcn.1400befb0
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x190]
call fcn.1400be4f0
lea rax, [rbp + 0x78]
mov qword [rbp + 0x70], rax
mov word [rbp + 0x78], di
or r8d, 0xffffffff
mov rdx, qword [rbp + 0x2a0]
lea rcx, [rbp + 0x70]
call fcn.1400c76f0
nop
mov ebx, edi
mov esi, edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], di
or r8d, 0xffffffff
mov rdx, qword [0x14044b580]
lea rcx, [rsp + 0x50]
call fcn.1400c76f0
nop
mov rdx, qword [0x14044b610]
lea rcx, [rsp + 0x50]
cmp word [rdx], di
jne 0x1401002e5
mov rdx, qword [rbp + 0x70]
call fcn.1400c7590
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14010028d
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x1401004b8
call fcn.1402804a8
jmp 0x1401004b8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x140100270
mov dword [rsp + 0x40], edi
mov ecx, esi
call fcn.14012a2dc
mov rbx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], esi
je 0x14010049b
mov rcx, rbx
call fcn.14012a2d4
mov rbx, rdi
jmp 0x140100270
call fcn.1400c7590
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1401002fc
mov r14, qword [0x14045f1f8]
jmp 0x140100374
lea rax, [rbp + 0x108]
mov qword [rbp + 0x100], rax
mov word [rbp + 0x108], di
or r8d, 0xffffffff
mov rdx, qword [0x14044b6a0]
lea rcx, [rbp + 0x100]
call fcn.1400c76f0
nop
mov rcx, qword [rbp + 0x100]
call fcn.1400c7220
mov r15, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x50]
call fcn.1400eef60
mov r14, rax
test r15, r15
je 0x14010035c
mov rcx, r15
call fcn.14012a2d4
nop
lea rax, [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
cmp rcx, rax
je 0x140100374
call fcn.1402804a8
test r14, r14
je 0x140100270
mov dword [rsp + 0x40], edi
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x18], di
or r8d, 0xffffffff
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.1400c76f0
nop
lea r8, [0x140351bf4]
lea rdx, [0x140351bcc]
lea rcx, [rbp - 0x20]
call fcn.1400c7ad0
cmp dword [r14], 1
je 0x1401003c8
mov dword [0x14045fef0], 0x80000
jmp 0x1401003f0
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [r14 + 8]
call fcn.1400eec80
mov dword [0x14045fef0], eax
test eax, eax
je 0x14010040b
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140100270
call fcn.1402804a8
jmp 0x140100270
mov esi, dword [rbp + 0x6bc]
test esi, esi
je 0x1401003f0
mov ecx, esi
call fcn.14012a2dc
mov rbx, rax
cmp dword [r14], 1
je 0x140100431
mov dword [0x14045fef0], 0x80000
jmp 0x140100455
mov r9d, esi
mov r8, rbx
mov edx, dword [rsp + 0x40]
mov rcx, qword [r14 + 8]
call fcn.1400eed80
mov dword [0x14045fef0], eax
test eax, eax
je 0x140100476
cmp eax, 0x600
je 0x140100476
mov rcx, rbx
call fcn.14012a2d4
mov rbx, rdi
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x1401003f0
mov rcx, r14
call fcn.1400ef0f0
jmp 0x1401003f0
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140100488
mov rcx, r14
call fcn.1400ef0f0
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14010049b
call fcn.1402804a8
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x1401004af
call fcn.1402804a8
test rbx, rbx
jne 0x140100543
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14010053e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x14010053e
mov dword [rsp + 0x44], edi
mov ecx, esi
call fcn.14012a2dc
mov rbx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], esi
je 0x14010053e
mov rcx, rbx
call fcn.14012a2d4
mov rbx, rdi
test rbx, rbx
je 0x140100559
mov edx, esi
mov rcx, rbx
call fcn.140100620
mov rdi, rax
mov rcx, rbx
call fcn.14012a2d4
nop
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x14010056c
call fcn.1402804a8
nop
lea rax, [rbp + 0x410]
mov rcx, qword [rbp + 0x408]
cmp rcx, rax
je 0x140100584
call fcn.1402804a8
lea rax, [rbp + 0x330]
mov rcx, qword [rbp + 0x328]
cmp rcx, rax
je 0x14010059c
call fcn.1402804a8
lea rax, [rbp + 0x2a8]
mov rcx, qword [rbp + 0x2a0]
cmp rcx, rax
je 0x1401005b4
call fcn.1402804a8
lea rax, [rbp + 0x220]
mov rcx, qword [rbp + 0x218]
cmp rcx, rax
je 0x1401005cc
call fcn.1402804a8
lea rax, [rbp + 0x198]
mov rcx, qword [rbp + 0x190]
cmp rcx, rax
je 0x1401005e4
call fcn.1402804a8
mov rax, rdi
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.14012a2b0
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret