Function at 0x402cb0
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0xa28], eax
cmp dword [0x414f64], 6
push esi
jne 0x403013
call fcn.00401630
cmp eax, 1
jne 0x403013
call fcn.00401960
call fcn.00401c50
cmp eax, 1
jne 0x403013
call fcn.004016f0
cmp eax, 1
je 0x402d0f
push str.Init_current_process_failed_
call fcn.00401ae0
add esp, 4
jmp 0x403013
push str.CheckNet.exe
push 0x416188
call fcn.0040399b
add esp, 8
test eax, eax
je 0x402d2a
call fcn.00402bd0
xor eax, eax
cmp ax, word [0x415b18]
jne 0x403009
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xe]
push edx
lea esi, [eax + 1]
mov word [esp + 0x10], cx
call fcn.00407050
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00407050
add esp, 0x18
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.CheckNet.exe
push 0x415f80
push str._s_s
lea edx, [esp + 0x10]
push 0x208
push edx
call fcn.00403093
push 0x415b70
lea eax, [esp + 0x1c]
push eax
push str._s__s
lea ecx, [esp + 0x22c]
push 0x208
push ecx
call fcn.00403093
add esp, 0x28
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x402f89
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x626]
push ecx
mov word [esp + 0x628], ax
call fcn.00407050
lea edx, [esp + 0x628]
push edx
lea ecx, [esp + 0x14]
call fcn.00401cc0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x42e]
push ecx
mov word [esp + 0x430], ax
call fcn.00407050
lea edx, [esp + 0x430]
push edx
mov ecx, 0x416188
call fcn.00401cc0
lea eax, [esp + 0x63c]
push eax
lea ecx, [esp + 0x438]
push ecx
push str.the_current_version_is__s_the_local_version_is__s
call fcn.00401ae0
add esp, 0x2c
lea ecx, [esp + 0x414]
lea eax, [esp + 0x61c]
jmp 0x402e60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402e86
test dx, dx
je 0x402e82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402e86
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e60
xor eax, eax
jmp 0x402e8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402ec6
call fcn.00401f10
push 0
lea edx, [esp + 8]
push edx
push 0x416188
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x402ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_file_failed_error:_d
call fcn.00401ae0
add esp, 8
jmp 0x403013
xor esi, esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x82e]
push ecx
mov word [esp + 0x830], ax
call fcn.00407050
lea edx, [esp + 0x830]
push edx
call fcn.004021e0
add esp, 0x10
cmp eax, 1
je 0x402f0a
push str.Read_config_info_failed
call fcn.00401ae0
add esp, 4
jmp 0x403013
lea eax, [esp + 0x824]
push 0x415b70
push eax
call fcn.0040399b
add esp, 8
test eax, eax
jne 0x402ff7
lea eax, [esp + 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f31
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x210]
push edx
call fcn.00402150
add esp, 8
cmp eax, 1
je 0x402f6b
push str.Save_config_info_failed
call fcn.00401ae0
add esp, 4
jmp 0x403013
test esi, esi
je 0x402ffb
call fcn.00401f10
lea esi, [esp + 0x20c]
call fcn.004020c0
jmp 0x403013
push 1
lea eax, [esp + 8]
push eax
push 0x416188
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x402fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_file_failed_error:_d
call fcn.00401ae0
add esp, 8
jmp 0x403013
lea eax, [esp + 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402fc0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x210]
push edx
call fcn.00402150
add esp, 8
cmp eax, 1
je 0x402ffb
push str.Save_auto_running_failed
call fcn.00401ae0
add esp, 4
jmp 0x403013
test esi, esi
jne 0x403013
lea esi, [esp + 0x20c]
call fcn.004020c0
jmp 0x403013
call fcn.00401f10
call fcn.00402820
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp eax, 0xffffffff
jne 0x40303c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_cleanup_fail__errorcode:_d_n
call fcn.00401ae0
push str.Free_socket_resource_failed_
call fcn.00401ae0
add esp, 0xc
mov eax, dword [0x414f40]
cmp eax, 0xffffffff
je 0x403057
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x414f40], 0xffffffff
mov ecx, dword [esp + 0xa2c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00403084
add esp, 0xa2c
ret 0x10