Function at 0x401a71
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
mov eax, 0x41b1ac
call fcn.004086bc
sub esp, 0x58
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push str.ProcessSetupFile___ins
push eax
call fcn.00413217
mov eax, dword [0x422a90]
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x48]
call fcn.004016cf
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00407297
mov eax, dword [0x422a90]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 6
cmp eax, 7
jne 0x401ae9
cmp dword [ebp + 8], 0x65
jne 0x401ae2
push str.VISTA64
jmp 0x401b17
push str.VISTA32
jmp 0x401b17
cmp eax, 4
je 0x401b12
cmp eax, 5
je 0x401b12
cmp eax, 6
je 0x401b12
cmp eax, 1
je 0x401b06
test eax, eax
je 0x401b06
cmp eax, 2
jne 0x401b0d
push 0x4222ec
jmp 0x401b17
cmp eax, 3
jne 0x401b1f
push str.2000
lea ecx, [ebp - 0x14]
call fcn.00413cf0
mov ebx, str.AutoClientUpdate.exe
lea ecx, [ebp - 0x14]
push ebx
call fcn.00413e69
mov eax, dword [0x422a90]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push str.serverpath___s_
push eax
call fcn.00413217
lea edi, [esi + 0x40]
add esp, 0xc
lea eax, [ebp - 0x18]
push dword [edi]
push str.prog_path___s_
push eax
call fcn.00413217
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x64]
push 0
push eax
call fcn.0040735a
test eax, eax
jne 0x401c39
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401c39
mov eax, dword [0x422a90]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.CreateDirectory__d_
push eax
call fcn.00413217
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x1e
push eax
call fcn.0041322a
lea eax, [ebp - 0x24]
push eax
call fcn.00402444
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00413bf7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00413bf7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00413bf7
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004072d4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004016fe
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00413bf7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00413bf7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00413bf7
xor eax, eax
jmp 0x401f0f
lea eax, [ebp - 0x18]
push str.FindFile_after
push eax
call fcn.00413217
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push str.AutoClientUpdateTemp.exe
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00413ca0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00413bf7
push ebx
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00413ca0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00413bf7
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push dword [ebp - 0x1c]
push str.loc_tmp_path__s___loc_path__s_
push eax
call fcn.00413217
add esp, 0x10
lea eax, [esi + 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004037ef
test eax, eax
je 0x401d4a
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0041396c
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00401f20
mov ebx, eax
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.0041396c
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00401f20
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call fcn.00408a54
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.00413bf7
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.00413bf7
test bl, bl
je 0x401d40
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], 7
push dword [ebp + 8]
mov ecx, esi
call fcn.00402dbe
lea eax, [ebp - 0x18]
push str.before_CheckSafePCCfg
push eax
call fcn.00413217
pop ecx
pop ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402b92
lea eax, [ebp - 0x18]
push str.after_setup_file_download__
push eax
call fcn.00413217
lea eax, [ebp - 0x18]
push eax
call fcn.00402444
add esp, 0xc
mov ecx, esi
push 0
call fcn.004018dc
test eax, eax
jne 0x401d92
xor esi, esi
jmp 0x401ead
mov ecx, esi
call fcn.0040324c
test eax, eax
je 0x401d8b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401dc4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push 0x26
push eax
call fcn.0041322a
lea eax, [ebp - 0x24]
push eax
call fcn.00402444
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x44]
push eax
call fcn.00413ca0
push str.NULL
lea ecx, [ebp - 0x40]
call fcn.00413cf0
push edi
lea ecx, [ebp - 0x3c]
call fcn.00413ca0
push str.SW_HIDE
lea ecx, [ebp - 0x38]
call fcn.00413cf0
push str.open
lea ecx, [ebp - 0x48]
call fcn.00413cf0
cmp dword [0x4282c4], 2
jne 0x401e85
mov eax, dword [0x4282c8]
push str._warm
push dword [eax + 4]
call fcn.004088b0
pop ecx
test eax, eax
pop ecx
jne 0x401e85
mov eax, dword [0x422a90]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str.warm_upated
push eax
mov byte [ebp - 4], 0x11
call fcn.00413217
lea eax, [ebp + 8]
push eax
call fcn.00402444
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00402144
lea eax, [ebp + 8]
push str.after_autoclient_execution____warm_update
push eax
call fcn.00413217
lea eax, [ebp + 8]
push eax
call fcn.00402444
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00413bf7
jmp 0x401eaa
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00402144
lea eax, [ebp - 0x18]
push str.after_autoclient_execution__
push eax
call fcn.00413217
lea eax, [ebp - 0x18]
push eax
call fcn.00402444
add esp, 0xc
push 1
pop esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00413bf7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00413bf7
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004072d4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004016fe
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00413bf7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00413bf7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00413bf7
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4