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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510686
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x573798
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4747a0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jae 0x4747d9
xor ecx, ecx
movzx eax, word [ecx + 0x571520]
lea ecx, [ecx + 2]
mov word [ecx + 0x573796], ax
test ax, ax
jne 0x4747b6
push 0x573798
call fcn.0041eee0
add esp, 4
push str.AUTO_FOLDER_CREATION
push esi
call fcn.0042db10
push str.SETUP_OPTIONS_INFO
call fcn.004bb8b0
add esp, 0xc
push eax
push str.SETUP_OPTIONS_TITLE
call fcn.004bb8b0
mov ecx, dword [0x573768]
add esp, 4
push eax
push 0x1f5
call fcn.00423cb0
push 0
call fcn.0046d7f0
add esp, 4
cmp dword [0x571514], 0
jne 0x47483d
xor eax, eax
mov dword [0x571514], 1
cmp dword [0x571504], eax
sete al
mov dword [0x55ba90], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x400
push 0xc5
push 0x640
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x573798
push 0x640
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
cmp dword [0x571504], 0
je 0x474a0e
push str.SETUP_UPGRADE_DESTINATION
call fcn.004bb8b0
add esp, 4
push eax
push 0x64e
push esi
call edi
push eax
call ebx
push 0
push 0x640
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x57d
push esi
call edi
push eax
call ebx
push 0
push 0x64d
push esi
call edi
push eax
call ebx
push 0
push 0x17
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 0x14
call fcn.004e1f60
mov eax, esp
push 3
push 9
push 0x525190
push eax
call fcn.00405530
mov dword [ebp - 0x848], eax
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
cmp word [ebp - 0x814], ax
jne 0x474924
xor ecx, ecx
jmp 0x47493f
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474930
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.004051a0
push dword [ebp - 0x848]
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.00403cd0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x474981
mov eax, dword [eax]
push eax
call fcn.00414f30
mov dword [0x55ba84], eax
add esp, 4
mov eax, dword [ebp - 0x830]
cmp eax, 8
jb 0x4749ad
inc eax
lea ecx, [ebp - 0x844]
push eax
push dword [ebp - 0x844]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
mov eax, dword [ebp - 0x818]
mov dword [ebp - 0x834], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4749ef
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
jmp 0x474a14
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [0x55ba98], 0
jne 0x474a34
push 0
push 0x64b
push esi
mov dword [0x55ba80], 0
call edi
push eax
call ebx
push dword [0x55ba80]
push 0x64b
push esi
call edi
push eax
call fcn.00405b70
add esp, 8
push dword [0x55ba84]
push 0x64d
push esi
call edi
push eax
call fcn.00405b70
add esp, 8
push dword [0x55ba88]
push 0x648
push esi
call edi
push eax
call fcn.00405b70
add esp, 8
push dword [0x55ba8c]
push 0x64a
push esi
call edi
push eax
call fcn.00405b70
add esp, 8
push dword [0x55ba90]
push 0x602
push esi
call edi
push eax
call fcn.00405b70
add esp, 8
push dword [0x55ba94]
push 0x661
push esi
call edi
push eax
call fcn.00405b70
cmp dword [0x571504], 0
mov ecx, str.INSTALL
mov eax, str.UPGRADE
cmove eax, ecx
push eax
call fcn.0042dd00
push str.PREV
call fcn.0042dd60
push 1
call fcn.0042dab0
push 1
call fcn.0042daf0
push 1
call fcn.0042dad0
push 1
call fcn.0042da90
add esp, 0x20
mov eax, 1
lea esp, [ebp - 0x858]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret