Function at 0x4591b0
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 0x459600
mov eax, dword [esp + 0x254]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x258]
mov dword [esp], eax
call fcn.004558f0
test eax, eax
mov dword [ebx + 0x30], eax
je 0x45962a
mov eax, dword [ebx + 0x2c]
test al, 1
jne 0x459350
test al, 0x40
je 0x459314
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.004559c0
test eax, eax
mov esi, eax
je 0x45962a
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 0x459330
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4594d1
shr eax, 4
and eax, 1
mov edi, eax
jne 0x459374
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 0x4594b1
call fcn.00458f00
test eax, eax
jne 0x4594d1
mov dword [ebx + 0x80], 0
mov ebp, dword [esp + 0x24]
mov dword [esp], esi
call fcn.004559d0
mov esi, ebp
xor ebp, ebp
jmp 0x459376
mov edx, eax
or edx, 0x40
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x45920a
mov eax, dword [ebx + 4]
add dword [eax + 4], 1
jmp 0x45920a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.004588d0
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], 0x545e08
call fcn.0049c730
mov eax, dword [ebx + 0x2c]
jmp 0x459202
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 0x4593d0
mov dword [esp], edx
call fcn.004559d0
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x459591
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 0x459591
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x459610
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 0x459591
test edi, edi
je 0x4595a0
test ebp, ebp
je 0x4595a8
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.00458f00
test eax, eax
jne 0x4594d1
lea ecx, [ebx + 0x80]
xor edx, edx
mov eax, ebp
call fcn.00458f00
test eax, eax
je 0x459302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4594ef
mov dword [esp], eax
call fcn.004559d0
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x459505
mov dword [esp], eax
call fcn.004559d0
mov dword [ebx + 0x7c], 0
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x459521
mov dword [esp], eax
call fcn.004559d0
mov dword [ebx + 0x80], 0
mov dword [esp], esi
call fcn.004559d0
mov eax, dword [ebx + 0x70]
cmp eax, 0xffffffff
je 0x459544
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 0x459560
mov dword [esp], eax
call fcn.004559d0
mov dword [ebx + 0x88], 0
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x45957e
test al, 1
jne 0x4595d0
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [ebx + 0x2c], edx
je 0x45957e
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
mov dword [esp], edi
call fcn.004588d0
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 0x4594d9
test ebp, ebp
je 0x459497
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.0049c730
jmp 0x459497
mov dword [esp + 8], 0x13f
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], 0x545e08
call fcn.0049c730
mov eax, dword [ebx + 0x2c]
test al, 0x40
je 0x45957e
jmp 0x45956b
mov eax, 0xfffff019
jmp 0x45933e
mov dword [esp], 0x1000
call fcn.004559c0
test eax, eax
mov dword [ebx + 0x88], eax
jne 0x459411
mov dword [esp + 4], 0x545de8
mov dword [esp], 0xe
call fcn.00458810
nop