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

Disassembly:
push 0xffffffffffffffff
push 0x4d58dd
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
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 + 0x830]
mov dword fs:[0], eax
mov eax, dword [esp + 0x840]
mov esi, dword [esp + 0x844]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x436b43
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x838], ebx
mov ecx, dword [edi + 0x44]
cmp dword [ecx - 0xc], ebx
jg 0x436ba7
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 2
mov ecx, edi
call eax
mov esi, dword [esp + 0x20]
push ebx
mov ecx, esi
call fcn.00410140
mov dword [esp + 0x838], 0xffffffff
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x437123
mov ecx, dword [edi + 0x48]
cmp dword [ecx - 0xc], ebx
lea ebp, [edi + 0x48]
jg 0x436bdd
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 3
mov ecx, edi
call eax
mov esi, dword [esp + 0x20]
push ebx
mov ecx, esi
call fcn.00410140
mov dword [esp + 0x838], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x436b87
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0042f1b0
push eax
mov ecx, ebp
mov byte [esp + 0x83c], 1
call fcn.0040fdf0
mov byte [esp + 0x838], bl
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 0x436c20
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 0x436c3a
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 + 0x838], 2
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x436c6c
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 + 0x838], 3
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jle 0x436d40
push 0x3a
push eax
call fcn.004ae2db
add esp, 8
cmp eax, ebx
je 0x436d40
sub eax, dword [esi]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x436d40
lea ecx, [ebp + 1]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00431500
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x83c], 4
call fcn.0040fdf0
mov byte [esp + 0x838], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004315e0
push eax
mov ecx, esi
mov byte [esp + 0x83c], 5
call fcn.0040fdf0
mov byte [esp + 0x838], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436d40
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 0x436d5a
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 + 0x14], eax
mov byte [esp + 0x838], 6
mov eax, dword [esi]
push 0x51f894
push eax
call fcn.004ad47d
add esp, 8
cmp dword [esp + 0x848], ebx
jne 0x436e66
test eax, eax
je 0x436e54
mov eax, dword [esi]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x436e54
mov eax, dword [esi]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x436e20
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x436e05
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
push 7
push ebx
call esi
test eax, eax
jne 0x436e05
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00410090
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jne 0x437032
mov eax, dword [edi + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 7
jmp 0x436fae
lea ecx, [esp + 0x2c]
push ecx
jmp 0x437029
mov esi, dword [esi]
push str.Programs
push esi
call fcn.004ad47d
add esp, 8
test eax, eax
lea ecx, [esp + 0x14]
jne 0x436e46
add edi, 0x2c
push edi
call fcn.0040fdf0
jmp 0x437032
add edi, 0x24
push edi
call fcn.0040fdf0
jmp 0x437032
add edi, 0x28
push edi
lea ecx, [esp + 0x18]
call fcn.0040fdf0
jmp 0x437032
test eax, eax
je 0x436fc6
mov eax, dword [esi]
push str.start_menu
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
je 0x436fc6
mov eax, dword [esi]
push str.StartUp
push eax
call fcn.004ad47d
add esp, 8
test eax, eax
jne 0x436eed
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x436edc
mov eax, dword [edi + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 0x18
push ebx
call esi
test eax, eax
jne 0x436edc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410090
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
jne 0x437032
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0x18
jmp 0x437010
mov esi, dword [esi]
push str.Programs
push esi
call fcn.004ad47d
add esp, 8
test eax, eax
mov word [esp + 0x2c], bx
jne 0x436f65
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x436f43
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0x17
push ebx
call esi
test eax, eax
jne 0x436f43
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00410090
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x437032
mov edx, dword [edi + 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 0x436fbe
lea eax, [esp + 0x2c]
push eax
jmp 0x437029
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x436fa2
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
push 0x19
push ebx
call esi
test eax, eax
jne 0x436fa2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00410090
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jne 0x437032
mov eax, dword [edi + 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 0x436e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437032
mov word [esp + 0x2c], bx
call fcn.0042f480
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x437004
mov eax, dword [edi + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push 0x16
push ebx
call esi
test eax, eax
jne 0x437004
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410090
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
jne 0x437032
mov ecx, dword [edi + 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 0x437024
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437032
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00410090
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040fdf0
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], ebx
je 0x437057
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x1c]
call fcn.0042bca0
mov edx, dword [esp + 0x28]
push edx
lea edi, [esp + 0x1c]
call fcn.0042bca0
push str..lnk
mov ecx, edi
call fcn.0040da00
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.0040ff10
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x83c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4370b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x838], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4370d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x838], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4370f6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x838], 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 0x437121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x830]
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, 0x828
ret 0xc