Function at 0x477110
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de04f
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x50f52c]
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
push 1
sub esp, 0x1c
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x54], esi
mov ecx, esp
mov ebx, 7
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
je 0x47722b
mov dword [ebp - 0x4a0], esp
push ebx
xor eax, eax
push 0x4ebf68
mov word [ecx + 4], ax
call fcn.00401860
mov dword [ebp - 4], esi
mov edx, dword [0x510a4c]
sub esp, 0x188
mov ecx, esp
mov dword [ebp - 0x494], esp
push edx
call fcn.00410c80
mov byte [ebp - 4], 1
mov eax, dword [0x510a50]
sub esp, 0x3c4
mov ecx, esp
mov dword [ebp - 0x498], esp
push eax
call fcn.00462ac0
mov byte [ebp - 4], 2
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x49c], esp
push ebx
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push str.Restart
mov word [ecx + 4], dx
call fcn.00401860
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041b950
mov ecx, dword [0x510a50]
mov eax, dword [ecx + 0x384]
push 6
add ecx, 0x370
push str.prompt
push eax
push esi
call fcn.00401fe0
test eax, eax
jne 0x477221
mov ecx, dword [edi + 4]
push 0x429
push ecx
call fcn.00454d90
cmp eax, 6
jne 0x477734
call fcn.00451530
jmp 0x477734
mov dword [ebp - 0x49c], esp
push ebx
xor edx, edx
push 0x4ebf68
mov word [ecx + 4], dx
call fcn.00401860
mov dword [ebp - 4], 4
mov eax, dword [0x510a4c]
sub esp, 0x188
mov ecx, esp
mov dword [ebp - 0x498], esp
push eax
call fcn.00410c80
mov byte [ebp - 4], 5
mov edx, dword [0x510a50]
sub esp, 0x3c4
mov ecx, esp
mov dword [ebp - 0x4a0], esp
push edx
call fcn.00462ac0
mov byte [ebp - 4], 6
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x494], esp
push 8
xor eax, eax
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push str.Complete
mov word [ecx + 4], ax
call fcn.00401860
mov byte [ebp - 4], bl
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041b950
mov ecx, dword [edi + 4]
push 0x43f
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x477734
push 0x4e2ed0
lea ecx, [ebp - 0x43c]
call fcn.004019e0
mov dword [ebp - 4], 8
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x454]
call fcn.004306b0
mov byte [ebp - 4], 9
mov ecx, dword [0x510a4c]
push eax
call fcn.0042f6e0
mov edi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x454]
call fcn.00403500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x477339
mov eax, dword [ebp - 0x438]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], esi
mov word [ebp - 0x438], cx
cmp edi, esi
je 0x4773c3
lea edx, [ebp - 0x4a0]
push edx
push 1
push 1
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x49c], esp
push 0x4e25d8
call fcn.004019e0
mov dword [ebp - 4], 0xa
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x498], esp
push 0x4e937c
call fcn.004019e0
mov byte [ebp - 4], 0xb
mov eax, dword [0x510a50]
sub esp, 0x1c
add eax, 0x1b8
mov ecx, esp
mov dword [ebp - 0x494], esp
push eax
call fcn.00401960
mov byte [ebp - 4], 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.00453920
jmp 0x477734
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x420], cx
call fcn.004b32f0
add esp, 0xc
lea eax, [ebp - 0x494]
push eax
push 0x26
push esi
mov dword [ebp - 0x494], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebp - 0x494]
lea ecx, [ebp - 0x420]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x494]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.004019e0
mov dword [ebp - 4], 0xd
push 0x4e3448
push eax
lea edx, [ebp - 0x4dc]
push edx
call fcn.00401b00
mov byte [ebp - 4], 0xe
mov ecx, dword [0x510a50]
add ecx, 0x148
push ecx
push eax
lea edx, [ebp - 0x474]
push edx
call fcn.0040a680
mov byte [ebp - 4], 0xf
push 0x4e3448
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00401b00
add esp, 0x24
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x474]
call fcn.00490320
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4dc]
call fcn.00490320
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4bc]
call fcn.00490320
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x218], cx
call fcn.004b32f0
add esp, 0xc
call fcn.00427480
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x4e25d8
lea ecx, [ebp - 0x43c]
call fcn.004019e0
mov byte [ebp - 4], 0x14
mov ecx, dword [0x510a4c]
add ecx, 0x16c
push str.32_bit
push ecx
call fcn.00402330
add esp, 8
mov ebx, str.VistaLib32.dll_
test al, al
jne 0x47751d
mov ebx, 0x4edd10
lea edx, [ebp - 0x490]
push edx
lea eax, [ebp - 0x4dc]
push 0x4e3c1c
push eax
call fcn.00401a30
mov byte [ebp - 4], 0x15
push ebx
push eax
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0x16
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401750
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x4bc]
call fcn.00490320
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4dc]
call fcn.00490320
mov edx, dword [0x510a50]
push str.zatray.exe
add edx, 0x1b8
push edx
lea eax, [ebp - 0x458]
push eax
call fcn.00401b00
add esp, 0xc
mov bl, 0x17
mov byte [ebp - 4], bl
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x4775b6
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4776ff
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x4dc]
push 0x4e3c1c
push edx
call fcn.00401a30
mov byte [ebp - 4], 0x18
push 0x4e3c1c
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0x19
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x458]
call fcn.00401750
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x4bc]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4dc]
call fcn.00490320
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.004019e0
mov byte [ebp - 4], 0x1a
push str.System32
push eax
lea edx, [ebp - 0x474]
push edx
call fcn.00401b00
add esp, 0xc
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x4bc]
call fcn.00490320
lea eax, [ebp - 0x4a0]
push eax
push 1
push 1
push esi
push str._RunNonElevated
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x4bc]
push edx
call fcn.00401b00
mov byte [ebp - 4], 0x1d
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x49c], esp
lea edx, [ebp - 0x458]
push edx
push eax
push ecx
call fcn.0040a680
mov byte [ebp - 4], 0x1e
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x498], esp
push str.rundll32.exe
call fcn.004019e0
mov byte [ebp - 4], 0x1f
sub esp, 0x1c
lea eax, [ebp - 0x474]
mov ecx, esp
mov dword [ebp - 0x4c0], esp
push eax
call fcn.00401960
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x1d
call fcn.00453920
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x4bc]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x474]
call fcn.00490320
call fcn.004260e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x458]
call fcn.00490320
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x43c]
call fcn.00490320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x490]
call fcn.00490320
mov eax, 1
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.004b3057
mov esp, ebp
pop ebp
ret