Function at 0x140003b80
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x88
mov rbx, rdx
xor edi, edi
mov r12d, 0x2000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [r12 + 0x10]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x140003bdb
mov r15, qword [rbp + 0x7f]
lea edi, [rax + 1]
jmp 0x140003dc2
and qword [rbp - 0x31], rdi
xor eax, eax
mov r13d, 0x18
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
call fcn.140002c30
lea r14d, [r13 - 0x17]
xor r9d, r9d
mov r8d, r14d
mov edx, r14d
xor ecx, ecx
mov qword [rbp + 0x7f], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
je 0x140003d9c
mov qword [rbp - 0x19], rax
test rbx, rbx
je 0x140003d19
and dword [rbp - 0x39], 0
lea eax, [r13 + 0x1000]
cmp r12d, eax
jae 0x140003c6d
add r12d, 0x2000
lea ebx, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, ebx
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x140003d07
mov rbx, qword [rbp + 0x6f]
mov rsi, rax
lea rax, [rbp - 0x31]
mov edx, r13d
lea r9, [rbp - 0x39]
mov r8d, 0x1000
mov rcx, rbx
add rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call fcn.140002c30
mov edx, dword [rbp + 0x77]
sub rax, qword [rbp + 0x7f]
cmp rax, rdx
jg 0x140003d0f
test edi, edi
jne 0x140003cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003d07
mov edx, 0x64
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
call fcn.140002c30
mov edx, dword [rbp + 0x77]
sub rax, qword [rbp + 0x7f]
cmp rax, rdx
jg 0x140003d0f
cmp ebx, 0x102
je 0x140003cb3
mov rbx, qword [rbp + 0x6f]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x31]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140003d19
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x140003d19
add r13d, eax
jmp 0x140003c2a
mov edi, r14d
jmp 0x140003d9c
mov edi, 6
jmp 0x140003d9c
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
mov dword [rbp + 0x7f], r13d
call fcn.140001cec
mov edi, eax
test eax, eax
jne 0x140003d9c
mov ecx, dword [rbp + 0x7f]
and dword [rsi + 0x14], eax
lea eax, [rcx - 0x18]
add ecx, 0xfffffff0
mov dword [rbp + 0x7f], ecx
lea rcx, [rbp - 0x11]
mov dword [rsi + 0x10], eax
call fcn.140002c6c
lea r9, [rbp + 0x7f]
lea r8, [rsi + 0x10]
lea rcx, [rbp - 0xf]
mov rdx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
call fcn.140001b80
mov edi, eax
test eax, eax
jne 0x140003d9c
mov ebx, dword [rbp + 0x7f]
mov rdx, qword [rbp + 0x67]
lea rax, [rbp - 0x35]
lea r9d, [rbx + 0x10]
mov r8, rsi
mov ecx, r14d
mov qword [rsp + 0x20], rax
call fcn.1400039c0
mov rcx, qword [rbp + 0x67]
lea edx, [rbx + 0x10]
mov edi, eax
call fcn.140003de8
test rsi, rsi
je 0x140003dc2
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x140003dd0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret