Function at 0x40afe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x483834
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4ace78]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x4ace78]
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.00401630
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.00401630
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 2
call fcn.00401a80
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 0x40b0c6
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 3
call fcn.00401a80
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 0x40b135
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 4
call fcn.00401a80
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 0x40b1a4
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 5
call fcn.00401a80
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 0x40b213
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 6
call fcn.00401a80
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 0x40b282
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 7
call fcn.00401a80
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 0x40b2f1
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 8
call fcn.00401a80
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 0x40b360
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 9
call fcn.00401a80
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 0x40b3cf
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xa
call fcn.00401a80
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 0x40b43e
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xb
call fcn.00401a80
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 0x40b4ad
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xc
call fcn.00401a80
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 0x40b51c
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xd
call fcn.00401a80
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 0x40b58b
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xe
call fcn.00401a80
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 0x40b5fa
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xf
call fcn.00401a80
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 0x40b669
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.00401630
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00409100
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0x10
call fcn.00401a80
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 0x40b6d8
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 0x40b744
push str.win
push ecx
call fcn.0046b9b7
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40b744
sub eax, ecx
sar eax, 1
js 0x40b744
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046be40
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.00403690
jmp 0x40b9bf
cmp dword [ecx - 0xc], 0
jl 0x40b9bf
push str.syswow64
push ecx
call fcn.0046b9b7
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40b868
sub eax, ecx
sar eax, 1
js 0x40b868
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046be40
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.00401ba0
push str.SysWOW64
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x11
call fcn.004050f0
push 0x48bf08
push 0x48bf00
lea ecx, [esp + 0x18]
call fcn.00403690
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401630
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408b60
add esp, 4
test al, al
je 0x40b7fe
mov ecx, dword [esp + 0x10]
jmp 0x40b826
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0046be40
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.00403690
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 0x40b9bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b9bf
cmp dword [ecx - 0xc], 0
jl 0x40b9bf
push str.sys
push ecx
call fcn.0046b9b7
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40b8d0
sub eax, ecx
sar eax, 1
js 0x40b8d0
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046be40
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.00403690
jmp 0x40b9bf
cmp dword [ecx - 0xc], 0
jl 0x40b9bf
push str.target
push ecx
call fcn.0046b9b7
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40b91b
sub eax, ecx
sar eax, 1
js 0x40b91b
lea ecx, [esp + 0x10]
push ecx
call fcn.0040aca0
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x12
push str.target
jmp 0x40b9a3
cmp dword [ecx - 0xc], 0
jl 0x40b9bf
push 0x48c90c
push ecx
call fcn.0046b9b7
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40b963
sub eax, ecx
sar eax, 1
js 0x40b963
lea edx, [esp + 0x10]
push edx
call fcn.0040aca0
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x13
push 0x48c90c
jmp 0x40b9a3
cmp dword [ecx - 0xc], 0
jl 0x40b9bf
push 0x48c900
push ecx
call fcn.0046b9b7
add esp, 8
test eax, eax
je 0x40b9bf
sub eax, dword [esp + 0x23c]
sar eax, 1
js 0x40b9bf
lea eax, [esp + 0x10]
push eax
call fcn.0040aca0
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x14
push 0x48c900
lea ecx, [esp + 0x244]
call fcn.00403690
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.00401550
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004088d0
add esp, 8
test al, al
je 0x40b9ee
push 0x48bf08
push 0x48bf00
lea ecx, [esp + 0x244]
call fcn.00403690
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
call fcn.00401630
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 0x40ba2f
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 0x40ba5d
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.0046b9a8
add esp, 0x224
ret