Function at 0x422b60
Capabilities:
Check if file exists
Delete file
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x24], eax
push edi
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx*4 + 0x473898], 0
je 0x422e6e
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea edx, [ebp - 0x12f]
push edx
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x130]
add edx, 0xffffffff
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x13d], cl
add dword [ebp - 0x13c], 1
cmp byte [ebp - 0x13d], 0
jne 0x422c0c
mov edi, dword [ebp - 0x13c]
mov edx, dword [str._tmp.dll]
mov dword [edi], edx
mov eax, dword [0x463154]
mov dword [edi + 4], eax
mov cl, byte [0x463158]
mov byte [edi + 8], cl
mov edx, 1
test edx, edx
je 0x422cad
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x422ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 2
jne 0x422c7b
jmp 0x422cad
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + ecx - 0x130], 0
call fcn.00443fb6
push eax
lea edx, [ebp - 0x130]
push edx
push str._s_tmp_d.dll
lea eax, [ebp - 0x130]
push eax
call fcn.00442e8c
add esp, 0x10
jmp 0x422cab
jmp 0x422cad
jmp 0x422c4a
lea ecx, [ebp - 0x130]
push ecx
push 0x46316c
mov edx, dword [ebp - 0x10]
add edx, 0xbf
push edx
mov ecx, dword [ebp - 0x138]
call fcn.00408c20
movzx eax, al
test eax, eax
jne 0x422cf8
push 0x10
push 0x463170
push 0x463184
mov ecx, dword [ebp - 0x138]
call fcn.004287fd
mov dword [ebp - 0x20], 0
jmp 0x422e6e
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x422d3e
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
push 0x4631c4
push 0x4631d8
mov ecx, dword [ebp - 0x138]
call fcn.004287fd
mov dword [ebp - 0x20], 0
jmp 0x422e6e
movzx eax, byte [ebp + 8]
cmp eax, 1
jne 0x422d5b
push str.checkKeyExistsDevice
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
jmp 0x422d6d
push str.checkKeyExists
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.checkNeedUpdate
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push str.doUpdate
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push str.checkSoftwareEnv
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push str.repairSoftwareEnv
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x14], 0
je 0x422dd3
cmp dword [ebp - 0xc], 0
je 0x422dd3
cmp dword [ebp - 0x18], 0
je 0x422dd3
cmp dword [ebp - 8], 0
je 0x422dd3
cmp dword [ebp - 4], 0
jne 0x422dfd
push 0x10
push 0x463284
push 0x463298
mov ecx, dword [ebp - 0x138]
call fcn.004287fd
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x422e6e
call dword [ebp - 0x14]
test eax, eax
je 0x422e4a
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xac], eax
cmp dword [ebp - 0x10], 0
jne 0x422e2b
mov ecx, dword [ebp - 0x138]
mov dword [ecx + 0xc8], 0
jmp 0x422e41
cmp dword [ebp - 0x10], 1
jne 0x422e41
mov edx, dword [ebp - 0x138]
mov dword [edx + 0xc8], 1
mov eax, 1
jmp 0x422e70
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xac], ecx
mov edx, dword [ebp - 0x138]
mov dword [edx + 0xc8], 0
jmp 0x422ba4
xor eax, eax
pop edi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 4