Function at 0x42e390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x420], eax
push edi
test esi, esi
je 0x42e6de
mov edi, dword [ebp + 0x28]
cmp edi, 0x104
jb 0x42e6de
push ebx
push str.InitialFolder_s
call fcn.00469390
mov eax, dword [ebp - 0x41c]
add esp, 8
test eax, eax
je 0x42e429
push 0x104
push eax
push 0x104
push 0x4b36e0
call fcn.004703d1
add esp, 0x10
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x42e44b
push 0x104
push eax
push 0x104
push 0x4b38e8
call fcn.004703d1
add esp, 0x10
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42e46d
push 0x104
push eax
push 0x104
push 0x4b3af0
call fcn.004703d1
add esp, 0x10
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x42e48f
push 0x104
push eax
push 0x104
push 0x4b2498
call fcn.004703d1
add esp, 0x10
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x42e4b1
push 0x104
push eax
push 0x104
push 0x4b26a0
call fcn.004703d1
add esp, 0x10
xor eax, eax
push eax
mov word [0x4b28a8], ax
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f7e0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f7e0
add esp, 0x18
test ebx, ebx
je 0x42e517
cmp word [ebx], 0
je 0x42e517
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004703d1
add esp, 0x10
jmp 0x42e529
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x424]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x44c], xmm0
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x20c]
movdqu xmmword [ebp - 0x43c], xmm0
push eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x418]
push eax
push 0x4b38e8
push str.Title_s_StatusText_s_InitialPath_s
mov dword [ebp - 0x43c], 0x34
mov dword [ebp - 0x440], 0x4b38e8
mov dword [ebp - 0x438], 0x42e170
call fcn.00469390
add esp, 0x10
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x42e680
push 0x206
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0046f7e0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x42e619
push str.SHGetPathFromIDList_ok_Buffer_s
call fcn.00469390
push edi
push ebx
push esi
call fcn.0046f7e0
lea eax, [edi - 1]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call fcn.004703d1
add esp, 0x24
mov ebx, 1
jmp 0x42e626
push str.SHGetPathFromIDList_failed_wBuffer_s
call fcn.00469390
add esp, 8
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x42e6c5
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x42e6c5
push dword [ebp - 0x41c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
push 0x104
cmp word [0x4b28a8], bx
jne 0x42e69e
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.004703d1
jmp 0x42e6af
push 0x4b28a8
push edi
push esi
call fcn.004703d1
mov ebx, 1
add esp, 0x10
push 0x4b28a8
push esi
push str.lpwBuf_s_g_wPath_s
call fcn.00469390
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret