Function at 0x4067a1
Capabilities:
Delete file

Disassembly:
push 0x148
mov eax, 0x42b9d2
call fcn.004151ec
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.0040e0c0
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], ebx
call fcn.0040bc70
push ecx
lea eax, [ebp - 0x144]
push eax
push esi
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.0040e1d0
push ecx
mov esi, str.code
push esi
lea ecx, [ebp - 0x144]
call fcn.0040c770
cmp byte [eax + 8], 4
je 0x406814
push str.DownloadAndInstall_Fail_Unknown_Response
call fcn.00403e19
pop ecx
or esi, 0xffffffff
jmp 0x406a77
push ecx
push esi
lea ecx, [ebp - 0x144]
call fcn.0040c770
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0040c030
mov esi, 0x4365b8
push esi
mov byte [ebp - 4], 2
call fcn.00401001
pop ecx
push eax
push esi
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040251e
test eax, eax
je 0x40686e
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
push str.DownloadAndInstall_Fail_code:_s
call fcn.00403e19
pop ecx
pop ecx
or esi, 0xffffffff
jmp 0x406a6f
push 0x433b13
lea ecx, [ebp - 0xa8]
call fcn.00401bd2
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.004022e6
push ecx
push str.isCurrent
lea ecx, [ebp - 0x144]
call fcn.0040c770
mov ecx, eax
call fcn.0040c430
test al, al
jne 0x406a62
push ecx
push str.current
lea ecx, [ebp - 0x144]
call fcn.0040c770
push eax
lea ecx, [ebp - 0x154]
call fcn.0040bdb0
push ecx
push 0x43641c
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
call fcn.0040c770
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, eax
call fcn.0040c030
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
mov dword [ebp - 0x78], ebx
push 0x10
lea eax, [edi + 0x30]
pop esi
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], esi
jb 0x406911
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00404201
push 0x433b13
lea ecx, [ebp - 0x74]
call fcn.00401bd2
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
call fcn.0040424e
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00401c01
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401e97
push ecx
push 0x435ba4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00402422
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040249d
push eax
lea ecx, [ebp - 0x2c]
call fcn.004023ea
lea ecx, [ebp - 0x74]
call fcn.00401c01
push 0x435ba8
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x74]
call fcn.004026ea
pop ecx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00403a39
pop ecx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call fcn.00401c01
cmp dword [ebp - 0x18], esi
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
push ecx
call fcn.004060ba
pop ecx
pop ecx
test eax, eax
je 0x406a1c
cmp dword [ebp - 0x30], esi
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], esi
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00405d91
cmp dword [ebp - 0x30], esi
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x44]
call fcn.00401c01
lea ecx, [ebp - 0x2c]
call fcn.00401c01
lea ecx, [ebp - 0x90]
call fcn.00401c01
lea ecx, [ebp - 0xc0]
call fcn.00401c01
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 3
call fcn.0040bf00
lea ecx, [ebp - 0xa8]
mov esi, ebx
call fcn.00401c01
lea ecx, [ebp - 0x5c]
call fcn.00401c01
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], bl
call fcn.0040bf00
lea ecx, [ebp - 0x134]
call fcn.00406a9a
mov eax, esi
call fcn.004151aa
ret 4