Function at 0x4a50e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587c38
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0
push 0x596e80
lea ecx, [ebp - 0x10]
call fcn.0041d9b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004170e0
mov byte [ebp - 4], 2
push 0x596e84
lea ecx, [ebp - 0x28]
call fcn.0041d9b0
mov byte [ebp - 4], 3
call fcn.00417050
test eax, eax
je 0x4a5156
push 0x596ec0
lea ecx, [ebp - 0x28]
call fcn.0041daf0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.0041d990
mov dword [ebp - 0x60], eax
push reloc.SHELL32.dll_SHChangeNotifyRegister
lea ecx, [ebp - 0x24]
call fcn.00417490
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4a5247
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x596ebc
call fcn.0041d9b0
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x596f10
call fcn.0041d9b0
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00417760
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041dad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0041dab0
lea ecx, [ebp - 0x10]
call fcn.0041e310
movzx edx, al
test edx, edx
jne 0x4a5247
push 0x596f28
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041dde0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0041e180
add esp, 8
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.0041dab0
movzx edx, byte [ebp - 0x39]
test edx, edx
je 0x4a523a
push 0x596f2c
lea ecx, [ebp - 0x10]
call fcn.0041db30
push 0x596f30
lea ecx, [ebp - 0x10]
call fcn.0041db30
lea ecx, [ebp - 0x10]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5396
push 0x596f50
lea ecx, [ebp - 0x28]
call fcn.0041daf0
call fcn.00417050
test eax, eax
je 0x4a5281
push 0x596f78
lea ecx, [ebp - 0x28]
call fcn.0041daf0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
lea eax, [ebp - 0x28]
push eax
call fcn.0041d990
mov dword [ebp - 0x80], eax
push reloc.SHELL32.dll_SHChangeNotifyRegister
lea ecx, [ebp - 0x24]
call fcn.00417490
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x4a5396
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x596fb8
call fcn.0041d9b0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x596fbc
call fcn.0041d9b0
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00417760
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041dad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.0041dab0
lea ecx, [ebp - 0x10]
call fcn.0041e310
movzx edx, al
test edx, edx
jne 0x4a5396
push 0x596fd4
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041dde0
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0041e180
add esp, 8
mov byte [ebp - 0x51], al
lea ecx, [ebp - 0x58]
call fcn.0041dab0
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x4a5389
push 0x596fd8
lea ecx, [ebp - 0x10]
call fcn.0041db30
push 0x596fdc
lea ecx, [ebp - 0x10]
call fcn.0041db30
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00417180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret