Function at 0x45c220
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 0x45c670
mov eax, dword [esp + 0x254]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x258]
mov dword [esp], eax
call fcn.00458960
test eax, eax
mov dword [ebx + 0x30], eax
je 0x45c69a
mov eax, dword [ebx + 0x2c]
test al, 1
jne 0x45c3c0
test al, 0x40
je 0x45c384
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.00458a30
test eax, eax
mov esi, eax
je 0x45c69a
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 0x45c3a0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x45c541
shr eax, 4
and eax, 1
mov edi, eax
jne 0x45c3e4
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 0x45c521
call fcn.0045bf70
test eax, eax
jne 0x45c541
mov dword [ebx + 0x80], 0
mov ebp, dword [esp + 0x24]
mov dword [esp], esi
call fcn.00458a40
mov esi, ebp
xor ebp, ebp
jmp 0x45c3e6
mov edx, eax
or edx, 0x40
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x45c27a
mov eax, dword [ebx + 4]
add dword [eax + 4], 1
jmp 0x45c27a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.0045b940
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], 0x644c48
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
jmp 0x45c272
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 0x45c440
mov dword [esp], edx
call fcn.00458a40
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x45c601
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 0x45c601
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x45c680
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 0x45c601
test edi, edi
je 0x45c610
test ebp, ebp
je 0x45c618
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.0045bf70
test eax, eax
jne 0x45c541
lea ecx, [ebx + 0x80]
xor edx, edx
mov eax, ebp
call fcn.0045bf70
test eax, eax
je 0x45c372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45c55f
mov dword [esp], eax
call fcn.00458a40
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x45c575
mov dword [esp], eax
call fcn.00458a40
mov dword [ebx + 0x7c], 0
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x45c591
mov dword [esp], eax
call fcn.00458a40
mov dword [ebx + 0x80], 0
mov dword [esp], esi
call fcn.00458a40
mov eax, dword [ebx + 0x70]
cmp eax, 0xffffffff
je 0x45c5b4
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 0x45c5d0
mov dword [esp], eax
call fcn.00458a40
mov dword [ebx + 0x88], 0
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x45c5ee
test al, 1
jne 0x45c640
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x45c5ee
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
mov dword [esp], edi
call fcn.0045b940
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 0x45c549
test ebp, ebp
je 0x45c507
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.004a0380
jmp 0x45c507
mov dword [esp + 8], 0x13f
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], 0x644c48
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x45c5ee
jmp 0x45c5db
mov eax, 0xfffff019
jmp 0x45c3ae
mov dword [esp], 0x1000
call fcn.00458a30
test eax, eax
mov dword [ebx + 0x88], eax
jne 0x45c481
mov dword [esp + 4], 0x644c28
mov dword [esp], 0xe
call fcn.0045b880
nop