Function at 0x14010c97c
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc8]
mov eax, 0x1c8
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0xb0], rax
and qword [r9], 0
xor eax, eax
mov rdi, qword [rbp + 0x130]
mov r15, r8
mov qword [rbp - 0x60], r9
mov rbx, rdx
mov qword [rbp - 0x78], rdx
mov r12, rcx
mov qword [rsp + 0x38], rcx
test r8, r8
je 0x14010d08d
and dword [rsp + 0x40], eax
mov rcx, rdi
mov dword [rsp + 0x30], eax
xor r14d, r14d
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
call qword [case.0x14004a846.0]
mov rcx, qword [rdi]
mov dword [rsp + 0x54], eax
mov rax, qword [rcx + 0x28]
mov rcx, rdi
call qword [case.0x14004a846.0]
mov rcx, qword [rdi]
mov r13, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x18]
mov rcx, rdi
call qword [case.0x14004a846.0]
mov edx, 0x10000
test eax, eax
je 0x14010ca30
movzx ecx, bx
sub edx, ecx
mov eax, edx
mov ecx, r15d
cmp rax, r15
mov rsi, r15
cmovb ecx, edx
mov eax, ecx
sub rsi, rax
mov dword [rsp + 0x50], ecx
add rsi, 0x1ffff
mov eax, 4
shr rsi, 0x10
mov rcx, rdi
cmp esi, eax
cmovg esi, eax
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
call qword [case.0x14004a846.0]
test eax, eax
jne 0x14010ca7a
mov eax, 0x40
cmp esi, eax
cmovg esi, eax
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d034
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d034
xor r12d, r12d
movsxd rax, esi
mov qword [rsp + 0x78], rax
test esi, esi
jle 0x14010d007
lea rax, [rbp - 0x14]
xor esi, esi
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x18]
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x68], rax
lea rbx, [rbp]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x10]
lea rax, [rbp - 8]
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x58], rax
lea r13, [rbp + 4]
test r15, r15
je 0x14010cd47
cmp r14d, r12d
jne 0x14010cb7a
and dword [rcx + 0x14], 0
mov r9d, 0x1f0003
and qword [rcx], 0
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
mov rcx, qword [rbp - 0x80]
mov qword [rcx], rax
test rax, rax
jne 0x14010cb5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14010d02f
mov rbx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
inc r14d
mov rax, qword [rcx]
add rcx, 0x38
mov qword [rbp - 0x80], rcx
mov qword [rdx], rax
add rdx, 8
mov qword [rbp - 0x68], rdx
cmp dword [rsp + 0x54], 0
je 0x14010cb8c
and dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x50]
jmp 0x14010cb9a
mov ecx, 0x10000
mov eax, r15d
cmp r15, rcx
cmova eax, ecx
mov r8, qword [rsp + 0x48]
sub r15, rax
mov dword [rbx], eax
mov edx, r12d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
mov edx, dword [rbx]
mov r9, qword [rbp - 0x78]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
and dword [rsp + 0x44], 0
mov qword [rcx], rax
mov rcx, qword [rsp + 0x60]
mov qword [rcx], r8
add r8, rdx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x48], r8
mov r8, qword [rsp + 0x70]
mov dword [rcx], r9d
mov rcx, r9
shr rcx, 0x20
add r9, rdx
mov dword [r8], ecx
mov r8d, edx
mov qword [rbp - 0x78], r9
mov rdx, rax
lea r9, [rbp - 0x28]
movsxd rcx, r12d
imul rcx, rcx, 0x38
mov qword [rbp - 0x58], rcx
add rcx, r9
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x44]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010cc4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14010cd3d
inc dword [rsp + 0x30]
mov dword [r13], 1
jmp 0x14010cc79
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x14004a846.0]
test eax, eax
je 0x14010cc8f
test rsi, rsi
je 0x14010cc8f
mov rcx, qword [rbp + rsi*8 - 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [r13], 2
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
jmp 0x14010ccf7
mov eax, dword [rbx]
cmp dword [rsp + 0x44], eax
jne 0x14010cd3d
mov rax, qword [rdi]
lea rdx, [rbp - 0x30]
add rdx, qword [rbp - 0x58]
mov rcx, rdi
mov r8, qword [rbp - 0x60]
mov rax, qword [rax + 0x10]
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d02f
mov r9, qword [rsp + 0x58]
dec r12d
mov r8, qword [rsp + 0x60]
sub r9, 0x38
mov rdx, qword [rsp + 0x68]
sub r8, 0x38
mov rax, qword [rsp + 0x70]
sub rdx, 0x38
mov rbx, qword [rbp - 0x70]
sub rax, 0x38
dec rsi
sub r13, 0x38
sub rbx, 0x38
add r9, 0x38
add r8, 0x38
add rdx, 0x38
mov qword [rsp + 0x58], r9
add rax, 0x38
mov qword [rsp + 0x60], r8
add rbx, 0x38
mov qword [rsp + 0x68], rdx
inc r12d
mov qword [rsp + 0x70], rax
inc rsi
mov qword [rbp - 0x70], rbx
add r13, 0x38
cmp rsi, qword [rsp + 0x78]
jge 0x14010cd47
mov rcx, qword [rbp - 0x80]
jmp 0x14010cb04
mov ebx, 0x80004005
jmp 0x14010d02f
cmp r14d, r12d
je 0x14010cd67
dec r14d
movsxd rax, r14d
imul rbx, rax, 0x38
mov rcx, qword [rbp + rbx - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp + rbx - 0x10], 0
mov eax, dword [rsp + 0x30]
test eax, eax
jle 0x14010d002
xor esi, esi
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x14004a846.0]
test eax, eax
je 0x14010cddc
imul rax, rsi, 0x38
cmp dword [rbp + rax + 4], 1
jne 0x14010cddc
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d02f
mov rbx, qword [rbp + rsi*8 - 0x50]
call fcn.140100fa0
mov r9b, al
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rbx
call fcn.14010ffa4
test eax, eax
jne 0x14010cd3d
mov r12d, dword [rsp + 0x40]
cmp r12d, 0xffffffff
jne 0x14010ce0e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d02f
and dword [rsp + 0x20], 0
lea rdx, [rbp - 0x50]
or r9d, 0xffffffff
mov ecx, r14d
call fcn.140110138
mov r12d, eax
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x28]
and dword [rsp + 0x44], 0
lea r8, [rsp + 0x44]
movsxd rax, r12d
xor r9d, r9d
imul r13, rax, 0x38
mov qword [rsp + 0x78], rax
add rdx, r13
mov dword [rbp + r13 + 4], 2
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14010ce62
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14010d02f
mov eax, dword [rbp + r13]
cmp dword [rsp + 0x44], eax
jne 0x14010cd3d
mov rax, qword [rdi]
mov rcx, rdi
mov ebx, dword [rsp + 0x30]
dec ebx
mov dword [rsp + 0x30], ebx
mov rax, qword [rax + 0x20]
call qword [case.0x14004a846.0]
test eax, eax
je 0x14010ce9a
cmp dword [rsp + 0x40], r12d
jne 0x14010cffa
cmp dword [rbp + r13 + 4], 2
jne 0x14010cffa
mov r13, qword [rsp + 0x78]
mov rax, qword [rdi]
lea rdx, [rbp - 0x30]
mov r8, qword [rbp - 0x60]
movsxd rcx, r12d
imul rcx, rcx, 0x38
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rcx
add rdx, rcx
mov rcx, rdi
call qword [case.0x14004a846.0]
mov ebx, eax
test eax, eax
js 0x14010d02f
mov eax, dword [rsp + 0x40]
lea rcx, [rsi + 1]
imul rbx, r13, 0x38
xor esi, esi
movsxd r8, r14d
and dword [rbp + rbx + 4], 0
cmp rcx, r8
cmovne rsi, rcx
inc eax
xor edx, edx
cmp rcx, r8
cmovne edx, eax
mov dword [rsp + 0x40], edx
test r15, r15
je 0x14010cfe1
mov r8, qword [rsp + 0x48]
mov ecx, 0x10000
cmp r15, rcx
mov eax, r15d
mov edx, r12d
cmova eax, ecx
mov ecx, eax
mov rax, qword [rdi]
sub r15, rcx
mov dword [rbp + rbx], ecx
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
mov edx, dword [rbp + rbx]
lea r9, [rbp - 0x28]
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x38]
mov qword [rbp + rbx - 0x30], rcx
add rcx, rdx
mov qword [rsp + 0x48], rcx
mov rcx, r8
shr rcx, 0x20
mov dword [rbp + rbx - 0x14], ecx
mov rcx, qword [rsp + 0x78]
add rcx, r9
mov dword [rbp + rbx - 0x18], r8d
add r8, rdx
mov qword [rsp + 0x20], rcx
mov qword [rbp - 0x78], r8
mov rcx, r12
mov r8d, edx
mov qword [rbp + rbx - 8], rax
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010cfca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14010d0b0
mov edx, dword [rsp + 0x40]
mov dword [rbp + rbx + 4], 1
mov ebx, dword [rsp + 0x30]
inc ebx
mov dword [rsp + 0x30], ebx
jmp 0x14010cfe5
mov rcx, qword [rbp + r13*8 - 0x50]
mov dword [rbp + rbx + 4], 2
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
imul rax, rsi, 0x38
mov r12d, edx
mov r13, rsi
cmp dword [rbp + rax + 4], 2
je 0x14010ceab
test ebx, ebx
jg 0x14010cd75
mov r13, qword [rsp + 0x48]
test r15, r15
jne 0x14010cd3d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x28]
call qword [case.0x14004a846.0]
sub rax, r13
mov ebx, 0x80004005
neg rax
sbb eax, eax
and ebx, eax
mov r12, qword [rsp + 0x38]
xor r15d, r15d
movsxd rsi, r14d
test r14d, r14d
jle 0x14010d08b
lea rdi, [rbp - 0x10]
cmp dword [rdi + 0x14], 1
jne 0x14010d070
and dword [rsp + 0x50], 0
lea rdx, [rbp - 0x28]
movsxd rax, r15d
lea r8, [rsp + 0x50]
imul rcx, rax, 0x38
mov r9d, 1
add rdx, rcx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14010d07e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
add rdi, 0x38
sub rsi, 1
jne 0x14010d043
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 0x80004005
jmp 0x14010d034