Function at 0x407070
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47af74
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a3e28]
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.00401590
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.00401590
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 2
call fcn.00401990
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 0x407156
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 3
call fcn.00401990
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 0x4071c5
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 4
call fcn.00401990
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 0x407234
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 5
call fcn.00401990
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 0x4072a3
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 6
call fcn.00401990
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 0x407312
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 7
call fcn.00401990
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 0x407381
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 8
call fcn.00401990
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 0x4073f0
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 9
call fcn.00401990
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 0x40745f
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xa
call fcn.00401990
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 0x4074ce
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xb
call fcn.00401990
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 0x40753d
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xc
call fcn.00401990
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 0x4075ac
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xd
call fcn.00401990
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 0x40761b
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xe
call fcn.00401990
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 0x40768a
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0xf
call fcn.00401990
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 0x4076f9
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.00401590
lea ecx, [esp + 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00404d40
add esp, 0x10
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x234], 0x10
call fcn.00401990
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 0x407768
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 0x4077d4
push str.win
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x4077d4
sub eax, ecx
sar eax, 1
js 0x4077d4
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0045c3c0
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.00402510
jmp 0x407a4f
cmp dword [ecx - 0xc], 0
jl 0x407a4f
push str.syswow64
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x4078f8
sub eax, ecx
sar eax, 1
js 0x4078f8
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0045c3c0
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.00401ab0
push str.SysWOW64
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x11
call fcn.00402c20
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x18]
call fcn.00402510
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401590
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00403f00
add esp, 4
test al, al
je 0x40788e
mov ecx, dword [esp + 0x10]
jmp 0x4078b6
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0045c3c0
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.00402510
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 0x407a4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407a4f
cmp dword [ecx - 0xc], 0
jl 0x407a4f
push str.sys
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x407960
sub eax, ecx
sar eax, 1
js 0x407960
push 0x208
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0045c3c0
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.00402510
jmp 0x407a4f
cmp dword [ecx - 0xc], 0
jl 0x407a4f
push 0x483e74
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x4079ab
sub eax, ecx
sar eax, 1
js 0x4079ab
lea ecx, [esp + 0x10]
push ecx
call fcn.00406e20
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x12
push 0x483e74
jmp 0x407a33
cmp dword [ecx - 0xc], 0
jl 0x407a4f
push 0x483e64
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x244]
add esp, 8
test eax, eax
je 0x4079f3
sub eax, ecx
sar eax, 1
js 0x4079f3
lea edx, [esp + 0x10]
push edx
call fcn.00406e20
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x13
push 0x483e64
jmp 0x407a33
cmp dword [ecx - 0xc], 0
jl 0x407a4f
push str.app
push ecx
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x407a4f
sub eax, dword [esp + 0x23c]
sar eax, 1
js 0x407a4f
lea eax, [esp + 0x10]
push eax
call fcn.00406e20
add esp, 4
mov eax, dword [eax]
push eax
mov byte [esp + 0x234], 0x14
push str.app
lea ecx, [esp + 0x244]
call fcn.00402510
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.00401430
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004035a0
add esp, 8
test al, al
je 0x407a7e
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x244]
call fcn.00402510
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
push eax
call fcn.00401590
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 0x407abf
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 0x407aed
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.0045bdbc
add esp, 0x224
ret