Function at 0x406b4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4306e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov dword [ebp - 0x160], ecx
lea ecx, [ebp - 0x10]
call fcn.00401fc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408f60
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00409b86
and eax, 0xff
test eax, eax
je 0x406bb1
lea eax, [ebp - 0x1c]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x406bbf
lea ecx, [ebp - 0x1c]
push ecx
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x10]
call fcn.004260d7
push 0x444f54
lea ecx, [ebp - 0x10]
call fcn.0042632a
push 0x449bbc
lea ecx, [ebp - 0x14]
call fcn.00425fbc
mov byte [ebp - 4], 2
push 0x449bc0
lea ecx, [ebp - 0x20]
call fcn.00425fbc
mov byte [ebp - 4], 3
push 0x444f58
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [0x449e64]
call fcn.00407f98
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x168]
push edx
lea ecx, [ebp - 0x20]
call fcn.00426087
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x150]
call fcn.00425f4e
push 0x449bc4
lea eax, [ebp - 0x20]
push eax
call fcn.00407a20
and eax, 0xff
test eax, eax
je 0x406dcc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00426087
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x130]
call fcn.00425cc3
mov byte [ebp - 4], 5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x130]
call fcn.00426366
push 0x444f8c
lea ecx, [ebp - 0x130]
call fcn.0042632a
lea ecx, [ebp - 0x14c]
call fcn.0040d5e1
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x130]
call fcn.00408ae0
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040d6a4
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], 0
cmp dword [ebp - 0x128], 0
je 0x406d3f
lea ecx, [ebp - 0x14c]
call fcn.0040d8c4
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x14c]
call fcn.0040d88b
test eax, eax
je 0x406d1f
jmp 0x406cf4
lea ecx, [ebp - 0x14c]
call fcn.00406320
test eax, eax
je 0x406d3d
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
jmp 0x406cf4
cmp dword [ebp - 0x12c], 1
jle 0x406dac
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.00426087
push 0x444f94
lea ecx, [ebp - 0x14]
call fcn.0042632a
push 0x444f98
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [0x449e64]
call fcn.00407f98
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x170]
push edx
lea ecx, [ebp - 0x14]
call fcn.00426366
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x154]
call fcn.00425f4e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14c]
call fcn.0040d61e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.00425f4e
jmp 0x406e17
push 0x444fd0
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [0x449e64]
call fcn.00407f98
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x178], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x178]
push edx
lea ecx, [ebp - 0x14]
call fcn.00426087
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x158]
call fcn.00425f4e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00426366
push 1
push 1
lea ecx, [ebp - 0x10]
call fcn.00408ae0
push eax
mov ecx, dword [ebp - 0x160]
call fcn.00406e8c
mov dword [ebp - 0x15c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00425f4e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00425f4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408f7f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00425f4e
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret