Function at 0x4219d0
Capabilities:
Check if file exists
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f49d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0x230]
call fcn.0040efc0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x423b20
lea ecx, [ebp - 0x288]
push ecx
call fcn.00425fe0
add esp, 0xc
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x254]
push eax
call fcn.00529710
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.00424710
push 0
mov ecx, dword [ebp + 8]
call fcn.00423c90
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call fcn.0042a530
mov ecx, eax
call fcn.0042b710
push eax
call fcn.005232d0
add esp, 8
push 2
mov ecx, dword [ebp + 8]
call fcn.00423c90
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f070
push eax
mov ecx, dword [ebp + 8]
call fcn.004215b0
push 3
mov ecx, dword [ebp + 8]
call fcn.00423c90
push 0x660920
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f070
push eax
call fcn.0051ace0
add esp, 8
push 4
mov ecx, dword [ebp + 8]
call fcn.00423c90
push str.update
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00425070
add esp, 0xc
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x25c]
call fcn.0040f070
push eax
call fcn.0051a660
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.0040aae0
push 5
mov ecx, dword [ebp + 8]
call fcn.00423c90
mov ecx, dword [ebp + 8]
call fcn.00422c10
and eax, dword [ebp - 0x228]
mov dword [ebp - 0x228], eax
jne 0x421b58
push str.copy_file_fail
lea ecx, [ebp - 0x230]
call fcn.00414a80
push 0x5d
mov ecx, dword [ebp + 8]
call fcn.00423c90
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f070
push eax
call fcn.00439100
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f070
push eax
call fcn.00439420
add esp, 4
call fcn.0040c5a0
test eax, eax
jne 0x421cab
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea ecx, [ebp - 0x22c]
call fcn.0040efa0
mov byte [ebp - 4], 3
xor eax, eax
mov byte [ebp - 0x221], al
lea ecx, [ebp - 0x221]
call fcn.00421fc0
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040f040
lea ecx, [ebp - 0x22c]
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421c9c
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058abd0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x219]
call fcn.00422100
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x234]
call fcn.0040efc0
mov byte [ebp - 4], 4
xor edx, edx
mov byte [ebp - 0x21a], dl
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21a]
call fcn.00422220
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00410b10
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x234]
call fcn.0040f070
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00528e80
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.0040aae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.0040aae0
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.00423c90
call fcn.0042a5c0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
call eax
and eax, 1
je 0x421cf4
call fcn.0040a7c0
mov ecx, eax
call fcn.0040db30
test eax, eax
jne 0x421cf4
mov dword [ebp - 0x240], 1
jmp 0x421cfe
mov dword [ebp - 0x240], 0
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x268], ecx
call fcn.0042a5c0
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x244]
mov edx, dword [eax + 0x5c]
call edx
and eax, 2
je 0x421d49
call fcn.0040a7c0
mov ecx, eax
call fcn.0040dc00
test eax, eax
je 0x421d49
mov dword [ebp - 0x24c], 1
jmp 0x421d53
mov dword [ebp - 0x24c], 0
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x264], eax
push 0
call fcn.0040a7c0
mov ecx, eax
call fcn.0040dd00
push eax
call fcn.0040a7c0
mov ecx, eax
call fcn.0040dc80
push eax
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x268]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.0040efa0
lea ecx, [ebp - 0x2a0]
call fcn.00524a10
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a0]
call fcn.005262c0
push 0x60
mov ecx, dword [ebp + 8]
call fcn.00423c90
lea ecx, [ebp - 0x2a0]
call fcn.00525990
call fcn.0042a5c0
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x248]
mov eax, dword [edx + 0x24]
call eax
test eax, eax
je 0x421ed9
mov ecx, dword [ebp + 8]
call fcn.00421420
push 1
mov ecx, dword [ebp + 8]
call fcn.004214e0
mov dword [ebp - 0x238], 1
xor ecx, ecx
mov byte [ebp - 0x21b], cl
xor edx, edx
mov byte [ebp - 0x21c], dl
push 4
lea eax, [ebp - 0x238]
push eax
push 4
lea ecx, [ebp - 0x21b]
call fcn.00422510
push eax
lea ecx, [ebp - 0x21c]
call fcn.00422390
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
mov byte [ebp - 0x21d], cl
xor edx, edx
mov byte [ebp - 0x21e], dl
push 4
lea eax, [ebp - 0x238]
push eax
push 4
lea ecx, [ebp - 0x21d]
call fcn.004227c0
push eax
lea ecx, [ebp - 0x21e]
call fcn.00422640
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
mov byte [ebp - 0x21f], cl
xor edx, edx
mov byte [ebp - 0x220], dl
push 4
lea eax, [ebp - 0x238]
push eax
push 4
lea ecx, [ebp - 0x21f]
call fcn.00422aa0
push eax
lea ecx, [ebp - 0x220]
call fcn.00422920
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
mov ecx, dword [ebp + 8]
call fcn.00421620
push 0x62
mov ecx, dword [ebp + 8]
call fcn.00423c90
mov ecx, dword [ebp + 8]
call fcn.00420df0
test eax, eax
jne 0x421f09
mov dword [ebp - 0x228], 0
push str.write_path_reg_fail
lea ecx, [ebp - 0x230]
call fcn.00414a80
lea ecx, [ebp - 0x230]
call fcn.0040f070
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x423bb0
lea eax, [ebp - 0x2b4]
push eax
call fcn.00426760
add esp, 0x14
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x270]
push edx
call fcn.00529710
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b4]
call fcn.004246b0
mov ecx, dword [ebp + 8]
call fcn.00423bf0
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00524ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040aae0
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8