Function at 0x4c7a10
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x56027e
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.004b9f60
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4c7b21
mov esi, dword [ebx + 0x34]
lea edi, [ebx + 0x34]
lea ecx, [eax - 0x10]
sub esi, 0x10
or ebx, 0xffffffff
cmp ecx, esi
je 0x4c7ab6
cmp dword [esi + 0xc], 0
jl 0x4c7aab
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x4c7aab
call fcn.0040a1d0
mov dword [ebp + 0x24], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c7aa4
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 0x4c7ab6
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.004126c0
cmp byte [0x5d6558], 0
je 0x4c7b18
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c81f2
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.00416df0
lea eax, [ebp + 0x2c]
mov ecx, 0x5d6524
push eax
call fcn.004c8520
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 0x4c7b18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp + 0x3a], 1
jmp 0x4c81bd
lea eax, [ebp + 0x1c]
push eax
call fcn.004c8220
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 0x4c7b8f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4c7b7c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4c7b7c
call fcn.0040a1d0
mov dword [ebp + 0x24], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4c7b6f
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 0x4c7b92
mov esi, dword [ebp + 0x28]
push dword [edx - 0xc]
push edx
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.004126c0
jmp 0x4c7b92
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 0x4c7bb0
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 0x4c7bdc
lea ecx, [eax - 1]
test ecx, ecx
js 0x4c8206
cmp ecx, eax
jg 0x4c8206
cmp word [edx + ecx*2], 0x5c
je 0x4c7bdc
push 0x5c
mov ecx, edi
call fcn.00492b30
push ecx
push edi
lea ecx, [ebp - 0x98]
call fcn.004ba4e0
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.00416df0
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c81fc
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.004ba770
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7c54
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 0x4c7cbf
push 0
call fcn.004b4bd0
mov edx, 0xa1
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.004bdc10
mov byte [ebp - 4], 0xe
push dword [esi]
push dword [ebp + 0x30]
push edi
call fcn.00417cc0
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 0x4c7cbf
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], 0x57fd8c
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 0x58d36c
mov dword [ebp - 0x64], 0x5902c8
mov dword [ebp - 0x44], 0x5902d8
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.004d68e0
mov byte [ebp - 4], 0x16
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x4c7d5e
call fcn.0051ee7b
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4c7d5e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x4c7dd3
push 0
push 0
push eax
call fcn.0051ef7d
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x58], eax
mov dword [ebp], 0x5d6668
mov byte [ebp + 4], 0
mov byte [ebp - 4], 0x17
push 0x5d6668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d6680]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov byte [ebp + 4], 1
mov dword [0x5d6680], eax
mov byte [ebp - 4], 0x16
push 0x5d6668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x441810
push esi
push 0xd8
push dword [0x5d5330]
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 0x4c7e18
lea edx, [ebp + 8]
lea ecx, [ecx + 0x34]
call fcn.00494ef0
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x2c]
je 0x4c7e18
mov al, 1
mov byte [ebp + 0x3b], al
jmp 0x4c7e21
xor al, al
mov byte [ebp + 0x3b], al
test edi, edi
jne 0x4c7e2e
cmp esi, 1
jne 0x4c7e2e
test al, al
je 0x4c8078
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.0040a1d0
add eax, 0x10
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp + 0x2c]
push 5
push str..part
call fcn.00416df0
mov esi, dword [ebp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 2
jge 0x4c80bd
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c81f2
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 0x4c7eae
push 0x111
lea ecx, [ebp + 0x34]
call fcn.00412350
mov esi, dword [ebp + 0x34]
jmp 0x4c7f2e
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.004927b0
add esp, 4
mov byte [ebp - 4], 0x1c
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4c7f10
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c7f01
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4c7f01
call fcn.0040a1d0
mov dword [ebp + 0x30], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4c7ef9
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 0x4c7f10
push dword [edx - 0xc]
lea ecx, [ebp + 0x34]
push edx
call fcn.004126c0
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 0x4c7f2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c81f2
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.0049e440
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 0x4c7fbc
push 0
call fcn.004b4bd0
mov edx, 0xa1
lea ecx, [ebp + 0x1c]
mov edi, eax
call fcn.004bdc10
mov byte [ebp - 4], 0x20
push dword [edi]
mov edi, dword [ebp + 0x30]
push dword [ebp + 0x1c]
push edi
call fcn.00417cc0
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 0x4c7fbc
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 0x4c7fda
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.004379c0
add esp, 8
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x3b], 0
je 0x4c8016
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0x30]
cmp eax, 2
je 0x4c8081
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c8036
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 0x4c8051
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 0x4c7d36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c7d36
mov byte [ebp + 0x3a], 1
jmp 0x4c8192
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c809c
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 0x4c80b7
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 [0x5d6558], 0
je 0x4c8177
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c8210
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.00416df0
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.004927b0
add esp, 4
mov byte [ebp - 4], 0x2a
mov edx, dword [eax]
test edx, edx
je 0x4c812d
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8114
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x34]
call fcn.00416df0
lea eax, [ebp + 0x34]
mov ecx, 0x5d6524
push eax
call fcn.004c8520
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 0x4c8159
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 0x4c8177
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 0x4c8192
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.004d3f30
mov byte [ebp - 4], 9
cmp byte [ebp + 0x23], 0
je 0x4c81ae
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004ba5b0
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 0x4c81dc
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.004126a0
push 0x80004005
call fcn.004126a0
push 0x80070057
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3