Function at 0x4c7660
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x55ff7e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 0x28], ebx
lea edx, [ebx + 0x28]
lea ecx, [ebp + 0xc]
call fcn.004b9d40
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4c7771
mov esi, dword [ebx + 0x34]
lea edi, [ebx + 0x34]
lea ecx, [eax - 0x10]
sub esi, 0x10
or ebx, 0xffffffff
cmp ecx, esi
je 0x4c7706
cmp dword [esi + 0xc], 0
jl 0x4c76fb
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x4c76fb
call fcn.0040be70
mov dword [ebp + 0x24], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c76f4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x24]
add eax, 0x10
mov dword [edi], eax
jmp 0x4c7706
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.004143c0
cmp byte [0x5d65b0], 0
je 0x4c7768
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c7e42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x2c]
push 0x20
push str.Newer_version_is_at_a_local_URL.
call fcn.00418250
lea eax, [ebp + 0x2c]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7768
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp + 0x3a], 1
jmp 0x4c7e0d
lea eax, [ebp + 0x1c]
push eax
call fcn.004c7e70
mov byte [ebp - 4], 7
lea edi, [ebx + 0x34]
mov edx, dword [eax]
or ebx, 0xffffffff
mov esi, dword [edi]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4c77df
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4c77cc
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4c77cc
call fcn.0040be70
mov dword [ebp + 0x24], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4c77bf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
add eax, 0x10
lea edi, [esi + 0x34]
mov dword [edi], eax
jmp 0x4c77e2
mov esi, dword [ebp + 0x28]
push dword [edx - 0xc]
push edx
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.004143c0
jmp 0x4c77e2
mov esi, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7800
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4c782c
lea ecx, [eax - 1]
test ecx, ecx
js 0x4c7e56
cmp ecx, eax
jg 0x4c7e56
cmp word [edx + ecx*2], 0x5c
je 0x4c782c
push 0x5c
mov ecx, edi
call fcn.00492e20
push ecx
push edi
lea ecx, [ebp - 0x98]
call fcn.004ba2c0
mov byte [ebp - 4], 9
lea edi, [esi + 0x30]
mov eax, dword [edi]
lea ecx, [esi + 0x34]
push dword [eax - 0xc]
push eax
call fcn.00418250
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c7e4c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x24], esi
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x24]
push eax
push ecx
push 0
push edi
mov edi, dword [ebp + 0x28]
lea ecx, [ebp - 0x98]
push dword [edi + 0x2c]
lea eax, [edi + 0x28]
push eax
call fcn.004ba550
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c78a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
sete byte [ebp + 0x23]
mov byte [ebp - 4], 0xd
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
cmp dword [eax - 0xc], 0
jne 0x4c790f
push 0
call fcn.004b4830
mov edx, 0xa1
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.004bd9e0
mov byte [ebp - 4], 0xe
push dword [esi]
push dword [ebp + 0x30]
push edi
call fcn.00419120
add esp, 0xc
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c790f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x98]
mov dword [ebp - 0x44], 0x57fe64
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 0x58d55c
mov dword [ebp - 0x64], 0x5905c0
mov dword [ebp - 0x44], 0x5905d0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004d64e0
mov byte [ebp - 4], 0x16
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x4c79ae
call fcn.0051e5b1
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4c79ae
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x4c7a23
push 0
push 0
push eax
call fcn.0051e6b3
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x58], eax
mov dword [ebp], 0x5d671c
mov byte [ebp + 4], 0
mov byte [ebp - 4], 0x17
push 0x5d671c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d6734]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov byte [ebp + 4], 1
mov dword [0x5d6734], eax
mov byte [ebp - 4], 0x16
push 0x5d671c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x443340
push esi
push 0xd8
push dword [0x5d5388]
mov byte [ebp + 4], 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 0x14]
mov edi, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x34], 0
test edi, edi
jne 0x4c7a68
lea edx, [ebp + 8]
lea ecx, [ecx + 0x34]
call fcn.00494ed0
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x2c]
je 0x4c7a68
mov al, 1
mov byte [ebp + 0x3b], al
jmp 0x4c7a71
xor al, al
mov byte [ebp + 0x3b], al
test edi, edi
jne 0x4c7a7e
cmp esi, 1
jne 0x4c7a7e
test al, al
je 0x4c7cc8
push dword [ecx + 0x34]
lea esi, [ecx + 0x34]
mov byte [ebp + 0x3a], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040be70
add eax, 0x10
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp + 0x2c]
push 5
push str..part
call fcn.00418250
mov esi, dword [ebp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 2
jge 0x4c7d0d
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c7e42
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x34], esi
mov byte [ebp - 4], 0x1b
cmp byte [ebp + 0x3b], 0
je 0x4c7afe
push 0x111
lea ecx, [ebp + 0x34]
call fcn.00414050
mov esi, dword [ebp + 0x34]
jmp 0x4c7b7e
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.00492aa0
add esp, 4
mov byte [ebp - 4], 0x1c
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4c7b60
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c7b51
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4c7b51
call fcn.0040be70
mov dword [ebp + 0x30], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4c7b49
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x30]
lea esi, [eax + 0x10]
mov dword [ebp + 0x34], esi
jmp 0x4c7b60
push dword [edx - 0xc]
lea ecx, [ebp + 0x34]
push edx
call fcn.004143c0
mov esi, dword [ebp + 0x34]
mov byte [ebp - 4], 0x1b
mov eax, ebx
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7b7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c7e42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp + 0x24]
push esi
push 0x102
push eax
call fcn.0049e040
mov eax, dword [ebp + 0x28]
add esp, 0xc
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
cmp dword [eax - 0xc], 0
mov dword [ebp + 0x30], edi
jne 0x4c7c0c
push 0
call fcn.004b4830
mov edx, 0xa1
lea ecx, [ebp + 0x1c]
mov edi, eax
call fcn.004bd9e0
mov byte [ebp - 4], 0x20
push dword [edi]
mov edi, dword [ebp + 0x30]
push dword [ebp + 0x1c]
push edi
call fcn.00419120
add esp, 0xc
mov byte [ebp - 4], 0x1f
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7c0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x3b], 0
test eax, eax
jne 0x4c7c2a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x3b], 1
mov ecx, dword [edi]
xor eax, eax
mov edi, dword [ebp + 0x24]
mov edx, 0x45
cmp dword [ecx - 0xc], eax
cmove ecx, eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
call fcn.004394e0
add esp, 8
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x3b], 0
je 0x4c7c66
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0x30]
cmp eax, 2
je 0x4c7cd1
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7c86
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7ca1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, ebx
mov edx, dword [ebp + 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7986
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c7986
mov byte [ebp + 0x3a], 1
jmp 0x4c7de2
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7cec
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7d07
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x30]
mov esi, dword [ebp + 0x2c]
cmp byte [0x5d65b0], 0
je 0x4c7dc7
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c7e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x34], eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x34]
push 0x2a
push str.Failed_to_download_a_newer_version._Error:
call fcn.00418250
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.00492aa0
add esp, 4
mov byte [ebp - 4], 0x2a
mov edx, dword [eax]
test edx, edx
je 0x4c7d7d
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7d64
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x34]
call fcn.00418250
lea eax, [ebp + 0x34]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 0x29
mov eax, ebx
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7da9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, ebx
mov edx, dword [ebp + 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7dc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7de2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x64]
call fcn.004d3b30
mov byte [ebp - 4], 9
cmp byte [ebp + 0x23], 0
je 0x4c7dfe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004ba390
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c7e2c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0x3a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x3c]
pop ebp
ret
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
push 0x80070057
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3