Function at 0x50bee0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x3cc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x546560]
lea ecx, [esp + 0x2c]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x50bf68
lea edx, [esp + 0x2c]
shr edx, 0x10
jne 0x50bf30
xor eax, eax
lea ecx, [esp + 0x2c]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00413c90
jmp 0x50bf68
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x50bf68
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50bf68
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x3e4]
push 0x208
lea ecx, [esp + 0x24]
push 0x2b4
mov edx, dword [ebp + 8]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x50bfe1
lea eax, [esp + 0x2c]
test eax, eax
jne 0x50bf9a
xor ebx, ebx
jmp 0x50bfa7
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00405660
test eax, eax
je 0x50bfe1
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x2c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50c11d
mov ecx, dword [ebp + 4]
mov dword [esp + 0x18], 0x20038000
mov dword [esp + 0x1c], ecx
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 1
push eax
call dword [edx + 0x24]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50c02d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x50c02d
mov edx, dword [eax]
lea esi, [esp + 0x2d4]
push esi
push 1
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [0x546560]
lea ecx, [esp + 0x14]
push 0
push ecx
sub esp, 0x108
mov ecx, 0x42
lea esi, [esp + 0x3e4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x124], eax
call fcn.0050c1d0
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
add esp, 0x110
mov ebx, dword [ecx - 8]
test ebx, ebx
je 0x50c0f2
cmp eax, ecx
je 0x50c0f2
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x50c08e
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x50c095
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x50c0cf
mov esi, ecx
push ebx
lea ecx, [esp + 0x14]
call fcn.00405660
test eax, eax
je 0x50c0ea
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
jmp 0x50c0ea
lea ecx, [esp + 0x10]
call fcn.00412670
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [0x546564]
lea edx, [ecx - 0xc]
cmp edx, esi
je 0x50c121
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50c11d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov ebx, dword [esp + 0x3e0]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x50c13d
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x50c187
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x50c14f
xor ebp, ebp
jmp 0x50c158
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x50c187
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50c1b6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50c1b6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3cc
ret 8