Function at 0x407120
Capabilities:
Check if file exists

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, rdx
mov rsi, r9
call sub.msvcrt.dll__strdup
mov qword [rbx + 8], rdi
lea rdi, [rbx + 0x18]
mov qword [rbx], rax
mov qword [rbx + 0x10], rsi
call fcn.0044afd0
mov rdx, rdi
mov rcx, rax
call fcn.0044ce60
call fcn.0044afd0
lea rdx, [rbx + 0x128]
mov rcx, rax
call fcn.00463790
mov r8, qword [rbx]
lea rdx, [0x00407010]
xor r9d, r9d
mov rcx, rdi
mov qword [rbx + 0x128], rbx
mov qword [rbx + 0x18], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp 0x44cef0
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
test byte [rcx + 0x58], 0x40
mov rbx, rcx
mov rbp, r8
mov r12d, r9d
mov qword [rsp + 0x48], 0
jne 0x44d325
mov qword [rcx + 0xe8], rdx
mov rcx, r8
call fcn.00449660
test rax, rax
mov qword [rbx + 0x60], rax
je 0x44d34d
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x44d070
test al, 0x40
je 0x44d030
xor edx, edx
mov r9d, 0xffffffff
mov r8, rbp
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r13, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call r13
lea esi, [rax + rax]
movsxd rsi, esi
mov rcx, rsi
call fcn.00449730
test rax, rax
mov rdi, rax
je 0x44d34d
shr rsi, 1
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov r9d, 0xffffffff
mov r8, rbp
mov ecx, 0xfde9
call r13
test eax, eax
je 0x44d050
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d1f2
shr eax, 4
and eax, 1
mov esi, eax
jne 0x44d091
lea rbp, [rsp + 0x50]
mov r8d, 4
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
lea r8, [rbx + 0xf0]
lea rdx, [rsp + 0x48]
mov rcx, rdi
jne 0x44d1d0
call fcn.0044cc10
test eax, eax
jne 0x44d1f2
mov qword [rbx + 0xf8], 0
mov rbp, qword [rsp + 0x48]
mov rcx, rdi
call fcn.00449740
mov rdi, rbp
xor ebp, ebp
jmp 0x44d094
mov edx, eax
or edx, 0x40
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x44cf4a
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x44cf4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0044c5f0
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, str.src_win_fs_event.c
lea rcx, [0x004c9530]
mov r8d, 0xa9
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
jmp 0x44cf42
mov rbp, rdi
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x42000000
mov dword [rsp + 0x20], 3
mov r8d, 7
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0xd8], rax
test rcx, rcx
je 0x44d0ea
call fcn.00449740
mov rax, qword [rbx + 0xd8]
mov qword [rsp + 0x48], 0
cmp rax, 0xffffffffffffffff
je 0x44d2c0
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
mov rdx, qword [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x44d2c0
mov rdx, qword [rbx + 0x108]
test rdx, rdx
je 0x44d330
lea rax, [rbx + 0xa8]
mov r9d, r12d
mov qword [rbx + 0xa8], 0
shr r9d, 2
mov qword [rbx + 0xb0], 0
mov qword [rbx + 0xb8], 0
and r9d, 1
mov qword [rbx + 0xc0], 0
mov rcx, qword [rbx + 0xd8]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov r8d, 0x1000
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x17f
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
je 0x44d2c0
test esi, esi
je 0x44d2d0
test rbp, rbp
je 0x44d2d9
xor eax, eax
mov qword [rbx + 0x100], rbp
mov dword [rbx + 0xe0], 1
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call fcn.0044cc10
test eax, eax
jne 0x44d1f2
lea r8, [rbx + 0xf8]
xor edx, edx
mov rcx, rbp
call fcn.0044cc10
test eax, eax
je 0x44d01c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x44d210
call fcn.00449740
mov qword [rbx + 0x60], 0
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x44d22c
call fcn.00449740
mov qword [rbx + 0xf0], 0
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x44d248
call fcn.00449740
mov qword [rbx + 0xf8], 0
mov rcx, rdi
call fcn.00449740
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x44d26e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xd8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x44d28a
call fcn.00449740
mov qword [rbx + 0x108], 0
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x44d2a9
test al, 1
jne 0x44d300
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x44d2a9
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov ecx, esi
call fcn.0044c5f0
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, rbp
mov esi, eax
jmp 0x44d1fa
test rbp, rbp
je 0x44d1ad
lea rdx, str.src_win_fs_event.c
lea rcx, str.is_path_dir___pathw___NULL_:_pathw__NULL
mov r8d, 0x11d
call fcn.0048c6c0
jmp 0x44d1ad
lea rdx, str.src_win_fs_event.c
lea rcx, [0x004c9530]
mov r8d, 0x13f
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x44d2a9
jmp 0x44d295
mov eax, 0xfffff019
jmp 0x44d05d
mov ecx, 0x1000
call fcn.00449730
test rax, rax
mov rdx, rax
mov qword [rbx + 0x108], rax
jne 0x44d124
lea rdx, [0x004c9510]
mov ecx, 0xe
call fcn.0044c530
nop
nop