Function at 0x50d230
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 0x50d541
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 0x50d541
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 [0x546560]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x2dc]
mov dword [esp + 0x10], ecx
test edx, edx
je 0x50d32a
lea eax, [esp + 0x2dc]
shr eax, 0x10
jne 0x50d2f0
xor ecx, ecx
lea edx, [esp + 0x2dc]
mov cx, dx
push ecx
lea ecx, [esp + 0x14]
call fcn.00413c90
jmp 0x50d32a
lea eax, [esp + 0x2dc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x50d32a
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50d32a
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 [0x546560]
mov ecx, 0x553dd8
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x50d38c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x50d38c
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x50d38c
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x553dd8
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 0x50d3b5
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 0x50d454
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0051c3c0
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x50d425
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x50d3f9
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x50d400
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x50d410
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x50d425
lea ecx, [esp + 0x14]
call fcn.00412670
mov eax, dword [esi]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50d454
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50d454
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50d4a6
mov edx, dword [esp + 0x10]
cmp edx, ecx
je 0x50d4a6
mov esi, dword [edx - 0xc]
test esi, esi
jge 0x50d47b
mov esi, dword [0x546564]
add edx, 0xfffffff4
cmp edx, esi
jne 0x50d482
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x50d48f
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x50d4a6
lea ecx, [esp + 0x10]
call fcn.00412670
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 0x50d4be
mov edx, dword [ecx - 4]
test edx, edx
jge 0x50d4fb
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x50d4c7
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50d4ff
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.00413620
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