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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a97e7
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475cf2
lea ecx, [esp + 0x20]
call fcn.004347c0
xor ebx, ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x4ac], ebx
call fcn.0047ecc0
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
jne 0x475cf9
call fcn.00434810
xor eax, eax
jmp 0x475f5b
lea edx, [esp + 0x18]
push edx
call fcn.00434840
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00434880
push eax
lea ecx, [esp + 0x1c]
call fcn.00434a00
test al, al
je 0x475f4d
lea ecx, [esp + 0x18]
call fcn.00434910
push eax
lea ecx, [esp + 0x3c]
call fcn.00418a70
lea ecx, [esp + 0x18]
call fcn.00434940
push 6
push ebx
mov dword [esp + 0x5c], vtable.QMTShortCut.0
mov dword [esp + 0x60], vtable.CQMTInitializeCOMThread.0
mov dword [esp + 0x64], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
mov edi, 1
jne 0x475d69
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a0], 2
call fcn.00420780
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x475f14
lea ecx, [esp + 0x38]
call fcn.00420780
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475f14
lea eax, [esp + 0x54]
call fcn.00483310
test eax, eax
jl 0x475f14
mov eax, dword [esp + 0x64]
push ebx
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
push esi
mov edi, eax
lea eax, [esp + 0x70]
push 0x104
push eax
call fcn.004890c8
add esp, 0xc
cmp edi, ebx
jl 0x475f14
push 0x208
lea ecx, [esp + 0x282]
push ebx
push ecx
mov word [esp + 0x288], bx
call fcn.004863a0
lea edx, [esp + 0x288]
add esp, 0xc
test edx, edx
je 0x475f14
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ebx
push ebx
push 0x104
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x475f14
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040f390
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a4], 3
call fcn.0040f390
lea ecx, [esp + 0x10]
mov byte [esp + 0x4a0], 4
call fcn.0040f660
mov esi, eax
push esi
lea ecx, [esp + 0x14]
call fcn.0040f630
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0048b385
add esp, 8
push esi
lea ecx, [esp + 0x14]
call fcn.004118f0
lea ecx, [esp + 0x14]
call fcn.0040f660
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.0040f630
lea edx, [esi + 1]
push edx
push eax
call fcn.0048b385
add esp, 8
push esi
lea ecx, [esp + 0x18]
call fcn.004118f0
push ebx
lea ecx, [esp + 0x18]
call fcn.0040f0f0
push eax
lea ecx, [esp + 0x18]
call fcn.0041f570
test eax, eax
jl 0x475f02
push ebx
lea ecx, [esp + 0x3c]
call fcn.00420780
push eax
call fcn.0047e3a0
add esp, 8
push ebx
lea ecx, [esp + 0x3c]
call fcn.00420780
push eax
push 0x2005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 0x14]
call fcn.0040f420
lea ecx, [esp + 0x10]
call fcn.0040f420
lea ecx, [esp + 0x54]
call fcn.004832a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a0], bl
call fcn.00418c50
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00434880
push eax
lea ecx, [esp + 0x1c]
call fcn.00434a00
test al, al
jne 0x475d23
lea ecx, [esp + 0x20]
call fcn.00434810
mov eax, 1
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.004851ae
mov esp, ebp
pop ebp
ret