Function at 0x45f81e
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 0x45fb98
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 0x45f997
mov eax, dword [esi]
test eax, eax
je 0x45f964
mov ecx, dword [eax]
lea esi, [ebp - 0x3d0]
push esi
push 1
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x481530]
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.004625f4
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x110
cmp dword [eax - 8], edi
jne 0x45f94b
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 0x45f901
lea eax, [ebp - 0x2b8]
test eax, eax
je 0x45f8f1
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.0040148c
mov eax, dword [ebp - 4]
cmp dword [eax - 8], edi
jne 0x45f94b
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 0x45f94b
lea eax, [ebp - 0x2b8]
test eax, eax
je 0x45f93b
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.0040148c
push dword [ebp - 4]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 4]
call fcn.0040139b
mov esi, dword [ebp - 0xc]
jmp 0x45f997
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 0x45f997
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 0x45fa8b
cmp dword [esi], 0
je 0x45fa32
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 0x45f9d5
or dword [ebx], edi
or dword [ebx + 0xc], 4
or dword [ebx + 8], 4
test byte [ebp + 0xa], 2
je 0x45f9e8
mov eax, dword [ebx + 8]
or dword [ebx], edi
and ah, 0xf1
or ah, 1
jmp 0x45fa2b
test byte [ebp + 0xa], 1
je 0x45f9fb
mov eax, dword [ebx + 8]
or dword [ebx], edi
and ah, 0xf2
or ah, 2
jmp 0x45fa2b
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 0x45fa32
mov eax, dword [ebp - 0x2c0]
sar eax, 0x18
je 0x45fa32
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 0x45fa5d
mov dword [ebx + 0x18], eax
test byte [ebp + 0xb], 0x20
mov dword [ebx + 0x1c], eax
je 0x45fa8b
push 0x400b
lea eax, [ebp - 0x2c4]
push 0x2b4
push eax
push 0
push dword [esi + 4]
call edi
test eax, eax
je 0x45fa8b
mov eax, dword [ebp - 0x2c0]
mov dword [ebx + 0x1c], eax
test byte [ebx], 0x40
je 0x45fb84
cmp dword [esi], 0
je 0x45fb84
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 0x45faca
mov dword [ebx + 0x20], edi
jmp 0x45fb84
test byte [ebp + 0xb], 0x20
je 0x45fb84
mov dword [ebx + 0x20], edi
cmp dword [0x488038], 0
je 0x45fb84
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 0x45fac2
mov eax, dword [0x48be0c]
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 0x45fb51
cmp word [ebp - 0x4d0], 0x5c
jne 0x45fb51
cmp word [ebp - 0x4ce], 0x5c
jne 0x45fb51
mov dword [ebx + 0x20], 1
jmp 0x45fb84
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45fb84
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