Function at 0x48f624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4871
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [esp + 0x14], ebx
cmp eax, esi
jne 0x48f6b3
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x250], edi
cmp eax, edi
je 0x48f6a9
push edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
call fcn.00431050
jmp 0x48f6ab
xor eax, eax
push eax
mov ecx, ebx
jmp 0x48f9e0
push 2
pop ebx
cmp eax, ebx
jne 0x48f6f6
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x250], esi
cmp eax, edi
je 0x48f6ee
push esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
call fcn.00431050
jmp 0x48f6f0
xor eax, eax
push eax
jmp 0x48f9dc
push 3
pop esi
cmp eax, esi
jne 0x48f743
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [esp + 0x20]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x48f9ed
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x250], ebx
cmp eax, edi
je 0x48f6ee
mov eax, dword [esp + 0x1c]
jmp 0x48f6e0
push 4
pop ebx
cmp eax, ebx
jne 0x48f797
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [esp + 0x20]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x48f9ed
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x250], esi
cmp eax, edi
je 0x48f6ee
mov eax, dword [esp + 0x20]
jmp 0x48f6e0
push 5
pop esi
cmp eax, esi
jne 0x48f7ef
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [esp + 0x20]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x48f9ed
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x250], ebx
cmp eax, edi
je 0x48f6ee
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
jmp 0x48f6e0
cmp eax, 6
jne 0x48f845
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [esp + 0x20]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x48f9ed
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x250], esi
cmp eax, edi
je 0x48f6ee
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
jmp 0x48f6e0
push 7
pop ebx
cmp eax, ebx
jne 0x48f8fa
xor edi, edi
push 0x104
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.004d7710
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0xc
push edi
push 0x10
lea eax, [esp + 0x34]
push eax
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x48f89d
push 0x51e624
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x2c]
call fcn.0048fd70
mov dword [esp + 0x10], eax
push edi
push 0x19
lea eax, [esp + 0x34]
push eax
push edi
call ebx
test eax, eax
je 0x48f8c5
push 0x51e624
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x2c]
call fcn.0048fd70
add dword [esp + 0x10], eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x250], 6
cmp eax, edi
je 0x48f6ee
mov eax, dword [esp + 0x10]
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
jmp 0x48f6e7
cmp eax, 9
jne 0x48f963
push 0x104
xor edi, edi
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004d7710
add esp, 0xc
push edi
push 0x10
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48f932
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x250], ebx
cmp esi, edi
je 0x48f95e
lea ebx, [esp + 0x2c]
mov dword [esi], edi
call fcn.0040c040
jmp 0x48f960
xor esi, esi
push esi
jmp 0x48f9dc
cmp eax, 0xa
jne 0x48f9ed
push 0x104
xor edi, edi
lea eax, [esp + 0x138]
push edi
push eax
call fcn.004d7710
add esp, 0xc
push edi
push 0x19
lea eax, [esp + 0x13c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48f9a8
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x250], 8
cmp esi, edi
je 0x48f9db
lea ebx, [esp + 0x134]
mov dword [esi], edi
call fcn.0040c040
mov edi, esi
push edi
mov ecx, dword [esp + 0x18]
or dword [esp + 0x254], 0xffffffff
call fcn.0040ed50
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 8