Function at 0x42ad12
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x170
mov eax, 0x4bd97d
call fcn.00492516
and dword [ebp - 0x10], 0
mov esi, ecx
push str.DownloadThread___starting
lea ecx, [ebp - 0x38]
call fcn.00470680
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.004126e0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00470660
jmp 0x42b534
cmp dword [esi + 0xb9c], 0
je 0x42b543
mov eax, dword [esi + 0xb90]
xor ebx, ebx
mov dword [esi + 0xb38], ebx
mov dword [esi + 0xb3c], ebx
mov dword [esi + 0xb6c], ebx
mov edi, dword [eax + 8]
lea ecx, [esi + 0xb8c]
call fcn.004718a0
lea ecx, [ebp - 0xd4]
call fcn.00422b38
lea eax, [ebp - 0xd4]
mov dword [esi + 0xba0], eax
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
mov dword [esi + 0xba4], edi
call fcn.00424c63
push ebx
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00423ef2
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 4
call fcn.00470660
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [edi + 0x64]
push ebx
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x104]
push str.download_thread:_downloading:
push eax
call fcn.00470fb0
push eax
mov byte [ebp - 4], 5
call fcn.004126e0
add esp, 0x10
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 4
call fcn.00470660
cmp byte [ebx + 7], 0xff
mov eax, dword [esi + 0x30]
mov ecx, ebx
jne 0x42ae39
mov ecx, dword [ebx]
xor edx, edx
test eax, eax
push 0
setne dl
lea eax, [ebp - 0xa0]
push edx
push dword [esi + 0xff0]
push edi
push ecx
push eax
push esi
push esi
lea ecx, [ebp - 0xd4]
call fcn.00423197
mov dword [ebp - 0x30], eax
test eax, eax
jns 0x42af52
push str.first_download_failed__trying_second
lea ecx, [ebp - 0x68]
call fcn.00470680
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 6
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00470660
lea eax, [edi + 0x6c]
push eax
lea eax, [ebp - 0xdc]
push str.trying_backup_
push eax
call fcn.00470fb0
push eax
mov byte [ebp - 4], 7
call fcn.004126e0
add esp, 0x10
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00470660
lea eax, [edi + 0x6c]
push eax
push ebx
call fcn.0040d585
pop ecx
pop ecx
test al, al
je 0x42af29
mov ecx, dword [esi + 0x30]
lea eax, [edi + 0x6c]
cmp byte [eax + 7], 0xff
jne 0x42aee0
mov eax, dword [eax]
xor edx, edx
test ecx, ecx
push 0
setne dl
lea ecx, [ebp - 0xd4]
push edx
push dword [esi + 0xff0]
push edi
push eax
lea eax, [ebp - 0xa0]
push eax
push esi
push esi
call fcn.00423197
push str.download_thread:_failed
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], eax
call fcn.00470680
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 8
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x70]
jmp 0x42af70
push str.download_thread:_worked_second_try
lea ecx, [ebp - 0xa8]
call fcn.00470680
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 9
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0xa8]
jmp 0x42af70
push str.download_thread:_worked_first_try
lea ecx, [ebp - 0x58]
call fcn.00470680
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xa
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00470660
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [esi + 0xba0], eax
mov dword [esi + 0xba4], eax
cmp dword [edi + 4], eax
jne 0x42af9e
cmp dword [esi + 0x34], eax
jne 0x42b516
push 0x3ff
mov byte [ebp], al
lea eax, [ebp + 1]
push 0
push eax
call fcn.00491e90
lea eax, [edi + 0xac]
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x42afc2
mov eax, dword [eax]
cmp byte [ebx + 7], 0xff
jne 0x42afca
mov ebx, dword [ebx]
lea ecx, [edi + 0x3c]
cmp byte [ecx + 7], 0xff
mov dword [ebp - 0x40], ecx
jne 0x42afd8
mov ecx, dword [ecx]
push eax
push dword [ebp - 0xc8]
lea eax, [ebp]
push ebx
push ecx
push str.Package_URL___s____s__Status_Code___d__Launch___s
push eax
call fcn.0049343b
add esp, 0x18
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.00470680
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xb
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00470660
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
jl 0x42b556
cmp dword [ebp - 0xc0], ebx
je 0x42b516
push str.download_thread:_success
lea ecx, [ebp - 0x78]
call fcn.00470680
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x13
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00470660
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00424bea
lea ebx, [edi + 0x7c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x14
call fcn.00470710
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 4
call fcn.00470660
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00424bea
push eax
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 0x15
call fcn.00479750
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00479810
push 0x4d2978
push eax
mov byte [ebp - 4], 0x18
call fcn.0040d567
pop ecx
pop ecx
lea ecx, [ebp - 0x144]
mov byte [ebp - 0x19], al
mov byte [ebp - 4], 0x17
call fcn.00470660
cmp byte [ebp - 0x19], 0
je 0x42b1b9
push ebx
lea eax, [ebp - 0xec]
push str.download_thread:_exe_
push eax
call fcn.00470fb0
push eax
mov byte [ebp - 4], 0x19
call fcn.004126e0
add esp, 0x10
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x17
call fcn.00470660
call fcn.0042987e
test al, al
jne 0x42b46a
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00479790
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0x1a
jne 0x42b14f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004248ee
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x1c
call fcn.00470660
push str.download_thread:_checking_dig_sig
lea ecx, [ebp - 0x60]
call fcn.00470680
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0x1d
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x1c
call fcn.00470660
push 0x4d1b58
push dword [ebp - 0x3c]
call fcn.00419825
pop ecx
pop ecx
test eax, eax
jne 0x42b673
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x17
call fcn.0041956a
jmp 0x42b46a
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00479810
or dword [ebp - 0x10], 1
push 0x4d1b54
push eax
mov byte [ebp - 4], 0x21
call fcn.0040d567
pop ecx
pop ecx
test al, al
jne 0x42b216
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00479810
or dword [ebp - 0x10], 2
push 0x4d1b80
push eax
mov dword [ebp - 4], 0x22
call fcn.0040d567
pop ecx
pop ecx
test al, al
jne 0x42b216
xor bl, bl
jmp 0x42b218
mov bl, 1
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 0x21
je 0x42b234
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0xfc]
call fcn.00470660
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 0x17
je 0x42b250
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x12c]
call fcn.00470660
test bl, bl
je 0x42b46a
push str.download_thread:_extensino_rup_or_cab
lea ecx, [ebp - 0x80]
call fcn.00470680
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x23
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea ecx, [edi + 0x74]
call fcn.0040d4fd
test al, al
jne 0x42b719
push str.download_thread:_extracting
lea ecx, [ebp - 0x48]
call fcn.00470680
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x24
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea eax, [ebp - 0x14c]
push eax
mov ecx, esi
call fcn.00424c63
mov ebx, eax
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x25
call fcn.00424bea
cmp byte [ebx + 7], 0xff
mov byte [ebp - 4], 0x26
jne 0x42b2e8
mov ebx, dword [ebx]
cmp byte [eax + 7], 0xff
jne 0x42b2f0
mov eax, dword [eax]
push ebx
push eax
lea eax, [esi + 4]
push eax
call fcn.0042492f
add esp, 0xc
lea ecx, [ebp - 0x10c]
mov ebx, eax
mov byte [ebp - 4], 0x25
call fcn.00470660
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x17
call fcn.00470660
test ebx, ebx
js 0x42b719
lea ecx, [ebp - 0x38]
call fcn.004703d0
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push eax
mov ecx, esi
mov byte [ebp - 4], 0x2c
call fcn.00424c63
mov ecx, esi
call fcn.00424fe6
lea ecx, [ebp - 0x38]
call fcn.0040d4fd
lea ecx, [esi + 0xe0]
test al, al
jne 0x42b3ca
call fcn.0040d4fd
test al, al
jne 0x42b377
push 0x4cfb0c
lea ecx, [esi + 0xe0]
call fcn.00470ae0
push str._id
push dword [ebp - 0x40]
lea eax, [ebp - 0xe4]
push eax
call fcn.00470f60
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 4], 0x2d
call fcn.00470f10
add esp, 0x18
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 0x2e
call fcn.00470bc0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x2d
call fcn.00470660
lea ecx, [ebp - 0xe4]
jmp 0x42b410
call fcn.0040d4fd
test al, al
jne 0x42b3e3
push 0x4cfb0c
lea ecx, [esi + 0xe0]
call fcn.00470ae0
push str._id
push dword [ebp - 0x40]
lea eax, [ebp - 0xf4]
push eax
call fcn.00470f60
add esp, 0xc
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 0x2f
call fcn.00470bc0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x2c
call fcn.00470660
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00424c63
lea ecx, [edi + 0x74]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x30
call fcn.00470f10
add esp, 0xc
push eax
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 0x31
call fcn.00470710
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x30
call fcn.00470660
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2c
call fcn.00470660
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call fcn.00470660
push str.download_thread:_downloaded__TRUE
lea ecx, [ebp - 0x24]
mov dword [edi + 0xc], 1
call fcn.00470680
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0x32
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea ebx, [edi + 0x7c]
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x42b4a5
mov eax, dword [ebx]
push 0
push eax
call fcn.00410d7f
mov dword [edi + 0x24], eax
push str.main
add edi, 0x4c
push edi
call fcn.0040d567
add esp, 0x10
test al, al
je 0x42b4da
mov eax, dword [ebp - 0xc4]
push ebx
lea ecx, [esi + 0x70]
mov dword [esi + 0x1c8], eax
call fcn.00470710
lea ecx, [esi + 0xb44]
call fcn.0040d4fd
test al, al
jne 0x42b4f9
push 0x4d1e7c
lea ecx, [esi + 0xb44]
call fcn.00470ae0
push dword [ebp - 0x40]
lea ecx, [esi + 0xb44]
call fcn.00470bc0
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 4
call fcn.004798b0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.00423f5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.00422e51
mov ecx, esi
call fcn.00426574
test eax, eax
jne 0x42ad6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb50], eax
xor edi, edi
jmp 0x42b824
cmp dword [esi + 0x14], ebx
jne 0x42b61e
lea ecx, [esi + 0xc]
call fcn.0040d4fd
add edi, 0x3c
test al, al
push edi
lea eax, [ebp - 0x2c]
jne 0x42b5a6
push str.actionerrorvaluelocal_
push eax
call fcn.00470fb0
push str._missing
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xc
call fcn.00470f60
add esp, 0x18
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call dword [edx + 0x10]
mov byte [ebp - 4], 0xc
jmp 0x42b60a
push str.actionerrorvalue
push eax
call fcn.00470fb0
cmp dword [ebp - 0x30], 0x800705b4
jne 0x42b5e3
push str._timeout
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xe
call fcn.00470f60
add esp, 0x18
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call dword [edx + 0x10]
mov byte [ebp - 4], 0xe
jmp 0x42b60a
push str._missing
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x10
call fcn.00470f60
add esp, 0x18
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call dword [edx + 0x10]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x18]
call fcn.00470660
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00470660
lea ecx, [esi + 0x1f0]
call fcn.0041fbb7
push str.download_thread:_exiting
lea ecx, [ebp - 0x24]
call fcn.00470680
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0x12
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00470660
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.00423f5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.00422e51
jmp 0x42b8b2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00479790
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0x1e
jne 0x42b68e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call fcn.00470660
add edi, 0x3c
push edi
lea eax, [ebp - 0x2c]
push str.actionerrorvalue
push eax
call fcn.00470fb0
push str._invalid
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x1f
call fcn.00470f60
add esp, 0x18
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x20
call dword [edx + 0x10]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1f
call fcn.00470660
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1c
call fcn.00470660
lea ecx, [esi + 0x1f0]
call fcn.0041fbb7
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.0041956a
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 4
call fcn.004798b0
jmp 0x42b650
push str.download_thread:_failure
lea ecx, [ebp - 0x24]
call fcn.00470680
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0x27
call fcn.004126e0
pop ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00424bea
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0x28
jne 0x42b75b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea ecx, [esi + 0xe0]
call fcn.0040d4fd
test al, al
jne 0x42b78d
push 0x4cfb0c
lea ecx, [esi + 0xe0]
call fcn.00470ae0
push str._id
add edi, 0x3c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00470f60
add esp, 0xc
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 0x29
call fcn.00470bc0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call fcn.00470660
push edi
lea eax, [ebp - 0x2c]
push str.actionerrorvalue
push eax
call fcn.00470fb0
push str._invalid
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x2a
call fcn.00470f60
add esp, 0x18
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x2b
call dword [edx + 0x10]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2a
call fcn.00470660
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.00470660
lea ecx, [esi + 0x1f0]
call fcn.0041fbb7
jmp 0x42b705
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x38], edi
jne 0x42b819
lea ecx, [ebp - 0x24]
cmp dword [esi + 0x14], edi
jne 0x42b861
push str.download_thread:_setting_m_bDownloaded__T
call fcn.00470680
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0x33
call fcn.004126e0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00470660
mov dword [esi + 0x40], 1
jmp 0x42b888
push str.download_thread:_did_not_set_m_bDownloaded__T
call fcn.00470680
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0x34
call fcn.004126e0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00470660
push str.download_thread:_exiting_2
lea ecx, [ebp - 0x48]
call fcn.00470680
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0x35
call fcn.004126e0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00470660
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00492093
add ebp, 0x404
leave
ret