Function at 0x50c9f0
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 [0x547570]
lea ecx, [esp + 0x2c]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x50ca78
lea edx, [esp + 0x2c]
shr edx, 0x10
jne 0x50ca40
xor eax, eax
lea ecx, [esp + 0x2c]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00413ae0
jmp 0x50ca78
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x50ca78
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50ca78
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 0x50caf1
lea eax, [esp + 0x2c]
test eax, eax
jne 0x50caaa
xor ebx, ebx
jmp 0x50cab7
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 0x50caf1
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 0x50cc2d
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 0x50cb3d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x50cb3d
mov edx, dword [eax]
lea esi, [esp + 0x2d4]
push esi
push 1
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [0x547570]
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.00517400
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
add esp, 0x110
mov ebx, dword [ecx - 8]
test ebx, ebx
je 0x50cc02
cmp eax, ecx
je 0x50cc02
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x50cb9e
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x50cba5
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x50cbdf
mov esi, ecx
push ebx
lea ecx, [esp + 0x14]
call fcn.00405660
test eax, eax
je 0x50cbfa
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 0x50cbfa
lea ecx, [esp + 0x10]
call fcn.004124c0
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 [0x547574]
lea edx, [ecx - 0xc]
cmp edx, esi
je 0x50cc31
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50cc2d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
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 0x50cc4d
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x50cc97
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x50cc5f
xor ebp, ebp
jmp 0x50cc68
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x50cc97
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50ccc6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50ccc6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3cc
ret 8