Function at 0x586180
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2519
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x616040]
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 - 0x2cc]
call fcn.00402f60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2cc]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x5861f4
push 0x80070057
call fcn.00402740
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x586217
push esi
lea ecx, [ebp - 0x2cc]
call fcn.00402c20
mov eax, dword [ebp - 0x2cc]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005299d2
mov eax, dword [ebp - 0x2cc]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x5861ea
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x2cc]
mov word [eax + esi*2], cx
mov ecx, str..dll
mov eax, dword [ebp - 0x2cc]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x586276
test dx, dx
je 0x586272
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x586276
add eax, 4
add ecx, 4
test dx, dx
jne 0x586250
xor eax, eax
jmp 0x58627b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5862c8
push 1
lea eax, [ebp - 0x2d4]
xor esi, esi
push eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], esi
push eax
push esi
push dword [ebx]
mov dword [ebp - 0x2d4], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5863b3
mov esi, dword [ebp - 0x2c8]
cmp edi, 2
je 0x5863b3
mov esi, dword [ebp - 0x2d4]
jmp 0x5863b3
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0052d150
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 0x586364
cmp dword [ebp - 0x2d4], 2
mov eax, 1
mov dword [ebp - 0x2c8], 0
jne 0x58631c
mov eax, 2
lea ecx, [ebp - 0x2c8]
push ecx
push 0x5edab8
push eax
call dword [sym.imp.SHELL32.dll_SHGetImageList]
test eax, eax
jne 0x58634e
mov eax, dword [ebp - 0x2c8]
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 - 0x2c8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x2c8], 0
mov esi, dword [ebp - 0x2d0]
test esi, esi
jne 0x5863b9
push pe_nt_image_headers32
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [ebx]
call edi
mov esi, dword [ebp - 0x2c4]
test esi, esi
je 0x586396
mov dword [ebp - 0x2d0], esi
jmp 0x58639c
mov esi, dword [ebp - 0x2d0]
test esi, esi
jne 0x5863b9
call fcn.00416d27
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 ecx, 0xffffffff
mov edi, dword [ebp - 0x2cc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5863e0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.00527e5c
mov esp, ebp
pop ebp
ret