Function at 0x4a183a
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51a526
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
lea edx, [esi + 0x28]
lea ecx, [ebp - 0x3c]
call fcn.00498ff4
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 0xc], 0
je 0x4a1926
lea ebx, [esi + 0x34]
mov edi, dword [ebx]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x4a18d2
cmp dword [edi + 0xc], 0
jl 0x4a18c7
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x4a18c7
call fcn.004070e1
mov ecx, edi
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov dword [ebx], eax
jmp 0x4a18d2
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.0040d89e
xor ebx, ebx
inc ebx
cmp byte [0x57f574], 0
je 0x4a1c8d
lea ecx, [ebp - 0x10]
call fcn.0040ce6d
mov esi, str.Newer_version_is_at_a_local_URL.
mov byte [ebp - 4], bl
push esi
call fcn.004e0c46
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f2f
lea eax, [ebp - 0x10]
mov ecx, 0x57f540
push eax
call fcn.004a1ee4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d133
mov byte [ebp - 4], 0
jmp 0x4a1c8d
xor eax, eax
lea edx, [ebp]
mov word [ebp], ax
call fcn.004a986b
test al, al
je 0x4a194d
cmp word [ebp], 0
je 0x4a194d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d91c
jmp 0x4a1955
lea ecx, [ebp - 0x10]
call fcn.004783e0
xor ebx, ebx
inc ebx
add esi, 0x34
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov edi, dword [esi]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x4a19a0
cmp dword [edi + 0xc], 0
jl 0x4a1995
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x4a1995
call fcn.004070e1
mov ecx, edi
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x28]
add esi, 0x34
mov dword [esi], eax
jmp 0x4a19a0
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.0040d89e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d133
mov ecx, esi
call fcn.004783b0
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00499352
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea esi, [ecx + 0x30]
mov eax, dword [esi]
lea edi, [ecx + 0x34]
mov ecx, edi
push dword [eax - 0xc]
push eax
call fcn.00410f2f
lea ecx, [ebp - 0x24]
call fcn.0040ce6d
push eax
push ecx
push 0
push esi
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
push dword [esi + 0x2c]
lea eax, [esi + 0x28]
push eax
call fcn.004994c4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0040d133
xor eax, eax
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
sete byte [ebp - 0x1a]
mov byte [ebp - 4], 6
mov ecx, dword [esi + 4]
push 0
call fcn.0049610d
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004a94ed
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc8]
call fcn.004a95d9
inc dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4a1a71
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0047afd0
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [esi + 0x2c]
je 0x4a1a6e
mov cl, bl
mov byte [ebp - 0x11], cl
jmp 0x4a1a7a
mov eax, dword [ebp - 0x24]
xor cl, cl
mov byte [ebp - 0x11], cl
test eax, eax
jne 0x4a1a87
cmp dword [ebp - 0x30], ebx
jne 0x4a1a87
test cl, cl
je 0x4a1bcd
push dword [edi]
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea ecx, [ebp - 0x10]
call fcn.0040713a
push str..part
mov byte [ebp - 4], 8
call fcn.004e0c46
pop ecx
push eax
push str..part
lea ecx, [ebp - 0x10]
call fcn.00410f2f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x2c]
cmp eax, 2
jge 0x4a1bd4
lea ecx, [ebp - 0x20]
call fcn.0040ce6d
cmp byte [ebp - 0x11], 0
mov byte [ebp - 4], 9
je 0x4a1aef
push 0x111
lea ecx, [ebp - 0x20]
call fcn.0040d58d
jmp 0x4a1b59
mov edx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004767c0
pop ecx
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], ecx
cmp eax, ecx
je 0x4a1b4d
cmp dword [ecx + 0xc], 0
jl 0x4a1b41
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4a1b41
mov ecx, dword [ebp - 0x30]
call fcn.004070e1
mov ecx, dword [ebp - 0x24]
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x4a1b4d
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.0040d89e
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.0040d133
lea ecx, [ebp - 0x18]
call fcn.0040ce6d
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push dword [ebp - 0x20]
push 0x102
push eax
call fcn.00489336
mov ecx, dword [esi + 4]
add esp, 0xc
push 0
call fcn.0049610d
mov esi, eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x45
push esi
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00475c10
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
mov esi, eax
call fcn.0040d133
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.0040d133
cmp esi, 2
je 0x4a1bd7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040d133
mov esi, dword [ebp - 0x28]
jmp 0x4a1a3a
mov al, bl
jmp 0x4a1c60
mov esi, dword [ebp - 0x24]
cmp byte [0x57f574], 0
je 0x4a1c51
push ecx
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004767c0
pop ecx
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.0040ce6d
mov edi, str.Failed_to_download_a_newer_version._Error:
mov byte [ebp - 4], 0xd
mov esi, dword [esi]
push edi
call fcn.004e0c46
pop ecx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.00410f2f
test esi, esi
je 0x4a1c2b
push esi
call fcn.004e0c46
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00410f2f
lea eax, [ebp - 0x18]
mov ecx, 0x57f540
push eax
call fcn.004a1ee4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.0040d133
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.0040d133
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040d133
mov al, byte [ebp - 0x19]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
mov bl, al
call fcn.004a9570
mov byte [ebp - 4], 4
cmp byte [ebp - 0x1a], 0
je 0x4a1c81
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.004993ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040d133
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004dab44
add ebp, 0x20c
leave
ret