Function at 0x404f50
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49d4a1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x16]
mov dword [esp + 0x1c], edi
call fcn.0041ccc0
mov ecx, esi
mov dword [esp + 0x4c], edi
xor ebp, ebp
call fcn.00402cd0
test eax, eax
mov ecx, esi
jne 0x404fa7
push 3
call fcn.00401560
jmp 0x40560c
call fcn.004039f0
mov ecx, esi
call fcn.004014b0
mov eax, dword [0x4cd0e8]
cmp eax, 8
ja case.0x404fc1.6
jmp dword [eax*4 + 0x405634]
push 0x1c
call fcn.0045fc12
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x4c], 1
je 0x404fe8
mov ecx, eax
call fcn.004221a0
mov edi, eax
push 1
push 0
push 1
mov ecx, edi
mov byte [esp + 0x58], 0
call fcn.0041f560
test eax, eax
je 0x40500b
push 1
mov ecx, edi
call fcn.004208c0
mov ebx, eax
jmp 0x40500d
xor ebx, ebx
test edi, edi
je 0x405021
mov ecx, edi
call fcn.0041cd20
push edi
call fcn.0045fc42
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4a5956
mov byte [esp + 0x54], 2
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SelfUpdate
mov byte [esp + 0x58], 3
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.SoftwareESTsoftALUpdate
mov byte [esp + 0x5c], 4
call fcn.00403080
lea eax, [esp + 0x34]
push reloc.WSOCK32.dll_accept
push eax
mov byte [esp + 0x60], 2
call fcn.00430400
add esp, 0x14
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 5
call fcn.00402260
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.004016f0
lea ecx, [esp + 0x24]
push 0x4a5c14
push ecx
call fcn.00401650
add esp, 8
test al, al
je 0x4050d7
push str.The_Alupdate_update_file_is_remaining.
push 0x274
push str.CALUpdateApp::ModuleStart
push 0x4cd110
mov ebp, 1
call fcn.00429e90
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0
call fcn.004016f0
test ebx, ebx
je 0x4055c2
mov eax, dword [0x4cd0e8]
cmp eax, 2
jne 0x405315
lea ecx, [esp + 0x24]
call fcn.00401ab0
lea ecx, [esp + 0x18]
call fcn.00401ab0
lea ecx, [esp + 0x20]
call fcn.00401ab0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x50], 8
call fcn.00434a60
mov ecx, dword [0x4cd0fc]
mov edx, dword [eax]
push 0x4a5956
push ecx
push edx
lea eax, [esp + 0x30]
push str._sESTsoftALUpdate_s_newfile_s
push eax
mov byte [esp + 0x64], 9
call fcn.00402320
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 8
call fcn.004016f0
lea ecx, [esp + 0x30]
push ecx
call fcn.00434a60
mov edx, dword [0x4cd0fc]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x30]
push str._sESTsoftALUpdate_sProductInfo.xml
push ecx
mov byte [esp + 0x60], 0xa
call fcn.00402320
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 8
call fcn.004016f0
lea edx, [esp + 0x34]
push edx
call fcn.00434a60
mov ecx, dword [0x4cd0fc]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x24]
push str._sESTsoftALUpdate_sFileInfo.xml
push eax
mov byte [esp + 0x60], 0xb
call fcn.00402320
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 8
call fcn.004016f0
lea ecx, [esp + 0x24]
push ecx
call fcn.00432830
add esp, 4
test eax, eax
je 0x40524a
lea edx, [esp + 0x18]
push edx
call fcn.00432830
add esp, 4
test eax, eax
je 0x40524a
push 1
push 1
lea edi, [esi + 0xb0]
push 0
mov ecx, edi
call fcn.0041f560
test eax, eax
je 0x405220
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00401ae0
mov ecx, edi
call fcn.00421590
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.004016f0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0
call fcn.004016f0
cmp dword [esp + 0x1c], 0
jmp 0x4055c0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00401ae0
call fcn.00433ce0
push str.There_are_not_xml_files._therefore_it_eliminates_which_downloaded_it.
push 0x29d
push str.CALUpdateApp::ModuleStart
push 0x4cd110
call fcn.00429e90
add esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4a5956
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4cd0fc
mov byte [esp + 0x58], 0xc
call fcn.00401ae0
push ecx
mov eax, esp
mov dword [esp + 0x4c], esp
push 0x4cd0fc
push str.SoftwareESTsoftALUpdate_
push eax
mov byte [esp + 0x64], 0xd
call fcn.004028b0
add esp, 0xc
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x5c], 8
call fcn.0042fda0
push str.There_are_not_xml_files._therefore_project_change_unprepared_status.
push 0x2a1
push str.CALUpdateApp::ModuleStart
push 0x4cd110
call fcn.00429e90
add esp, 0x20
push 5
mov ecx, esi
call fcn.00401560
lea ecx, [esp + 0x20]
call fcn.004016f0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x24]
call fcn.004016f0
jmp 0x4055cb
push 1
push 0
lea edi, [esi + 0xb0]
push 0
mov ecx, edi
call fcn.0041f560
test eax, eax
je 0x4055c2
test ebp, ebp
mov dword [0x4cd10c], 1
je 0x40534b
cmp dword [0x4cd0e8], 0
je 0x4055cb
push 0
mov ecx, edi
call fcn.004208c0
mov dword [esp + 0x1c], eax
test eax, eax
jmp 0x4055c0
lea ecx, [esp + 0x16]
call fcn.00429100
jmp 0x4055cb
cmp dword [0x4cd108], edi
je 0x4053c2
call fcn.00435940
test eax, eax
je 0x4055cb
mov ecx, esi
call fcn.00404740
push 0x1c
call fcn.0045fc12
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, edi
mov byte [esp + 0x4c], 0xe
je 0x4053a9
mov ecx, eax
call fcn.004221a0
mov edi, eax
mov ecx, edi
mov byte [esp + 0x4c], 0
call fcn.00421a10
test eax, eax
je 0x405401
mov ecx, edi
call fcn.0041f430
jmp 0x405401
push 0x1c
call fcn.0045fc12
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, edi
mov byte [esp + 0x4c], 0xf
je 0x4053e2
mov ecx, eax
call fcn.004221a0
mov edi, eax
push 1
push 0
push 1
mov ecx, edi
mov byte [esp + 0x58], 0
call fcn.0041f560
test eax, eax
je 0x405401
push 1
mov ecx, edi
call fcn.004208c0
test edi, edi
je 0x4055cb
mov ecx, edi
call fcn.0041cd20
push edi
call fcn.0045fc42
add esp, 4
jmp 0x4055cb
lea ecx, [esp + 0x17]
call fcn.00429c00
push 0x4a5956
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0x10
call fcn.00403080
lea ecx, [esp + 0x38]
mov bl, 0x11
push ecx
mov byte [esp + 0x50], bl
call fcn.00434a60
mov edx, dword [eax]
push edx
lea eax, [esp + 0x2c]
push str._sESTsoftALUpdate_filedl
push eax
mov byte [esp + 0x5c], 0x12
call fcn.00402320
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], bl
call fcn.004016f0
push 0x4a5956
lea ecx, [esp + 0x1c]
call fcn.00403080
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x44], esp
mov bl, 0x13
push edx
mov byte [esp + 0x54], bl
call fcn.00401ae0
lea eax, [esp + 0x1c]
push eax
call fcn.00433920
add esp, 4
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00401ae0
mov eax, dword [0x4cd008]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x58], 0x14
call fcn.00401ae0
lea ecx, [esp + 0x1f]
mov byte [esp + 0x54], bl
call fcn.00429c20
cmp eax, edi
je 0x40550e
mov ecx, dword [0x4cd008]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x18]
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4054fd
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x1c], edi
jne 0x405533
push str.File_download_fail.
push 0x2f1
push str.CALUpdateApp::ModuleStart
push 0x4cd110
call fcn.00429e90
mov dword [esi + 0xd4], 1
jmp 0x40554c
push str.File_download_success.
push 0x2f6
push str.CALUpdateApp::ModuleStart
push 0x4cd110
call fcn.00429e90
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x24]
call fcn.004016f0
lea ecx, [esp + 0x17]
mov byte [esp + 0x4c], 0
call fcn.00423b40
jmp 0x4055cb
push 1
push 0
lea edi, [esi + 0xb0]
push 0
mov ecx, edi
call fcn.0041f560
test eax, eax
je 0x405598
mov ecx, dword [0x4cd0fc]
push ecx
mov ecx, edi
call fcn.0041d580
jmp 0x4055cb
mov edx, dword [0x4cd0fc]
push edx
mov ecx, edi
call fcn.0041cfd0
jmp 0x4055cb
mov ecx, esi
call fcn.00403fd0
push 1
push edi
push edi
lea ecx, [esi + 0xb0]
call fcn.0041f560
test eax, eax
jne 0x4055cb
push 1
mov ecx, esi
call fcn.00401560
cmp dword [0x4cd000], 0
je 0x40560c
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x40560c
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40560c
push 0
mov dword [0x4cd00c], 1
mov esi, dword [esi + 0xcc]
mov ecx, dword [esi + 0x20]
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x16]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00423b40
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8