Function at 0x406480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46ceb4
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x490d1c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x238]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x234], 0
call fcn.00401920
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x23c]
push 0x26
push str.programfiles
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov bl, 1
mov esi, esp
push eax
mov byte [esp + 0x240], bl
call fcn.00401920
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 2
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x26
push str.pf
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 3
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4065d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 5
push str.document
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 4
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x19
push str.commondesktop
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 5
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4066b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x10
push str.desktop
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 6
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0xb
push str.startmenu
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 7
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406791
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0xb
push str.startupmenu
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 8
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x16
push str.commonstartmenu
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 9
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40686f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x16
push str.commonstartupmenu
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xa
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x18
push str.commonstartup
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xb
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40694d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 7
push str.startup
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xc
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4069bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x17
push str.commonprograms
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xd
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406a2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 0x17
push str.startupprograms
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xe
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406a9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 2
push str.programs
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xf
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
push 2
push str.startupprograms
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401920
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404750
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0x10
call fcn.00401d40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x23c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x406be4
push str.win
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x406be4
sub eax, ecx
sar eax, 1
js 0x406be4
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00455e70
add esp, 0xc
push 0x104
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x1c]
push eax
push str.win
lea ecx, [esp + 0x244]
call fcn.00402920
jmp 0x406e5f
cmp dword [ecx - 0xc], 0
jl 0x406e5f
push str.syswow64
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x406d08
sub eax, ecx
sar eax, 1
js 0x406d08
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00455e70
add esp, 0xc
push 0x104
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.00401e60
push str.SysWOW64
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x11
call fcn.00403030
push 0x474c3c
push 0x474c34
lea ecx, [esp + 0x18]
call fcn.00402920
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401920
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00403ce0
add esp, 4
test al, al
je 0x406c9e
mov ecx, dword [esp + 0x10]
jmp 0x406cc6
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00455e70
add esp, 0xc
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x1c]
push ecx
push str.syswow64
lea ecx, [esp + 0x244]
call fcn.00402920
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406e5f
cmp dword [ecx - 0xc], 0
jl 0x406e5f
push str.sys
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x406d70
sub eax, ecx
sar eax, 1
js 0x406d70
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00455e70
add esp, 0xc
push 0x104
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1c]
push eax
push str.sys
lea ecx, [esp + 0x244]
call fcn.00402920
jmp 0x406e5f
cmp dword [ecx - 0xc], 0
jl 0x406e5f
push 0x474ecc
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x406dbb
sub eax, ecx
sar eax, 1
js 0x406dbb
lea ecx, [esp + 0x10]
push ecx
call fcn.00406230
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x12
push 0x474ecc
jmp 0x406e43
cmp dword [ecx - 0xc], 0
jl 0x406e5f
push 0x474ebc
push ecx
call fcn.00455a19
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x406e03
sub eax, ecx
sar eax, 1
js 0x406e03
lea edx, [esp + 0x10]
push edx
call fcn.00406230
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x13
push 0x474ebc
jmp 0x406e43
cmp dword [ecx - 0xc], 0
jl 0x406e5f
push str.app
push ecx
call fcn.00455a19
add esp, 8
test eax, eax
je 0x406e5f
sub eax, dword [esp + 0x23c]
sar eax, 1
js 0x406e5f
lea eax, [esp + 0x10]
push eax
call fcn.00406230
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x14
push str.app
lea ecx, [esp + 0x244]
call fcn.00402920
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.00401990
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004039b0
add esp, 8
test al, al
je 0x406e8e
push 0x474c3c
push 0x474c34
lea ecx, [esp + 0x244]
call fcn.00402920
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
call fcn.00401920
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ecf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00455930
add esp, 0x224
ret