Function at 0x180015c40
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x40]
mov qword [rsp], rax
mov rax, 0xbc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x180015c58
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rdx
mov qword [rbp + 0xa0], r8
mov byte [rbp + 0x14], 0
mov rax, qword [rbp + 0x90]
mov edx, 0x80000000
mov ecx, 1
mov ebx, 0
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp + 0x58], ecx
mov rcx, rax
mov eax, dword [rbp + 0x58]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x180015d28
mov eax, 0
mov dword [rbp + 0x2c], eax
lea rax, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov eax, dword [rbp + 0x2c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rax, qword [rbp + 0x48]
mov edx, 0
mov rcx, qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rbp + 0x60], rcx
mov rcx, rax
mov rax, qword [rbp + 0x60]
call rax
mov dword [rbp + 0x18], eax
mov rax, qword [rbp + 0xa0]
mov edx, dword [rbp + 0x18]
mov dword [rax], edx
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax]
mov ecx, eax
call fcn.1800106cc
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x50]
mov qword [rax], rdx
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
test rax, rax
jne 0x180015dc6
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1c], eax
mov eax, 0
mov dword [rbp + 0x30], eax
lea rax, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov eax, dword [rbp + 0x30]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov byte [rbp + 0x14], 1
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x98]
mov rdx, qword [rdx]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
lea rbx, [rbp + 8]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x68], ecx
mov rcx, rax
mov eax, dword [rbp + 0x68]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
test eax, eax
jne 0x180015e89
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
test rax, rax
jne 0x180015e28
mov rax, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rax
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, rax
call fcn.1800622b0
mov rax, qword [rbp + 0x98]
mov qword [rax], 0
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x28], eax
mov eax, 0
mov dword [rbp + 0x34], eax
lea rax, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov eax, dword [rbp + 0x34]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x24], eax
mov eax, 1
mov dword [rbp + 0x38], eax
lea rax, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov eax, dword [rbp + 0x38]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x80]
pop rbp
ret