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

Disassembly:
push 0xffffffffffffffff
push 0x4d59f2
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x834]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x844]
mov eax, dword [esp + 0x848]
mov esi, edx
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [edx - 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ecx
jg 0x435a90
mov eax, dword [ebp]
mov edx, dword [eax + 8]
push 2
mov ecx, ebp
call edx
jmp 0x435fcd
mov eax, dword [ebp + 0x48]
cmp dword [eax - 0xc], ebx
lea edi, [ebp + 0x48]
jg 0x435aaa
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 3
mov ecx, ebp
jmp 0x435fcb
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0042f1b0
push eax
mov ecx, edi
mov dword [esp + 0x840], ebx
call fcn.0040fdf0
mov dword [esp + 0x83c], 0xffffffff
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 0x435af0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x435b0a
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 dword [esp + 0x83c], 1
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x435b3f
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 + 0x1c], eax
mov byte [esp + 0x83c], 2
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jle 0x435c13
push 0x3a
push eax
call fcn.004ae2db
add esp, 8
cmp eax, ebx
je 0x435c13
sub eax, dword [esi]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x435c13
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00431500
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x840], 3
call fcn.0040fdf0
mov byte [esp + 0x83c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004315e0
push eax
mov ecx, esi
mov byte [esp + 0x840], 4
call fcn.0040fdf0
mov byte [esp + 0x83c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435c13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x435c2d
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 + 0x18], eax
mov byte [esp + 0x83c], 5
mov eax, dword [esi]
push 0x51f894
push eax
call fcn.004ad47d
add esp, 8
cmp dword [esp + 0x84c], ebx
jne 0x435d39
test eax, eax
je 0x435d27
mov eax, dword [esi]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x435d27
mov eax, dword [esi]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x435cf3
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435cd8
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
push 7
push ebx
call esi
test eax, eax
jne 0x435cd8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410090
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jne 0x435f05
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 7
jmp 0x435e81
lea ecx, [esp + 0x2c]
push ecx
jmp 0x435efc
mov esi, dword [esi]
push str.Programs
push esi
call fcn.004ad47d
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
jne 0x435d19
add ebp, 0x2c
push ebp
call fcn.0040fdf0
jmp 0x435f05
add ebp, 0x24
push ebp
call fcn.0040fdf0
jmp 0x435f05
add ebp, 0x28
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040fdf0
jmp 0x435f05
test eax, eax
je 0x435e99
mov eax, dword [esi]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x435e99
mov eax, dword [esi]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x435dc0
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435daf
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 0x18
push ebx
call esi
test eax, eax
jne 0x435daf
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], ebx
jne 0x435f05
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0x18
jmp 0x435ee3
mov esi, dword [esi]
push str.Programs
push esi
call fcn.004ad47d
add esp, 8
test eax, eax
mov word [esp + 0x2c], bx
jne 0x435e38
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435e16
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0x17
push ebx
call esi
test eax, eax
jne 0x435e16
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
jne 0x435f05
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
push 0x17
push ebx
mov word [esp + 0x40], bx
call esi
test eax, eax
jne 0x435e91
lea eax, [esp + 0x2c]
push eax
jmp 0x435efc
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435e75
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
push 0x19
push ebx
call esi
test eax, eax
jne 0x435e75
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410090
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jne 0x435f05
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 0x19
push ebx
mov word [esp + 0x40], bx
call esi
test eax, eax
je 0x435ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x435f05
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x435ed7
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 0x16
push ebx
call esi
test eax, eax
jne 0x435ed7
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410090
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], ebx
jne 0x435f05
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0x16
push ebx
mov word [esp + 0x40], bx
call esi
test eax, eax
je 0x435ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x435f05
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410090
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0040fdf0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x435f2a
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x24]
call fcn.0042bca0
mov eax, dword [esp + 0x24]
push eax
lea edi, [esp + 0x24]
call fcn.0042bca0
mov ecx, edi
call fcn.0042d8f0
mov ecx, dword [esp + 0x28]
sub eax, 1
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov word [ecx], ax
mov byte [esp + 0x83c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435f7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x83c], 1
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 0x435fa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x83c], 0xffffffff
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 0x435fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x834]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.004ac89d
add esp, 0x82c
ret 0xc