Function at 0x40b5b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x485be4
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4afe78]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x4afe78]
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.00401660
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.00401660
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 2
call fcn.00401ab0
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 0x40b696
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 3
call fcn.00401ab0
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 0x40b705
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 4
call fcn.00401ab0
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 0x40b774
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 5
call fcn.00401ab0
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 0x40b7e3
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 6
call fcn.00401ab0
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 0x40b852
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 7
call fcn.00401ab0
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 0x40b8c1
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 8
call fcn.00401ab0
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 0x40b930
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 9
call fcn.00401ab0
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 0x40b99f
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xa
call fcn.00401ab0
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 0x40ba0e
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xb
call fcn.00401ab0
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 0x40ba7d
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xc
call fcn.00401ab0
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 0x40baec
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xd
call fcn.00401ab0
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 0x40bb5b
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xe
call fcn.00401ab0
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 0x40bbca
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xf
call fcn.00401ab0
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 0x40bc39
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.00401660
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004095e0
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0x10
call fcn.00401ab0
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 0x40bca8
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 0x40bd14
push str.win
push ecx
call fcn.0046dc11
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40bd14
sub eax, ecx
sar eax, 1
js 0x40bd14
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046e0a0
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.00403660
jmp 0x40bf8f
cmp dword [ecx - 0xc], 0
jl 0x40bf8f
push str.syswow64
push ecx
call fcn.0046dc11
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40be38
sub eax, ecx
sar eax, 1
js 0x40be38
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046e0a0
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.00401bd0
push str.SysWOW64
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x11
call fcn.004050d0
push 0x48ef18
push 0x48ef10
lea ecx, [esp + 0x18]
call fcn.00403660
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401660
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408d30
add esp, 4
test al, al
je 0x40bdce
mov ecx, dword [esp + 0x10]
jmp 0x40bdf6
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0046e0a0
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.00403660
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 0x40bf8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40bf8f
cmp dword [ecx - 0xc], 0
jl 0x40bf8f
push str.sys
push ecx
call fcn.0046dc11
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40bea0
sub eax, ecx
sar eax, 1
js 0x40bea0
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0046e0a0
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.00403660
jmp 0x40bf8f
cmp dword [ecx - 0xc], 0
jl 0x40bf8f
push 0x48f93c
push ecx
call fcn.0046dc11
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40beeb
sub eax, ecx
sar eax, 1
js 0x40beeb
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b270
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x12
push 0x48f93c
jmp 0x40bf73
cmp dword [ecx - 0xc], 0
jl 0x40bf8f
push 0x48f92c
push ecx
call fcn.0046dc11
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x40bf33
sub eax, ecx
sar eax, 1
js 0x40bf33
lea edx, [esp + 0x10]
push edx
call fcn.0040b270
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x13
push 0x48f92c
jmp 0x40bf73
cmp dword [ecx - 0xc], 0
jl 0x40bf8f
push 0x48f920
push ecx
call fcn.0046dc11
add esp, 8
test eax, eax
je 0x40bf8f
sub eax, dword [esp + 0x23c]
sar eax, 1
js 0x40bf8f
lea eax, [esp + 0x10]
push eax
call fcn.0040b270
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x14
push 0x48f920
lea ecx, [esp + 0x244]
call fcn.00403660
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.00401580
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408980
add esp, 8
test al, al
je 0x40bfbe
push 0x48ef18
push 0x48ef10
lea ecx, [esp + 0x244]
call fcn.00403660
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
call fcn.00401660
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 0x40bfff
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 0x40c02d
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.0046dc02
add esp, 0x224
ret