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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9927
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x4f3280]
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 0x4809c2
lea ecx, [esp + 0x20]
call fcn.004513c0
xor ebx, ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x4ac], ebx
call fcn.0048d490
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
jne 0x4809c9
call fcn.00451410
xor eax, eax
jmp 0x480c41
lea edx, [esp + 0x18]
push edx
call fcn.00451440
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00451480
push eax
lea ecx, [esp + 0x1c]
call fcn.00451600
test al, al
je 0x480c33
lea ecx, [esp + 0x18]
call fcn.00451510
push eax
lea ecx, [esp + 0x3c]
call fcn.004096c0
lea ecx, [esp + 0x18]
call fcn.00451540
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 0x480a39
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x60]
call fcn.0042bb40
lea ecx, [esp + 0x64]
call fcn.0042bb40
mov dword [esp + 0x68], edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a0], 2
call fcn.004035c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x480bfa
lea ecx, [esp + 0x38]
call fcn.004035c0
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480bfa
lea eax, [esp + 0x54]
call fcn.0048fd00
test eax, eax
jl 0x480bfa
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.004a4d7c
add esp, 0xc
cmp edi, ebx
jl 0x480bfa
push 0x208
lea ecx, [esp + 0x282]
push ebx
push ecx
mov word [esp + 0x288], bx
call fcn.004a1d00
lea edx, [esp + 0x288]
add esp, 0xc
test edx, edx
je 0x480bfa
lea ecx, [esp + 0x60]
call fcn.004636c0
mov ecx, dword [eax]
push ebx
push ebx
push 0x104
lea edx, [esp + 0x288]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x480bfa
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402fc0
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x4a4], 3
call fcn.00402fc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4a0], 4
call fcn.00418070
mov esi, eax
push esi
lea ecx, [esp + 0x14]
call fcn.00403220
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004a72e0
add esp, 8
push esi
lea ecx, [esp + 0x14]
call fcn.00404590
lea ecx, [esp + 0x14]
call fcn.00418070
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.00403220
lea edx, [esi + 1]
push edx
push eax
call fcn.004a72e0
add esp, 8
push esi
lea ecx, [esp + 0x18]
call fcn.00404590
push ebx
lea ecx, [esp + 0x18]
call fcn.004636c0
push eax
lea ecx, [esp + 0x18]
call fcn.0043a9b0
test eax, eax
jl 0x480be8
push ebx
lea ecx, [esp + 0x3c]
call fcn.004035c0
push eax
call fcn.0048cb90
add esp, 8
push ebx
lea ecx, [esp + 0x3c]
call fcn.004035c0
push eax
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 0x14]
call fcn.00403050
lea ecx, [esp + 0x10]
call fcn.00403050
lea ecx, [esp + 0x54]
call fcn.0048fc90
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a0], bl
call fcn.004069c0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00451480
push eax
lea ecx, [esp + 0x1c]
call fcn.00451600
test al, al
jne 0x4809f3
lea ecx, [esp + 0x20]
call fcn.00451410
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.004a1723
mov esp, ebp
pop ebp
ret