Function at 0x52cfc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5775f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi]
xor ebx, ebx
push eax
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00401210
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x2c8]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x52d024
push 0x80070057
call fcn.004010a0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x52d047
push esi
lea ecx, [ebp - 0x2c8]
call fcn.004019b0
mov edx, dword [ebp - 0x2c8]
lea eax, [esi + 1]
push eax
push edx
call fcn.0050084d
mov eax, dword [ebp - 0x2c8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x52d01a
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x2c8]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [ebp - 0x2c8]
mov ecx, str..dll
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52d0a6
cmp dx, bx
je 0x52d0a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52d0a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x52d080
xor eax, eax
jmp 0x52d0ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x52d108
mov eax, dword [edi]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x2cc], eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52d0eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ebx
push ecx
call fcn.00503ac0
mov eax, dword [edi]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
push 0x4000
push 0x2b4
lea edx, [ebp - 0x2c4]
push edx
push ebx
push eax
call esi
cmp eax, ebx
je 0x52d18e
lea eax, [ebp - 0x2d0]
push eax
push 0x5ad1b0
push 2
mov dword [ebp - 0x2d0], ebx
call dword [sym.imp.SHELL32.dll_SHGetImageList]
cmp eax, ebx
jne 0x52d17a
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax]
lea edx, [ebp - 0x2cc]
push edx
mov edx, dword [ebp - 0x2c0]
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x2d0], ebx
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
jne 0x52d1e2
mov eax, dword [edi]
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x2c4]
cmp eax, ebx
je 0x52d1c1
mov dword [ebp - 0x2cc], eax
jmp 0x52d1c7
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
jne 0x52d1e2
call fcn.0040da38
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x2cc], eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x52d0df