Function at 0x5aa380
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d52dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x638fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2d4], edi
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 0x2d0], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00403280
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c8]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x5aa3f4
push 0x80070057
call fcn.00402650
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x5aa417
push esi
lea ecx, [ebp - 0x2c8]
call fcn.00402cf0
mov eax, dword [ebp - 0x2c8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0054e051
mov eax, dword [ebp - 0x2c8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x5aa3ea
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x2c8]
mov word [eax + esi*2], cx
mov ecx, str..dll
mov eax, dword [ebp - 0x2c8]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5aa476
test dx, dx
je 0x5aa472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5aa476
add eax, 4
add ecx, 4
test dx, dx
jne 0x5aa450
xor eax, eax
jmp 0x5aa47b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5aa4c8
push 1
lea eax, [ebp - 0x2d4]
xor esi, esi
push eax
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], esi
push eax
push esi
push dword [ebx]
mov dword [ebp - 0x2d4], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5aa5b3
mov esi, dword [ebp - 0x2cc]
cmp edi, 2
je 0x5aa5b3
mov esi, dword [ebp - 0x2d4]
jmp 0x5aa5b3
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.00547850
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x2c4]
add esp, 0xc
push 0x4000
push 0x2b4
push eax
push 0
push dword [ebx]
call edi
test eax, eax
je 0x5aa564
cmp dword [ebp - 0x2d4], 2
mov eax, 1
mov dword [ebp - 0x2cc], 0
jne 0x5aa51c
mov eax, 2
lea ecx, [ebp - 0x2cc]
push ecx
push 0x610f7c
push eax
call dword [sym.imp.SHELL32.dll_SHGetImageList]
test eax, eax
jne 0x5aa54e
mov eax, dword [ebp - 0x2cc]
lea edx, [ebp - 0x2d0]
push edx
push 1
push dword [ebp - 0x2c0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x2cc], 0
mov esi, dword [ebp - 0x2d0]
test esi, esi
jne 0x5aa5b9
push 0x100
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [ebx]
call edi
mov esi, dword [ebp - 0x2c4]
test esi, esi
je 0x5aa596
mov dword [ebp - 0x2d0], esi
jmp 0x5aa59c
mov esi, dword [ebp - 0x2d0]
test esi, esi
jne 0x5aa5b9
call fcn.004196a0
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2c8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5aa605
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5aa601
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5aa601
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5aa605
mov ecx, edx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544774
mov esp, ebp
pop ebp
ret