Function at 0x6123d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x612666
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040b9c8
lea eax, [ebp - 8]
call fcn.0040b9c8
cmp dword [ebp - 8], 0
jne 0x612434
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.006623fc
cmp dword [ebp - 0xc], 0
je 0x612434
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
je 0x612445
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040be84
cmp dword [ebp - 4], 0
jne 0x612493
xor eax, eax
push ebp
push 0x612481
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x224]
call fcn.004da1bc
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040c54c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x612493
cmp dword [ebp - 4], 0
jne 0x6124ec
xor eax, eax
push ebp
push 0x6124da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 5
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6124ec
cmp dword [ebp - 4], 0
jne 0x612545
xor eax, eax
push ebp
push 0x612533
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 5
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x612545
cmp dword [ebp - 4], 0
jne 0x6125b8
xor eax, eax
push ebp
push 0x6125a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 5
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61259c
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61259c
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6125b8
cmp dword [ebp - 4], 0
jne 0x61262b
xor eax, eax
push ebp
push 0x612619
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 5
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61260f
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61260f
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61262b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040be38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61266d
lea eax, [ebp - 0x224]
call fcn.0040b9a4
lea eax, [ebp - 0xc]
call fcn.0040b9a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba3c
pop eax
jmp eax