Function at 0x51df30
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x86ee61
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
push esi
mov esi, ecx
lea eax, [esi + 0xfe8]
test eax, eax
je 0x51df5f
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x51df67
or eax, 0xffffffff
jmp 0x51e1d1
mov eax, dword [esp + 0x2e0]
lea ecx, [esp + 8]
push eax
call fcn.00831f5f
lea ecx, [esp + 8]
mov dword [esp + 0x2d8], 0
push ecx
lea ecx, [esp + 8]
call fcn.00831c58
push 0x2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x2dc], 1
call fcn.00825d01
cmp eax, 0xffffffff
je 0x51dfdb
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00825b00
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2dc], 2
call fcn.00832032
lea ecx, [esp + 0x18]
mov byte [esp + 0x2d8], 1
call fcn.00831eeb
mov ecx, dword [esp + 4]
push ebp
push edi
push 0x111
lea eax, [esp + 0x28]
xor ebp, ebp
push 0x2b4
push eax
push ebp
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x51e00c
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov ebp, edx
mov eax, dword [esp + 0xc]
push ebx
push eax
mov ebx, eax
call fcn.0082640b
xor edx, edx
div dword [esi + 0x1044]
mov eax, dword [esi + 0x1040]
test eax, eax
je 0x51e049
mov edi, dword [eax + edx*4]
test edi, edi
je 0x51e049
mov eax, dword [edi + 8]
push ebx
push eax
call fcn.005fd3f1
add esp, 8
test eax, eax
je 0x51e0a1
mov edi, dword [edi]
test edi, edi
jne 0x51e032
mov ecx, dword [esi + 0xfec]
push ebp
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x24], eax
mov ebp, eax
call fcn.0082640b
xor edx, edx
div dword [esi + 0x1044]
mov eax, dword [esi + 0x1040]
test eax, eax
mov ebx, edx
je 0x51e0b5
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x51e0b5
mov edx, dword [edi + 8]
push ebp
push edx
call fcn.005fd3f1
add esp, 8
test eax, eax
je 0x51e0ad
mov edi, dword [edi]
test edi, edi
jne 0x51e088
jmp 0x51e0b5
test edi, edi
je 0x51e049
mov edi, dword [edi + 0xc]
jmp 0x51e19c
test edi, edi
jne 0x51e18f
mov eax, dword [esi + 0x1040]
test eax, eax
jne 0x51e0f7
mov ebp, dword [esi + 0x1044]
lea edi, [ebp*4]
push edi
call fcn.008325b4
mov edx, eax
mov ecx, edi
mov dword [esi + 0x1040], 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 + 0x1044], ebp
mov eax, dword [esi + 0x104c]
test eax, eax
jne 0x51e13f
mov eax, dword [esi + 0x1054]
push 0x10
lea ecx, [esi + 0x1050]
push eax
push ecx
call fcn.0082b3f5
mov ecx, dword [esi + 0x1054]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x51e13f
inc ecx
mov edx, dword [esi + 0x104c]
mov dword [eax], edx
mov dword [esi + 0x104c], eax
sub eax, 0x10
dec ecx
jne 0x51e12b
mov edi, dword [esi + 0x104c]
mov ebp, dword [esi + 0x1048]
inc ebp
push 1
mov eax, dword [edi]
mov dword [esi + 0x1048], ebp
lea ebp, [edi + 8]
mov dword [esi + 0x104c], eax
push ebp
call fcn.0082638d
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], 0
push ecx
mov ecx, ebp
mov dword [edi + 4], ebx
call fcn.00832082
mov edx, dword [esi + 0x1040]
mov eax, dword [edx + ebx*4]
mov dword [edi], eax
mov ecx, dword [esi + 0x1040]
mov dword [ecx + ebx*4], edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [edi + 0xc], edx
mov edi, edx
test ebp, ebp
pop ebx
je 0x51e1a8
push ebp
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [esp + 0xc]
mov byte [esp + 0x2e0], 0
call fcn.00831eeb
lea ecx, [esp + 0x10]
mov dword [esp + 0x2e0], 0xffffffff
call fcn.00831eeb
mov eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x2d0]
pop esi
mov dword fs:[0], ecx
add esp, 0x2d8
ret 4