Function at 0x4199a0
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 [0x463444]
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 + 0x464878], 0
je 0x419cbc
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea edx, [ebp - 0x12f]
push edx
call fcn.0043b290
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 0x419a4c
mov edi, dword [ebp - 0x13c]
mov edx, dword [str._tmp.dll]
mov dword [edi], edx
mov eax, dword [0x454960]
mov dword [edi + 4], eax
mov cl, byte [0x454964]
mov byte [edi + 8], cl
mov edx, 1
test edx, edx
je 0x419aed
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x419ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 2
jne 0x419abb
jmp 0x419aed
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + ecx - 0x130], 0
call fcn.00439c02
push eax
lea edx, [ebp - 0x130]
push edx
push str._s_tmp_d.dll
lea eax, [ebp - 0x130]
push eax
call fcn.004390c8
add esp, 0x10
jmp 0x419aeb
jmp 0x419aed
jmp 0x419a8a
lea ecx, [ebp - 0x130]
push ecx
push 0x454978
mov edx, dword [ebp - 0x10]
add edx, 0xbf
push edx
mov ecx, dword [ebp - 0x138]
call fcn.00418e70
movzx eax, al
test eax, eax
jne 0x419b38
push 0x10
push 0x45497c
push 0x454990
mov ecx, dword [ebp - 0x138]
call fcn.0041fa57
mov dword [ebp - 0x20], 0
jmp 0x419cbc
lea ecx, [ebp - 0x130]
push ecx
call fcn.0040b460
add esp, 4
movzx edx, al
test edx, edx
jne 0x419b71
push 0x10
push 0x4549d0
push 0x4549e8
mov ecx, dword [ebp - 0x138]
call fcn.0041fa57
mov dword [ebp - 0x20], 0
jmp 0x419cbc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x419bb7
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
push 0x454a2c
push 0x454a40
mov ecx, dword [ebp - 0x138]
call fcn.0041fa57
mov dword [ebp - 0x20], 0
jmp 0x419cbc
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 0x419c2f
cmp dword [ebp - 0xc], 0
je 0x419c2f
cmp dword [ebp - 0x18], 0
je 0x419c2f
cmp dword [ebp - 8], 0
je 0x419c2f
cmp dword [ebp - 4], 0
jne 0x419c59
push 0x10
push 0x454ad4
push 0x454ae8
mov ecx, dword [ebp - 0x138]
call fcn.0041fa57
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x419cbc
call dword [ebp - 0x14]
test eax, eax
je 0x419ca6
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xa0], eax
cmp dword [ebp - 0x10], 0
jne 0x419c87
mov ecx, dword [ebp - 0x138]
mov dword [ecx + 0xb8], 0
jmp 0x419c9d
cmp dword [ebp - 0x10], 1
jne 0x419c9d
mov edx, dword [ebp - 0x138]
mov dword [edx + 0xb8], 1
mov eax, 1
jmp 0x419cbe
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x4199e4
xor eax, eax
pop edi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret