Function at 0x50b7d3
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x86cdb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c8
mov eax, dword [esp + 0x2d8]
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.00831f5f
push 0x2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2e0], 0
call fcn.00825d01
cmp eax, 0xffffffff
je 0x50b82e
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00825b00
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2e0], 1
call fcn.00832032
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2dc], 0
call fcn.00831eeb
mov eax, dword [esp + 0xc]
push 0x111
lea edx, [esp + 0x24]
xor ebp, ebp
push 0x2b4
push edx
push ebp
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x50b85d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov ebp, ecx
mov eax, dword [esp + 0xc]
push ebx
push eax
mov ebx, eax
call fcn.0082640b
xor edx, edx
div dword [esi + 0x464]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x50b89a
mov edi, dword [eax + edx*4]
test edi, edi
je 0x50b89a
mov edx, dword [edi + 8]
push ebx
push edx
call fcn.005fd3f1
add esp, 8
test eax, eax
je 0x50b8f2
mov edi, dword [edi]
test edi, edi
jne 0x50b883
mov eax, dword [esi + 0x458]
push ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x20], eax
mov ebp, eax
call fcn.0082640b
xor edx, edx
div dword [esi + 0x464]
mov eax, dword [esi + 0x460]
test eax, eax
mov ebx, edx
je 0x50b906
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x50b906
mov ecx, dword [edi + 8]
push ebp
push ecx
call fcn.005fd3f1
add esp, 8
test eax, eax
je 0x50b8fe
mov edi, dword [edi]
test edi, edi
jne 0x50b8d9
jmp 0x50b906
test edi, edi
je 0x50b89a
mov edi, dword [edi + 0xc]
jmp 0x50b9ed
test edi, edi
jne 0x50b9e0
mov eax, dword [esi + 0x460]
test eax, eax
jne 0x50b948
mov ebp, dword [esi + 0x464]
lea edi, [ebp*4]
push edi
call fcn.008325b4
mov edx, eax
mov ecx, edi
mov dword [esi + 0x460], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x464], ebp
mov eax, dword [esi + 0x46c]
test eax, eax
jne 0x50b990
mov eax, dword [esi + 0x474]
push 0x10
lea ecx, [esi + 0x470]
push eax
push ecx
call fcn.0082b3f5
mov ecx, dword [esi + 0x474]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x50b990
inc ecx
mov edx, dword [esi + 0x46c]
mov dword [eax], edx
mov dword [esi + 0x46c], eax
sub eax, 0x10
dec ecx
jne 0x50b97c
mov edi, dword [esi + 0x46c]
mov ebp, dword [esi + 0x468]
inc ebp
push 1
mov eax, dword [edi]
mov dword [esi + 0x468], ebp
lea ebp, [edi + 8]
mov dword [esi + 0x46c], eax
push ebp
call fcn.0082638d
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xc], 0
push ecx
mov ecx, ebp
mov dword [edi + 4], ebx
call fcn.00832082
mov edx, dword [esi + 0x460]
mov eax, dword [edx + ebx*4]
mov dword [edi], eax
mov ecx, dword [esi + 0x460]
mov dword [ecx + ebx*4], edi
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [edi + 0xc], edx
mov edi, edx
test ebp, ebp
pop ebx
je 0x50b9f9
push ebp
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.00831eeb
mov ecx, dword [esp + 0x2d4]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2d4
ret 4