Function at 0x4350a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4d8e70
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x854]
mov dword fs:[0], eax
mov eax, dword [esp + 0x868]
mov ebp, dword [esp + 0x864]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
jg 0x435110
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 2
mov ecx, ebp
call eax
jmp 0x4359e5
mov ecx, dword [ebp + 0x48]
cmp dword [ecx - 0xc], 0
lea esi, [ebp + 0x48]
jg 0x43512d
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 3
mov ecx, ebp
call eax
jmp 0x4359e5
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0042f1b0
push eax
mov ecx, esi
mov dword [esp + 0x860], 0
call fcn.0040fdf0
mov dword [esp + 0x85c], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004a08e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x435191
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x85c], 1
call fcn.004a08e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4351c6
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x85c], 2
call fcn.004a08e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4351f8
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x85c], 3
call fcn.004a08e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43522a
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x85c], 4
mov eax, dword [ebp + 0xa8]
lea esi, [ebp + 0xa8]
sub eax, 0x10
push eax
call fcn.0040ff10
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x30], edi
mov byte [esp + 0x85c], 5
mov ecx, dword [ebp + 0xb8]
mov ecx, dword [ecx - 0xc]
test ecx, ecx
lea eax, [ebp + 0xb8]
jle 0x4352f4
push eax
lea edx, [esp + 0x20]
push edx
lea esi, [esp + 0x38]
call fcn.00430c80
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x860], 6
call fcn.0040fdf0
mov byte [esp + 0x85c], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4352c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jle 0x4352e3
push str.XPlatform.exe
lea ecx, [esp + 0x24]
call fcn.0040da00
mov edi, dword [esp + 0x30]
jmp 0x43533a
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 4
mov ecx, ebp
call eax
jmp 0x4359b8
push esi
lea ecx, [esp + 0x20]
push ecx
push ebp
call fcn.0042b8d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x860], 7
call fcn.0040fdf0
mov byte [esp + 0x85c], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43533a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x86c], 0
lea esi, [edi - 0x10]
jne 0x435371
push 2
push ecx
mov dword [esp + 0x24], esp
mov ebx, esp
push esi
call fcn.0040ff10
add esp, 4
add eax, 0x10
lea ecx, [esp + 0x34]
mov dword [ebx], eax
mov ebx, dword [esp + 0x3c]
push ecx
push ebp
mov ecx, ebx
call fcn.004344a0
jmp 0x43539b
push 1
push ecx
mov dword [esp + 0x24], esp
mov ebx, esp
push esi
call fcn.0040ff10
mov ecx, dword [esp + 0x40]
add esp, 4
lea edx, [esp + 0x34]
push edx
add eax, 0x10
push ebp
mov dword [ebx], eax
call fcn.004344a0
mov ebx, dword [esp + 0x34]
cmp eax, 0x80004005
jne 0x435474
mov byte [esp + 0x85c], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4353c7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x85c], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4353ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x85c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x85c], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43543f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x85c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43546a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x4359e7
push 0
push ecx
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.0040ff10
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, ebp
mov dword [edi], eax
call fcn.00433670
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x860], 8
call fcn.0040fdf0
mov byte [esp + 0x85c], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4354d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 0xc], 0
jne 0x435512
lea ecx, [esp + 0x30]
call fcn.00410230
lea ecx, [esp + 0x2c]
call fcn.00410230
lea ecx, [esp + 0x20]
call fcn.00410230
lea ecx, [esp + 0x28]
call fcn.00410230
lea ecx, [esp + 0x24]
call fcn.00410230
mov eax, 1
jmp 0x4359e7
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00433da0
lea ecx, [esp + 0x1c]
call fcn.00410230
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0040fdf0
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
je 0x43555c
lea eax, [esp + 0x30]
push eax
push ebp
mov esi, ebx
call fcn.0042bdb0
lea ecx, [esp + 0x38]
call fcn.00410110
mov byte [esp + 0x85c], 9
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
jle 0x4355ed
push 0x3a
push eax
call fcn.004ae2db
add esp, 8
cmp eax, edi
je 0x4355ed
sub eax, dword [ebx]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4355ed
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00431500
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x860], 0xa
call fcn.0040fdf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x85c], 9
call fcn.00410230
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004315e0
push eax
mov ecx, ebx
mov byte [esp + 0x860], 0xb
call fcn.0040fdd0
lea ecx, [esp + 0x1c]
call fcn.00410230
lea ecx, [esp + 0x18]
call fcn.00410110
mov byte [esp + 0x85c], 0xc
mov eax, dword [ebx]
push 0x51f894
push eax
call fcn.004ad47d
add esp, 8
cmp dword [esp + 0x86c], edi
jne 0x4356f2
test eax, eax
je 0x4356e0
mov eax, dword [ebx]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x4356e0
mov eax, dword [ebx]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x4356ac
mov word [esp + 0x4c], di
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435691
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x4c]
push ecx
push edi
push edx
push 7
push edi
call esi
test eax, eax
jne 0x435691
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410090
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
jne 0x4358be
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
push 7
jmp 0x43583a
lea ecx, [esp + 0x4c]
push ecx
jmp 0x4358b5
mov eax, dword [ebx]
push str.Programs
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
jne 0x4356d2
lea edx, [ebp + 0x2c]
push edx
call fcn.0040fdf0
jmp 0x4358be
lea eax, [ebp + 0x24]
push eax
call fcn.0040fdf0
jmp 0x4358be
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040fdf0
jmp 0x4358be
test eax, eax
je 0x435852
mov eax, dword [ebx]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x435852
mov eax, dword [ebx]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x435779
mov word [esp + 0x4c], di
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435768
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
push 0x18
push edi
call esi
test eax, eax
jne 0x435768
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], edi
jne 0x4358be
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
push 0x18
jmp 0x43589c
mov eax, dword [ebx]
push str.Programs
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
mov word [esp + 0x4c], di
jne 0x4357f1
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x4357cf
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
push 0x17
push edi
call esi
test eax, eax
jne 0x4357cf
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
jne 0x4358be
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x4c]
push ecx
push edi
push edx
push 0x17
push edi
mov word [esp + 0x60], di
call esi
test eax, eax
jne 0x43584a
lea eax, [esp + 0x4c]
push eax
jmp 0x4358b5
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x43582e
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x4c]
push ecx
push edi
push edx
push 0x19
push edi
call esi
test eax, eax
jne 0x43582e
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410090
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
jne 0x4358be
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
push 0x19
push edi
mov word [esp + 0x60], di
call esi
test eax, eax
je 0x4356a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4358be
mov word [esp + 0x4c], di
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435890
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
push 0x16
push edi
call esi
test eax, eax
jne 0x435890
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], edi
jne 0x4358be
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
push 0x16
push edi
mov word [esp + 0x60], di
call esi
test eax, eax
je 0x4358b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4358be
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410090
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.0040fdf0
mov ecx, dword [esp + 0x38]
cmp dword [ecx - 0xc], edi
je 0x4358e3
lea edx, [esp + 0x38]
push edx
lea edi, [esp + 0x28]
call fcn.0042bca0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00410050
mov esi, dword [esp + 0x40]
push esi
lea edi, [esp + 0x28]
mov byte [esp + 0x860], 0xd
call fcn.0042bca0
mov edi, dword [esp + 0x86c]
push esi
push ebp
mov eax, edi
mov ecx, ebx
call fcn.00436a30
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
mov esi, dword [esp + 0x40]
push ebp
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.00437150
push 0x51cd44
lea ecx, [esp + 0x20]
call fcn.00410140
push 0x51cd44
lea ecx, [esp + 0x38]
mov byte [esp + 0x860], 0xe
call fcn.00410140
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
mov byte [esp + 0x87c], 0xf
call fcn.0042caa0
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00410230
lea ecx, [esp + 0x1c]
call fcn.00410230
lea ecx, [esp + 0x3c]
call fcn.00410230
lea ecx, [esp + 0x18]
call fcn.00410230
lea ecx, [esp + 0x38]
call fcn.00410230
test esi, esi
jl 0x4354db
lea ecx, [esp + 0x30]
call fcn.00410230
lea ecx, [esp + 0x2c]
call fcn.00410230
lea ecx, [esp + 0x20]
call fcn.00410230
lea ecx, [esp + 0x28]
call fcn.00410230
lea ecx, [esp + 0x24]
call fcn.00410230
xor eax, eax
mov ecx, dword [esp + 0x854]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.004ac89d
add esp, 0x84c
ret 0xc