Function at 0x4058a0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59422a
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x15]
call fcn.00439680
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
cmp dword [0x61c82c], 0
jne 0x405910
mov ecx, dword [ebp - 0x2d4]
call fcn.00406ab0
mov ecx, dword [ebp - 0x2d4]
call fcn.00406530
mov eax, dword [0x61c80c]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xb
ja case.0x405939.4
mov ecx, dword [ebp - 0x2d8]
jmp dword [ecx*4 + 0x406444]
push 0x18
call fcn.00550320
add esp, 4
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x268], 0
je 0x405970
mov ecx, dword [ebp - 0x268]
call fcn.004273c0
mov dword [ebp - 0x2dc], eax
jmp 0x40597a
mov dword [ebp - 0x2dc], 0
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x20], eax
push 1
push 0
push 1
mov ecx, dword [ebp - 0x20]
call fcn.00428ec0
test eax, eax
je 0x405a0c
push 1
mov ecx, dword [ebp - 0x20]
call fcn.004275a0
mov dword [ebp - 0x14], eax
call fcn.0049b850
test eax, eax
je 0x405a0a
push 0x104
lea ecx, [ebp - 0x134]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x2d4]
mov byte [edx + 0xd0], 1
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xd4
call fcn.00409090
push 0x5a1f24
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xd8
call fcn.00409090
jmp 0x405a13
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x26c], edx
cmp dword [ebp - 0x26c], 0
je 0x405a46
push 1
mov ecx, dword [ebp - 0x26c]
call fcn.00407f30
mov dword [ebp - 0x2e0], eax
jmp 0x405a50
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
call fcn.004a2910
mov byte [ebp - 4], 2
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push 0x5a1b37
call fcn.00408ff0
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push 0x5a1f4c
call fcn.00408ff0
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ecx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push 0x5a1f58
call fcn.00408ff0
mov dword [ebp - 0x2f4], eax
push reloc.WS2_32.dll_accept
lea edx, [ebp - 0x280]
push edx
mov byte [ebp - 4], 2
call fcn.00492c20
add esp, 0x18
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00409070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x280]
call fcn.00408330
push 0x5a1f74
lea edx, [ebp - 0x24]
push edx
call fcn.00408250
add esp, 8
movzx eax, al
test eax, eax
je 0x405b57
mov dword [ebp - 0x10], 1
push str.The_Alupdate_update_file_is_remaining.
push 0x2fe
push 0x5a1fa0
push 0x61c838
call fcn.0043a910
add esp, 0x10
push 0x61c820
call fcn.00411170
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00408330
cmp dword [ebp - 0x14], 0
jne 0x405b88
push 1
mov ecx, dword [ebp - 0x2d4]
call fcn.00406a00
jmp 0x4063c7
cmp dword [0x61c80c], 2
jne 0x405eac
lea ecx, [ebp - 0x13c]
call fcn.004a2910
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.004a2910
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x138]
call fcn.004a2910
mov byte [ebp - 4], 8
push 0x5a1b41
mov ecx, dword [0x61c820]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.00498fb0
add esp, 4
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x304]
mov edx, dword [ecx]
push edx
push 0x5a1fbc
lea eax, [ebp - 0x138]
push eax
call fcn.004098b0
add esp, 0x14
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x284]
call fcn.00408330
mov ecx, dword [0x61c820]
push ecx
lea edx, [ebp - 0x288]
push edx
call fcn.00498fb0
add esp, 4
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x30c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ecx]
push edx
push 0x5a1fe0
lea eax, [ebp - 0x13c]
push eax
call fcn.004098b0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x288]
call fcn.00408330
mov ecx, dword [0x61c820]
push ecx
lea edx, [ebp - 0x28c]
push edx
call fcn.00498fb0
add esp, 4
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x314], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx]
push edx
push 0x5a2008
lea eax, [ebp - 0x140]
push eax
call fcn.004098b0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28c]
call fcn.00408330
lea ecx, [ebp - 0x13c]
call fcn.004090f0
push eax
call fcn.00488810
add esp, 4
test eax, eax
je 0x405d03
lea ecx, [ebp - 0x140]
call fcn.004090f0
push eax
call fcn.00488810
add esp, 4
test eax, eax
jne 0x405e24
push ecx
mov ecx, esp
mov dword [ebp - 0x290], esp
lea edx, [ebp - 0x138]
push edx
call fcn.00408fd0
mov dword [ebp - 0x318], eax
call fcn.004975a0
add esp, 4
push str.There_are_not_xml_files._therefore_it_eliminates_which_downloaded_it.
push 0x32a
push 0x5a202c
push 0x61c838
call fcn.0043a910
add esp, 0x10
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x294], esp
push 0x5a1b42
call fcn.00408ff0
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x298], esp
push 0x61c820
call fcn.00408fd0
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x328], ecx
mov byte [ebp - 4], 0xd
push ecx
mov edx, esp
mov dword [ebp - 0x29c], esp
push 0x61c820
push 0x5a2090
push edx
call fcn.00408180
add esp, 0xc
mov dword [ebp - 0x32c], eax
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 8
call fcn.00492e20
add esp, 0x14
push str.There_are_not_xml_files._therefore_project_change_unprepared_status.
push 0x32e
push 0x5a20f8
push 0x61c838
call fcn.0043a910
add esp, 0x10
push 5
mov ecx, dword [ebp - 0x2d4]
call fcn.00406a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x138]
call fcn.00408330
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00408330
jmp 0x4063c7
push 1
push 1
push 0
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.00428ec0
test eax, eax
je 0x405e7a
push ecx
mov ecx, esp
mov dword [ebp - 0x2a0], esp
lea eax, [ebp - 0x140]
push eax
call fcn.00408fd0
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.004287c0
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x138]
call fcn.00408330
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00408330
jmp 0x405f35
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.00428ec0
test eax, eax
je 0x405f35
mov dword [0x61c830], 1
cmp dword [ebp - 0x10], 0
je 0x405ee5
cmp dword [0x61c80c], 0
jne 0x405ee5
jmp 0x4063c7
push 0x61c820
call fcn.00490c30
add esp, 4
cmp eax, 1
jne 0x405f1f
mov edx, dword [0x61c820]
push edx
push str._s_ProjectRun_function_is_skipped_because_of_the_manager.
push 0x34a
push 0x5a2150
push 0x61c838
call fcn.0043a910
add esp, 0x14
jmp 0x4063c7
push 0
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.004275a0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405f48
push 1
mov ecx, dword [ebp - 0x2d4]
call fcn.00406a00
jmp 0x4063c7
lea ecx, [ebp - 0x15]
call fcn.004396a0
mov dword [ebp - 0x1c], eax
jmp 0x4063c7
cmp dword [0x61c82c], 0
je 0x40602c
call fcn.0049b850
test eax, eax
je 0x406027
push 0x18
call fcn.00550320
add esp, 4
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x2a8], 0
je 0x405fa7
mov ecx, dword [ebp - 0x2a8]
call fcn.004273c0
mov dword [ebp - 0x338], eax
jmp 0x405fb1
mov dword [ebp - 0x338], 0
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call fcn.0042bca0
test eax, eax
je 0x405fe7
mov ecx, dword [ebp - 0x144]
call fcn.0042cf90
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
je 0x40601d
push 1
mov ecx, dword [ebp - 0x2ac]
call fcn.00407f30
mov dword [ebp - 0x33c], eax
jmp 0x406027
mov dword [ebp - 0x33c], 0
jmp 0x40615d
push 0x18
call fcn.00550320
add esp, 4
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x2b8], 0
je 0x40605c
mov ecx, dword [ebp - 0x2b8]
call fcn.004273c0
mov dword [ebp - 0x340], eax
jmp 0x406066
mov dword [ebp - 0x340], 0
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x2b4], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x148], edx
push 1
push 0
push 1
mov ecx, dword [ebp - 0x148]
call fcn.00428ec0
test eax, eax
je 0x40611d
push 1
mov ecx, dword [ebp - 0x148]
call fcn.004275a0
call fcn.0049b850
test eax, eax
je 0x40611d
mov byte [ebp - 0x254], 0
push 0x103
push 0
lea eax, [ebp - 0x253]
push eax
call fcn.0056f420
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x254]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x2d4]
mov byte [edx + 0xd0], 1
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xd4
call fcn.00409090
push 0x5a216c
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xd8
call fcn.00409090
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x2c0], ecx
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2bc], edx
cmp dword [ebp - 0x2bc], 0
je 0x406153
push 1
mov ecx, dword [ebp - 0x2bc]
call fcn.00407f30
mov dword [ebp - 0x344], eax
jmp 0x40615d
mov dword [ebp - 0x344], 0
jmp 0x4063c7
lea ecx, [ebp - 0x259]
call fcn.0043a6d0
mov byte [ebp - 4], 0x10
push 0x5a1b43
lea ecx, [ebp - 0x258]
call fcn.00408ff0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c4]
push eax
call fcn.00498fb0
add esp, 4
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x34c], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx]
push eax
push str._sESTsoftALUpdate_filedl
lea ecx, [ebp - 0x258]
push ecx
call fcn.004098b0
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c4]
call fcn.00408330
push 0x5a1b75
lea ecx, [ebp - 0x260]
call fcn.00408ff0
mov byte [ebp - 4], 0x13
push ecx
mov ecx, esp
mov dword [ebp - 0x2c8], esp
lea edx, [ebp - 0x258]
push edx
call fcn.00408fd0
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x260]
push eax
call fcn.00496af0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x2cc], esp
lea edx, [ebp - 0x260]
push edx
call fcn.00408fd0
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x358], eax
mov byte [ebp - 4], 0x14
push ecx
mov ecx, esp
mov dword [ebp - 0x2d0], esp
mov edx, dword [0x61c728]
push edx
call fcn.00408fd0
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x259]
call fcn.0043a700
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x4062b8
push 0
mov ecx, dword [0x61c728]
add ecx, 4
call fcn.004090f0
push eax
lea ecx, [ebp - 0x260]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4062a6
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x260]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x1c], 0
jne 0x4062ec
push str.File_download_fail.
push 0x396
push 0x5a21c4
push 0x61c838
call fcn.0043a910
add esp, 0x10
mov eax, dword [ebp - 0x2d4]
mov dword [eax + 0xcc], 1
jmp 0x406308
push str.File_download_success.
push 0x39b
push str.CALUpdateApp::ModuleStart
push 0x61c838
call fcn.0043a910
add esp, 0x10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x260]
call fcn.00408330
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x258]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x259]
call fcn.0043a6f0
jmp 0x4063c7
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.00428ec0
test eax, eax
je 0x406376
mov ecx, 0x61c820
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.0042d0a0
mov dword [ebp - 0x1c], eax
jmp 0x406392
mov ecx, 0x61c820
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.0042dad0
jmp 0x4063c7
mov ecx, dword [ebp - 0x2d4]
call fcn.00407010
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2d4]
add ecx, 0xac
call fcn.00428ec0
test eax, eax
jne 0x4063c7
push 1
mov ecx, dword [ebp - 0x2d4]
call fcn.00406a00
cmp dword [0x61c720], 0
je 0x40641a
mov ecx, dword [ebp - 0x2d4]
cmp dword [ecx + 0xc4], 0
je 0x40641a
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40641a
mov dword [0x61c72c], 1
push 0
push 0
push 0x10
mov edx, dword [ebp - 0x2d4]
mov ecx, dword [edx + 0xc4]
call fcn.00408fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15]
call fcn.00439690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret 8