Function at 0x4cd0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [esp + 0x250]
mov dword [esp + 0x24], 0
test byte [ebx + 0x2c], 0x40
jne 0x4cd520
mov eax, dword [esp + 0x254]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x258]
mov dword [esp], eax
call fcn.004c9510
test eax, eax
mov dword [ebx + 0x30], eax
je 0x4cd54a
mov eax, dword [ebx + 0x2c]
test al, 1
jne 0x4cd270
test al, 0x40
je 0x4cd234
mov eax, dword [esp + 0x258]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
mov ebp, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
call ebp
mov edi, eax
lea eax, [eax + eax]
sub esp, 0x18
mov dword [esp], eax
call fcn.004c95e0
test eax, eax
mov esi, eax
je 0x4cd54a
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x258]
and edi, 0x7fffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call ebp
sub esp, 0x18
test eax, eax
je 0x4cd250
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4cd3f1
shr eax, 4
and eax, 1
mov edi, eax
jne 0x4cd294
lea ebp, [esp + 0x28]
mov dword [esp + 8], 2
mov dword [esp], esi
mov dword [esp + 4], ebp
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
sub esp, 0xc
test eax, eax
lea ecx, [ebx + 0x7c]
lea edx, [esp + 0x24]
mov eax, esi
jne 0x4cd3d1
call fcn.004cce20
test eax, eax
jne 0x4cd3f1
mov dword [ebx + 0x80], 0
mov ebp, dword [esp + 0x24]
mov dword [esp], esi
call fcn.004c95f0
mov esi, ebp
xor ebp, ebp
jmp 0x4cd296
mov edx, eax
or edx, 0x40
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x4cd12a
mov eax, dword [ebx + 4]
add dword [eax + 4], 1
jmp 0x4cd12a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], eax
call fcn.004cc7f0
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa9
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], 0x751b24
call fcn.0053e6a0
mov eax, dword [ebx + 0x2c]
jmp 0x4cd122
mov ebp, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x42000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
sub esp, 0x1c
mov dword [ebx + 0x70], eax
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4cd2f0
mov dword [esp], edx
call fcn.004c95f0
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x4cd4b1
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
sub esp, 0x10
test eax, eax
je 0x4cd4b1
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x4cd530
lea edx, [ebx + 0x54]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x25c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x17f
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
shr edx, 2
and edx, 1
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x70]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadDirectoryChangesW]
sub esp, 0x20
test eax, eax
je 0x4cd4b1
test edi, edi
je 0x4cd4c0
test ebp, ebp
je 0x4cd4c8
mov dword [ebx + 0x84], ebp
mov dword [ebx + 0x74], 1
add esp, 0x23c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
call fcn.004cce20
test eax, eax
jne 0x4cd3f1
lea ecx, [ebx + 0x80]
xor edx, edx
mov eax, ebp
call fcn.004cce20
test eax, eax
je 0x4cd222
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4cd40f
mov dword [esp], eax
call fcn.004c95f0
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4cd425
mov dword [esp], eax
call fcn.004c95f0
mov dword [ebx + 0x7c], 0
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4cd441
mov dword [esp], eax
call fcn.004c95f0
mov dword [ebx + 0x80], 0
mov dword [esp], esi
call fcn.004c95f0
mov eax, dword [ebx + 0x70]
cmp eax, 0xffffffff
je 0x4cd464
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx + 0x70], 0xffffffff
sub esp, 4
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x4cd480
mov dword [esp], eax
call fcn.004c95f0
mov dword [ebx + 0x88], 0
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x4cd49e
test al, 1
jne 0x4cd4f0
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x4cd49e
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
mov dword [esp], edi
call fcn.004cc7f0
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, ebp
mov edi, eax
jmp 0x4cd3f9
test ebp, ebp
je 0x4cd3b7
mov dword [esp + 8], 0x11d
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str.is_path_dir___pathw___NULL_:_pathw__NULL
call fcn.0053e6a0
jmp 0x4cd3b7
mov dword [esp + 8], 0x13f
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], 0x751b24
call fcn.0053e6a0
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x4cd49e
jmp 0x4cd48b
mov eax, 0xfffff019
jmp 0x4cd25e
mov dword [esp], 0x1000
call fcn.004c95e0
test eax, eax
mov dword [ebx + 0x88], eax
jne 0x4cd331
mov dword [esp + 4], 0x751b04
mov dword [esp], 0xe
call fcn.004cc730
nop