Function at 0x4074d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x486be4
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b2098]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b2098]
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.00401380
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.00401380
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 2
call fcn.004022f0
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 0x4075b6
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 3
call fcn.004022f0
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 0x407625
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 4
call fcn.004022f0
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 0x407694
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 5
call fcn.004022f0
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 0x407703
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 6
call fcn.004022f0
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 0x407772
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 7
call fcn.004022f0
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 0x4077e1
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 8
call fcn.004022f0
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 0x407850
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 9
call fcn.004022f0
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 0x4078bf
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xa
call fcn.004022f0
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 0x40792e
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xb
call fcn.004022f0
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 0x40799d
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xc
call fcn.004022f0
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 0x407a0c
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xd
call fcn.004022f0
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 0x407a7b
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xe
call fcn.004022f0
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 0x407aea
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xf
call fcn.004022f0
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 0x407b59
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.00401380
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00405400
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0x10
call fcn.004022f0
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 0x407bc8
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 0x407c34
push str.win
push ecx
call fcn.00467d3a
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407c34
sub eax, ecx
sar eax, 1
js 0x407c34
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00467da0
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.00402d90
jmp 0x407eaf
cmp dword [ecx - 0xc], 0
jl 0x407eaf
push str.syswow64
push ecx
call fcn.00467d3a
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407d58
sub eax, ecx
sar eax, 1
js 0x407d58
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00467da0
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.00402410
push str.SysWOW64
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x11
call fcn.00403300
push 0x48fda0
push 0x48fd98
lea ecx, [esp + 0x18]
call fcn.00402d90
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004045c0
add esp, 4
test al, al
je 0x407cee
mov ecx, dword [esp + 0x10]
jmp 0x407d16
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00467da0
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.00402d90
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 0x407eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407eaf
cmp dword [ecx - 0xc], 0
jl 0x407eaf
push str.sys
push ecx
call fcn.00467d3a
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407dc0
sub eax, ecx
sar eax, 1
js 0x407dc0
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00467da0
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.00402d90
jmp 0x407eaf
cmp dword [ecx - 0xc], 0
jl 0x407eaf
push 0x4900bc
push ecx
call fcn.00467d3a
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407e0b
sub eax, ecx
sar eax, 1
js 0x407e0b
lea ecx, [esp + 0x10]
push ecx
call fcn.00407280
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x12
push 0x4900bc
jmp 0x407e93
cmp dword [ecx - 0xc], 0
jl 0x407eaf
push 0x4900ac
push ecx
call fcn.00467d3a
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407e53
sub eax, ecx
sar eax, 1
js 0x407e53
lea edx, [esp + 0x10]
push edx
call fcn.00407280
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x13
push 0x4900ac
jmp 0x407e93
cmp dword [ecx - 0xc], 0
jl 0x407eaf
push str.app
push ecx
call fcn.00467d3a
add esp, 8
test eax, eax
je 0x407eaf
sub eax, dword [esp + 0x23c]
sar eax, 1
js 0x407eaf
lea eax, [esp + 0x10]
push eax
call fcn.00407280
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x14
push str.app
lea ecx, [esp + 0x244]
call fcn.00402d90
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.00401310
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403c80
add esp, 8
test al, al
je 0x407ede
push 0x48fda0
push 0x48fd98
lea ecx, [esp + 0x244]
call fcn.00402d90
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
call fcn.00401380
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 0x407f1f
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 0x407f4d
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.00467b90
add esp, 0x224
ret