Function at 0x1005130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
push ebx
push esi
push edi
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_Ordinal_136]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 0x192
push dword [ebp - 4]
call ebx
mov esi, 0x104
lea eax, [ebp - 0x99c]
push esi
push eax
push 0x71
push dword [0x1008100]
call dword [sym.imp.SHLWAPI.dll_Ordinal_107]
lea eax, [ebp - 0x99c]
xor edi, edi
push eax
push edi
push 0x180
push dword [ebp - 4]
call ebx
mov ebx, 0x1008108
push ebx
push dword [ebp + 8]
call fcn.01005502
lea eax, [ebp - 0x57c]
push esi
push eax
call fcn.010050c2
lea eax, [ebp - 0x57c]
push eax
push dword [ebp + 8]
call fcn.01005502
lea eax, [ebp - 0x57c]
push eax
push edi
push edi
push 0x27
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10051f7
lea eax, [ebp - 0x57c]
push eax
push dword [ebp + 8]
call fcn.01005502
push 0x1008328
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1005214
push 0x1008328
push dword [ebp + 8]
call fcn.01005502
mov ebx, 0x1008538
push ebx
call fcn.0100319d
test eax, eax
jne 0x1005238
push edi
push edi
push 0x186
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_136]
jmp 0x10053e5
lea eax, [ebp - 0x68]
push eax
push 0x1001d90
call fcn.010024a7
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001cfc
lea eax, [ebp - 0x68]
push 0x1001644
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_312]
push edi
push edi
lea eax, [ebp - 0x16c]
push esi
push eax
lea eax, [ebp - 0x374]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10
lea eax, [ebp - 0x16c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
cmp eax, dword [0x1008994]
je 0x10052a8
mov dword [0x1008994], eax
mov dword [0x1008990], 1
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001ce4
lea eax, [ebp - 0x68]
push 0x1001614
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_312]
push edi
push edi
lea eax, [ebp - 0x16c]
push esi
push eax
lea eax, [ebp - 0x374]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10
lea eax, [ebp - 0x16c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005309
mov dword [0x1008014], eax
mov dword [0x1008010], 1
jmp 0x100531c
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x1008014], eax
mov dword [0x1008010], edi
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001cd4
lea eax, [ebp - 0x68]
push 0x10015a0
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_312]
lea eax, [ebp - 0x374]
push 0x1001cd4
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x10053c1
lea eax, [ebp - 0x374]
push 0x10b
push eax
lea eax, [ebp - 0x794]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x794]
push 7
push eax
push 0x1001a08
lea esi, [ebp - 0x794]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100538c
lea esi, [ebp - 0x786]
push esi
push 0x1008328
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x1009210
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push 0x1001cb8
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_85]
push dword [ebp + 8]
call fcn.01005526
jmp 0x10053e5
push edi
push edi
push 0x186
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_136]
push esi
push 0x1009210
push 0x71
push dword [0x1008100]
call dword [sym.imp.SHLWAPI.dll_Ordinal_107]
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret 4