Function at 0x4294a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f0a6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp - 0x474]
mov dword [ebp - 0x474], 0
lea ecx, [ebp - 0x468]
call fcn.0042c240
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x42950f
push eax
call fcn.00480a27
add esp, 4
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x429522
push eax
call fcn.00480a27
add esp, 4
cmp dword [ebp - 0x474], 3
jg 0x429532
xor al, al
jmp 0x4296cd
xorps xmm0, xmm0
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x454]
movups xmmword [ebp - 0x454], xmm0
call fcn.00429040
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x43c], xmm0
mov dword [ebp - 0x42c], 0
movups xmmword [ebp - 0x43c], xmm0
mov dword [ebp - 0x42c], 0
push 0x208
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
mov dword [ebp - 0x46c], 0
lea eax, [ebp - 0x46c]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x4296eb
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4296eb
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406050
mov esi, dword [ebp - 0x43c]
push str.__x86_
push esi
call fcn.0047d2be
add esp, 8
test eax, eax
je 0x429664
sub eax, esi
sar eax, 1
test eax, eax
jle 0x429664
push eax
push 0
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406330
mov ecx, dword [eax]
test ecx, ecx
je 0x42963f
cmp word [ecx], 0
jne 0x429644
mov ecx, 0x4aebf4
push dword [eax + 4]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00405e40
lea ecx, [ebp - 0x468]
call fcn.00405df0
mov esi, dword [ebp - 0x43c]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x454]
call fcn.004062d0
test al, al
je 0x4296eb
mov edi, dword [ebp - 0x454]
mov byte [ebp - 0x46d], 1
test esi, esi
je 0x429694
push esi
call fcn.00480a27
add esp, 4
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x4296a7
push eax
call fcn.00480a27
add esp, 4
test edi, edi
je 0x4296b4
push edi
call fcn.00480a27
add esp, 4
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x4296c7
push eax
call fcn.00480a27
add esp, 4
mov al, byte [ebp - 0x46d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00464f19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x104
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406050
cmp dword [ebp - 0x438], 0
mov edi, dword [ebp - 0x454]
mov esi, dword [ebp - 0x43c]
setle al
test al, al
jne 0x42979e
test esi, esi
je 0x429761
cmp word [esi], 0
mov ecx, esi
jne 0x429766
mov ecx, 0x4aebf4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429770
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x450], ecx
jl 0x42979e
push esi
push edi
call fcn.0047d2be
add esp, 8
test eax, eax
setne al
test al, al
jne 0x429680
push 0x104
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
mov dword [ebp - 0x46c], 0
lea eax, [ebp - 0x46c]
push eax
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x429833
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x429833
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406050
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x454]
call fcn.004062d0
mov esi, dword [ebp - 0x43c]
test al, al
jne 0x429680
push str.update_test.txt
lea ecx, [ebp - 0x454]
call fcn.00405fa0
mov edi, dword [ebp - 0x454]
test edi, edi
je 0x429855
cmp word [edi], 0
mov eax, edi
jne 0x42985a
mov eax, 0x4aebf4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
je 0x429680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x429680
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x440], 0x333231
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4298a4
sub ecx, edx
lea edx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x474]
call fcn.0042a5b0
add esp, 4
push dword [ebp - 0x474]
test eax, eax
jg 0x4298d7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x429680
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x454]
mov dword [ebp - 0x458], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x468]
push eax
movups xmmword [ebp - 0x468], xmm0
call fcn.00405bb0
push 0x4b8290
lea ecx, [ebp - 0x468]
call fcn.00405fa0
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x454]
call fcn.0042a700
test al, al
jne 0x42994a
lea ecx, [ebp - 0x454]
call fcn.0042a510
lea ecx, [ebp - 0x468]
mov byte [ebp - 0x46d], 1
call fcn.00405df0
jmp 0x429687
lea ecx, [ebp - 0x468]
call fcn.0042a510
lea ecx, [ebp - 0x468]
mov byte [ebp - 0x46d], 0
call fcn.00405df0
jmp 0x429687