Function at 0x6126c8
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
mov ebx, eax
xor eax, eax
push ebp
push 0x6129aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040b9c8
xor eax, eax
push ebp
push 0x612722
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00612674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x612734
cmp dword [ebp - 0xc], 0
je 0x6127a0
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 0xc]
call fcn.004292e0
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0xc]
call fcn.0040bddc
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x6129c4
call fcn.0040cdd8
test eax, eax
jle 0x61278a
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x6129e4
call fcn.0040cdd8
test eax, eax
jle 0x61278a
lea eax, [ebp - 0xc]
call fcn.0040b9a4
cmp dword [ebp - 0xc], 0
je 0x6127a0
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
jne 0x6127c6
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00661c1c
cmp dword [ebp - 0xc], 0
je 0x6127c6
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
je 0x6127d7
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040be84
cmp dword [ebp - 4], 0
jne 0x612830
xor eax, eax
push ebp
push 0x61281e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 0x10
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 0x612830
cmp dword [ebp - 4], 0
jne 0x612889
xor eax, eax
push ebp
push 0x612877
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 0
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 0x612889
cmp dword [ebp - 4], 0
jne 0x6128fc
xor eax, eax
push ebp
push 0x6128ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x6128e0
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x6128e0
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 0x6128fc
cmp dword [ebp - 4], 0
jne 0x61296f
xor eax, eax
push ebp
push 0x61295d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x10
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x612953
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x612953
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 0x61296f
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 0x6129b1
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