Function at 0x50bc2b
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d0
push ebx
push ebp
push esi
push edi
push dword [0x6c7ea8]
call fcn.0052d287
xor esi, esi
mov dword [esp + 0x18], eax
cmp dword [0x6c4430], esi
jne 0x50bf09
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
call fcn.00513d7e
push str.My_Documents
push 0x6c4438
mov dword [0x6c4c5c], eax
call sub.MSVCRT.dll_wcscpy
push str.My_Computer
push 0x6c4a50
call sub.MSVCRT.dll_wcscpy
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
push 5
push esi
call ebp
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
test eax, eax
jne 0x50bd98
push 0x6c4640
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x6c4c60], eax
test eax, eax
je 0x50bd90
push 0x4009
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x50bd16
push 0x4001
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call edi
test eax, eax
jne 0x50bd16
push 0x4001
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push 0x6c4640
call edi
test eax, eax
je 0x50bd21
mov eax, dword [esp + 0x30]
mov dword [0x6c4434], eax
jmp 0x50bd27
mov dword [0x6c4c60], esi
push 0x208
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x50bd77
push 0x200
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call edi
test eax, eax
jne 0x50bd77
push 0x200
push 0x2b4
lea eax, [esp + 0x34]
push eax
push esi
push 0x6c4640
call edi
test eax, eax
je 0x50bd8a
lea eax, [esp + 0x38]
push eax
push 0x6c4438
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
jmp 0x50bd90
mov dword [0x6c4c60], esi
push dword [esp + 0x10]
call ebx
jmp 0x50bd9e
mov dword [0x6c4c60], esi
push 0x6c4640
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [eax*2 + 0x6c463e], 0x5c
je 0x50bdc5
push 0x5ddea0
push 0x6c4640
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
push 0x6c4640
mov esi, 0x6c4848
push esi
call sub.MSVCRT.dll_wcscpy
cmp word [0x6c4848], 0
pop ecx
pop ecx
je 0x50bdfe
xor ebp, ebp
movzx eax, word [esi]
push eax
call sub.MSVCRT.dll_tolower
mov word [esi], ax
lea esi, [esi + 2]
pop ecx
cmp word [esi], bp
jne 0x50bde3
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x14]
xor esi, esi
push eax
push 0x11
push esi
call ebp
test eax, eax
lea eax, [esp + 0x2c]
jne 0x50be61
push 0x4009
mov ebp, 0x2b4
push ebp
push eax
push esi
push dword [esp + 0x24]
call edi
test eax, eax
je 0x50be32
mov eax, dword [esp + 0x30]
mov dword [0x6c4c58], eax
push 0x208
push ebp
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x24]
call edi
test eax, eax
je 0x50be59
lea eax, [esp + 0x38]
push eax
push 0x6c4a50
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [esp + 0x14]
call ebx
jmp 0x50bea7
push 0x4001
mov ebx, 0x2b4
mov ebp, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
push ebx
push eax
push esi
push ebp
call edi
test eax, eax
je 0x50be83
mov eax, dword [esp + 0x30]
mov dword [0x6c4c58], eax
push 0x200
push ebx
lea eax, [esp + 0x34]
push eax
push esi
push ebp
call edi
test eax, eax
je 0x50bea7
lea eax, [esp + 0x38]
push eax
push 0x6c4a50
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, 0xa4
xor eax, eax
push esi
push eax
push 0x6c4c68
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6c4c68], 0x19
mov dword [0x6c4c6c], esi
mov dword [0x6c4c70], 0x50b33b
mov dword [0x6c4c74], 0x50b4fc
mov dword [0x6c4c84], 0x50b581
mov dword [0x6c4c80], 0x50b514
mov dword [0x6c4c98], 0x50b53b
mov dword [0x6c4430], 1
mov edi, dword [esp + 0x2fc]
lea eax, [esp + 0x2f4]
push eax
and edi, 0x100
lea eax, [esp + 0x2f4]
push eax
mov esi, edi
lea eax, [esp + 0x2f4]
neg esi
push eax
sbb esi, esi
lea eax, [esp + 0x2f4]
and esi, 0xfffeffff
push eax
add esi, 0x50010003
call fcn.00518488
xor eax, eax
push eax
push dword [0x6c2524]
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [eax]
push 0x15e
push dword [esp + 0x304]
push dword [esp + 0x304]
push dword [esp + 0x304]
push esi
xor esi, esi
push esi
push str.ComboBoxEx32
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x50c0b5
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x50c00c
push esi
push esi
push 0x407
push ebx
call ebp
mov edi, eax
mov eax, dword [0x6c4c64]
test eax, eax
jne 0x50bfdc
push str.shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x50bfd3
push str.SHAutoComplete
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6c4c64], eax
jmp 0x50bfd8
mov eax, dword [0x6c4c64]
test eax, eax
je 0x50bfe1
push 1
push edi
call eax
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x50b275
push 0xfffffffffffffffc
push edi
call esi
push 0xfffffffffffffff0
push edi
mov dword [0x6c4d0c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10000
push eax
push 0xfffffffffffffff0
push edi
call esi
xor esi, esi
push dword [0x6c4c5c]
push esi
push 0x402
push ebx
call ebp
push dword [esp + 0x2e4]
push dword [0x6c7ea4]
call fcn.0052d8e3
mov esi, eax
mov eax, dword [esp + 0x2fc]
push 0x208
push 8
mov dword [esi + 0x10], eax
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x6c4c68
push ebx
push esi
push dword [esp + 0x2f0]
mov dword [esi + 0x14], eax
call fcn.00512b57
or dword [0x6bda3c], 0xffffffff
mov edi, 0x153
push 0xf
push 0xffffffffffffffff
push edi
push dword [esi]
mov ebx, eax
call ebp
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2f4]
sub ecx, 0xf
sub eax, ecx
mov dword [0x6bda3c], ecx
push eax
push 0xffffffffffffffff
push edi
push dword [esi]
call ebp
push dword [esp + 0x2f8]
push esi
call fcn.0050b581
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2d0
ret 0x1c