Function at 0x50db30
Capabilities:
Get file system object information

Disassembly:
sub esp, 0xacc
mov eax, dword [ecx + 0x20]
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], ecx
je 0x50de41
mov ebp, dword [esp + 0xadc]
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
push 0x2708
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push 0x2b4
push eax
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x50de41
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x2da]
mov word [esp + 0x2d8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x2d8]
push ebx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [0x547570]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x2dc]
mov dword [esp + 0x10], ecx
test edx, edx
je 0x50dc2a
lea eax, [esp + 0x2dc]
shr eax, 0x10
jne 0x50dbf0
xor ecx, ecx
lea edx, [esp + 0x2dc]
mov cx, dx
push ecx
lea ecx, [esp + 0x14]
call fcn.00413ae0
jmp 0x50dc2a
lea eax, [esp + 0x2dc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x50dc2a
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50dc2a
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x2dc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x547570]
mov ecx, 0x554e48
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x50dc8c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x50dc8c
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x50dc8c
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004055c0
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 4]
mov esi, 0x20000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x1c], esi
je 0x50dcb5
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
push 1
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, eax
jne 0x50dd54
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0051d080
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x50dd25
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x50dcf9
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x50dd00
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x50dd10
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x50dd25
lea ecx, [esp + 0x14]
call fcn.004124c0
mov eax, dword [esi]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50dd54
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50dd54
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50dda6
mov edx, dword [esp + 0x10]
cmp edx, ecx
je 0x50dda6
mov esi, dword [edx - 0xc]
test esi, esi
jge 0x50dd7b
mov esi, dword [0x547574]
add edx, 0xfffffff4
cmp edx, esi
jne 0x50dd82
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x50dd8f
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x50dda6
lea ecx, [esp + 0x10]
call fcn.004124c0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x50ddbe
mov edx, dword [ecx - 4]
test edx, edx
jge 0x50ddfb
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x50ddc7
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50ddff
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.00405590
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push eax
push 0x100
push 0x40b
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [esp + 0x14]
call fcn.00413470
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xacc
ret 4