Function at 0x140125590
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov rsi, rcx
test r8, r8
je 0x14012571d
js 0x1401258c4
mov rdi, r8
mov rbx, rdx
movzx eax, byte [0x14042baa8]
xor ecx, ecx
mov rdx, r8
call fcn.140121850
test rax, rax
je 0x1401258c9
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.1402e6f51
movzx eax, byte [0x14042baa8]
xor ecx, ecx
mov rdx, rdi
call fcn.140121850
test rax, rax
je 0x1401258d6
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.1402e6f51
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x40], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rcx, [rbp - 0x58]
mov r8d, 1
call fcn.14011c7a0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x240], rax
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x210]
mov qword [rbp + 0x248], rdx
call fcn.140119470
mov rax, qword [rbp + 0x210]
mov r15, qword [rbp + 0x218]
mov rcx, rax
neg rcx
jo 0x1401256d1
mov rcx, qword [rbp + 0x220]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rcx
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp - 0x58]
call fcn.14011b410
mov r12, qword [rbp + 0x1f8]
add dword [rax], eax
add byte [rbx + rcx*4 - 0x43], cl
add byte [rdx], al
add al, byte [rax]
add byte [rcx + rcx*4 - 0x20], cl
neg rax
jno 0x140125745
mov rdi, qword [rbp + 0x250]
mov qword [rsi], r15
mov dword [rsi + 0x10], 2
cmp qword [rbp + 0x240], 0
je 0x1401256fd
mov edx, 1
mov rcx, qword [rbp + 0x248]
mov ecx, dword [rbp + 0x248]
call fcn.140074820
mov edx, 1
mov rcx, rdi
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop rsi
pop r15
pop rbp
jmp fcn.140074820
movabs rax, 0x300000002
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rbx, [rbp - 0x58]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x250]
je 0x14012580e
mov r13, rax
movzx eax, byte [0x14042baa8]
mov edx, 0x30
xor ecx, ecx
call fcn.140121850
test rax, rax
je 0x1401258ec
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
lea rcx, [rsi + 0x14]
lea rdx, [rbp - 0x58]
mov r8d, 0x250
call fcn.1402e6f51
mov qword [rsi], rbx
mov qword [rsi + 8], r13
mov dword [rsi + 0x10], 1
test r12, r12
je 0x1401257ea
mov edx, 2
mov rcx, r15
call fcn.140074820
cmp qword [rbp + 0x240], 0
je 0x140125731
mov edx, 1
mov rcx, qword [rbp + 0x248]
call fcn.140074820
jmp 0x140125731
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x140125873
movzx eax, byte [0x14042baa8]
mov edx, 0x30
xor ecx, ecx
call fcn.140121850
test rax, rax
je 0x140125912
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
test r12, r12
jne 0x1401257dd
jmp 0x1401257ea
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
test r12, r12
je 0x140125897
mov edx, 2
mov rcx, r15
call fcn.140074820
cmp qword [rbp + 0x240], 0
je 0x1401258b2
mov edx, 1
mov rcx, qword [rbp + 0x248]
call fcn.140074820
mov edx, 1
mov rcx, r14
call fcn.140074820
jmp 0x140125731
call fcn.140061060
mov ecx, 1
mov rdx, rdi
call fcn.1402e7e80
mov byte [rbp + 0x25f], 1
mov ecx, 1
mov rdx, rdi
call fcn.1402e7e80
jmp 0x14012592f
mov qword [rbp + 0x228], r13
mov qword [rbp + 0x230], r12
mov qword [rbp + 0x238], r15
mov ecx, 8
mov edx, 0x30
call fcn.1402e7ea0
jmp 0x14012592f
mov qword [rbp + 0x230], r12
mov qword [rbp + 0x238], r15
mov ecx, 8
mov edx, 0x30
call fcn.1402e7ea0
ud2