Function at 0x45cdfc
Capabilities:
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x24]
mov dword [ebp - 0x10], ecx
test esi, esi
mov dword [ebp - 0xc], esi
je 0x45d176
mov edx, dword [esi + 8]
and dword [ebp - 0x2c4], 0
mov ecx, 0xac
xor eax, eax
test byte [ebx], 1
lea edi, [ebp - 0x2c0]
mov dword [ebp - 8], edx
rep stosd dword es:[edi], eax
je 0x45cf75
mov eax, dword [esi]
test eax, eax
je 0x45cf42
mov ecx, dword [eax]
lea esi, [ebp - 0x3d0]
push esi
push 1
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x47e520]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea esi, [ebp - 0x3d0]
sub esp, 0x108
push 0x42
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0045fbc1
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x110
cmp dword [eax - 8], edi
jne 0x45cf29
mov esi, 0x208
lea eax, [ebp - 0x2c4]
push esi
push 0x2b4
push eax
mov eax, dword [ebp - 0xc]
push edi
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45cedf
lea eax, [ebp - 0x2b8]
test eax, eax
je 0x45cecf
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040148d
mov eax, dword [ebp - 4]
cmp dword [eax - 8], edi
jne 0x45cf29
push esi
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45cf29
lea eax, [ebp - 0x2b8]
test eax, eax
je 0x45cf19
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040148d
push dword [ebp - 4]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 4]
call fcn.0040139c
mov esi, dword [ebp - 0xc]
jmp 0x45cf75
push 0x208
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push 0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45cf75
push dword [ebx + 0x14]
lea eax, [ebp - 0x2b8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [ebx], 0x22
je 0x45d069
cmp dword [esi], 0
je 0x45d010
lea edx, [ebp + 8]
mov dword [ebp + 8], 0x20038000
mov eax, dword [esi]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x24]
test byte [ebp + 9], 0x80
push 8
pop edi
je 0x45cfb3
or dword [ebx], edi
or dword [ebx + 0xc], 4
or dword [ebx + 8], 4
test byte [ebp + 0xa], 2
je 0x45cfc6
mov eax, dword [ebx + 8]
or dword [ebx], edi
and ah, 0xf1
or ah, 1
jmp 0x45d009
test byte [ebp + 0xa], 1
je 0x45cfd9
mov eax, dword [ebx + 8]
or dword [ebx], edi
and ah, 0xf2
or ah, 2
jmp 0x45d009
push 0x148
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push 0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45d010
mov eax, dword [ebp - 0x2c0]
sar eax, 0x18
je 0x45d010
or dword [ebx], edi
shl eax, 8
or byte [ebx + 0xd], 0xf
mov dword [ebx + 8], eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4009
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push 0
push dword [esi + 4]
call edi
test eax, eax
mov eax, dword [ebp - 0x2c0]
je 0x45d03b
mov dword [ebx + 0x18], eax
test byte [ebp + 0xb], 0x20
mov dword [ebx + 0x1c], eax
je 0x45d069
push 0x400b
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push 0
push dword [esi + 4]
call edi
test eax, eax
je 0x45d069
mov eax, dword [ebp - 0x2c0]
mov dword [ebx + 0x1c], eax
test byte [ebx], 0x40
je 0x45d162
cmp dword [esi], 0
je 0x45d162
lea edx, [ebp + 8]
mov dword [ebp + 8], 0x22000000
mov eax, dword [esi]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
pop edi
push edi
push eax
call dword [ecx + 0x24]
and dword [ebx + 0x20], 0
test byte [ebp + 0xb], 2
je 0x45d0a8
mov dword [ebx + 0x20], edi
jmp 0x45d162
test byte [ebp + 0xb], 0x20
je 0x45d162
mov dword [ebx + 0x20], edi
cmp dword [0x484db0], 0
je 0x45d162
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push dword [edx + 0x74]
mov ecx, dword [eax]
push dword [esi + 4]
push 0x10000000
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x45d0a0
mov eax, dword [0x488b6c]
mov ecx, 0x81
mov dword [ebp - 0x4d0], eax
xor eax, eax
lea edi, [ebp - 0x4cc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4d0]
push eax
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x4d0]
test eax, eax
je 0x45d12f
cmp word [ebp - 0x4d0], 0x5c
jne 0x45d12f
cmp word [ebp - 0x4ce], 0x5c
jne 0x45d12f
mov dword [ebx + 0x20], 1
jmp 0x45d162
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45d162
lea ecx, [ebp + 8]
mov dword [ebp + 8], SHChangeNotifyDeregister
mov esi, dword [esi]
push ecx
lea ecx, [ebp - 8]
mov eax, dword [esi]
push ecx
push 1
push esi
call dword [eax + 0x24]
mov eax, dword [ebp + 8]
shr eax, 0x1f
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x10]
push ebx
push 0
push 0x113f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret 4