Function at 0x421ad0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6024bd
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x228]
call fcn.0040f160
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x4232a0
lea ecx, [ebp - 0x278]
push ecx
call fcn.00425830
add esp, 0xc
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x244]
push eax
call fcn.0044e9a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00423e90
push 0
mov ecx, dword [ebp + 8]
call fcn.00423410
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call fcn.00428b80
mov ecx, eax
call fcn.00429d10
push eax
call fcn.004483a0
add esp, 8
push 2
mov ecx, dword [ebp + 8]
call fcn.00423410
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f210
push eax
mov ecx, dword [ebp + 8]
call fcn.00421820
push 3
mov ecx, dword [ebp + 8]
call fcn.00423410
push 0x651064
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f210
push eax
call fcn.0043e830
add esp, 8
push 4
mov ecx, dword [ebp + 8]
call fcn.00423410
push str.update
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.004247f0
add esp, 0xc
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24c]
call fcn.0040f210
push eax
call fcn.0043e1b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.0040ac80
push 5
mov ecx, dword [ebp + 8]
call fcn.00423410
mov ecx, dword [ebp + 8]
call fcn.00422390
and eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
jne 0x421c58
push str.copy_file_fail
lea ecx, [ebp - 0x228]
call fcn.00414c20
push 0x5d
mov ecx, dword [ebp + 8]
call fcn.00423410
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f210
push eax
call fcn.00437520
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040f210
push eax
call fcn.00437840
add esp, 4
call fcn.0040c740
test eax, eax
jne 0x421dab
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea ecx, [ebp - 0x224]
call fcn.0040f140
mov byte [ebp - 4], 3
xor eax, eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x219]
call fcn.00421fc0
push eax
lea ecx, [ebp - 0x224]
call fcn.0040f1e0
lea ecx, [ebp - 0x224]
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421d9c
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058a9f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov byte [ebp - 0x21a], al
lea ecx, [ebp - 0x21a]
call fcn.00422100
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x22c]
call fcn.0040f160
mov byte [ebp - 4], 4
xor edx, edx
mov byte [ebp - 0x21b], dl
mov eax, dword [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21b]
call fcn.00422220
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00410cb0
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.0040f210
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0044e100
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x22c]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040ac80
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.00423410
call fcn.00428c10
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x230]
mov eax, dword [edx + 0x54]
call eax
and eax, 1
je 0x421df4
call fcn.0040a960
mov ecx, eax
call fcn.0040dcd0
test eax, eax
jne 0x421df4
mov dword [ebp - 0x234], 1
jmp 0x421dfe
mov dword [ebp - 0x234], 0
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x258], ecx
call fcn.00428c10
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x238]
mov edx, dword [eax + 0x54]
call edx
and eax, 2
je 0x421e49
call fcn.0040a960
mov ecx, eax
call fcn.0040dda0
test eax, eax
je 0x421e49
mov dword [ebp - 0x23c], 1
jmp 0x421e53
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x254], eax
push 0
call fcn.0040a960
mov ecx, eax
call fcn.0040dea0
push eax
call fcn.0040a960
mov ecx, eax
call fcn.0040de20
push eax
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.0040f140
lea ecx, [ebp - 0x290]
call fcn.00449ae0
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x290]
call fcn.0044b390
push 0x60
mov ecx, dword [ebp + 8]
call fcn.00423410
lea ecx, [ebp - 0x290]
call fcn.0044aa60
push 0x62
mov ecx, dword [ebp + 8]
call fcn.00423410
mov ecx, dword [ebp + 8]
call fcn.00420f10
test eax, eax
jne 0x421f03
mov dword [ebp - 0x220], 0
push str.write_path_reg_fail
lea ecx, [ebp - 0x228]
call fcn.00414c20
lea ecx, [ebp - 0x228]
call fcn.0040f210
push eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x423330
lea eax, [ebp - 0x2a4]
push eax
call fcn.00425ad0
add esp, 0x14
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x260]
push edx
call fcn.0044e9a0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a4]
call fcn.00423e30
mov ecx, dword [ebp + 8]
call fcn.00423370
mov dword [ebp - 0x264], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00449c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0040ac80
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 8