Function at 0x140006c30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp + 0x1f], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x59], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x51], rcx
cmp rbx, 0xffffffffffffffff
je 0x140006e5d
nop word [rax + rax]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006dad
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006d54
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x140006d54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140006d3c
cmp eax, 0xffffffff
je 0x140006db8
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140006cf0
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006d7d
cmp eax, 1
je 0x140006e0f
jmp 0x140006ca0
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x1f]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140006db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140006e29
jmp 0x140006e93
cmp eax, 0x6d
je 0x140006e43
jmp 0x140006dd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Read_Error
lea rcx, [rbp - 0x11]
call fcn.14000f22c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.1400069b0
lea rdx, [0x14003ab18]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
nop
lea rcx, [rbp - 0x49]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
int3
lea rcx, [rbp - 0x49]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
int3
lea rcx, [rbp - 0x49]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
int3
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp - 0x11]
call fcn.14000f22c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.1400069b0
lea rdx, [0x14003ab18]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.unexpected_error
lea rcx, [rbp - 0x11]
call fcn.14000f22c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.1400069b0
lea rdx, [0x14003ab18]
lea rcx, [rbp - 0x49]
call fcn.140013b2c
int3