Function at 0x40df70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4984cb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x224]
xor bl, bl
mov dword [ebp - 0x218], eax
mov byte [ebp - 0x211], bl
call fcn.0040dd00
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp edi, 1
jne 0x40e1e1
mov eax, dword [esi + 8]
sub eax, edi
je 0x40e052
sub eax, edi
je 0x40e049
sub eax, edi
jne 0x40e173
cmp byte [esi + 0xe], al
je 0x40e009
lea eax, [esi + 0x820]
mov ecx, esi
push eax
lea eax, [esi + 0x618]
push eax
call fcn.0040e930
test al, al
je 0x40e009
mov byte [esi + 0xd], 1
jmp 0x40e173
movups xmm0, xmmword [str.Bad_update_signature]
mov ax, word [0x4a5d00]
mov bl, 1
mov word [ebp - 0x1e8], ax
movups xmmword [ebp - 0x210], xmm0
movups xmm0, xmmword [0x4a5ce8]
movups xmmword [ebp - 0x200], xmm0
movq xmm0, qword [0x4a5cf8]
movq qword [ebp - 0x1f0], xmm0
jmp 0x40e173
mov byte [esi + 0xe], 1
jmp 0x40e173
push 3
push 0x4cbda0
lea eax, [ebp - 0x224]
push eax
lea ebx, [esi + 0x410]
push ebx
call fcn.00401610
add esp, 0x10
test eax, eax
je 0x40e143
cmp byte [esi + 0xc], 0
je 0x40e10b
mov eax, dword [esi + 0xa2c]
test eax, eax
je 0x40e0c8
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x40e0c8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e0bb
test dx, dx
je 0x40e0b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e0bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e095
xor eax, eax
jmp 0x40e0c0
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e0c8
mov byte [esi + 0xd], 0
mov eax, dword [esi + 0xa30]
test eax, eax
je 0x40e10b
mov ecx, dword [ebp - 0x21c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e0fe
test dx, dx
je 0x40e0fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e0fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e0d8
xor eax, eax
jmp 0x40e103
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e10b
mov byte [esi + 0xe], 0
lea eax, [ebp - 0x224]
push eax
lea ecx, [esi + 0xa28]
call fcn.0040ddd0
cmp byte [esi + 0xa50], 0
mov byte [esi + 0xc], 1
je 0x40e166
cmp dword [esi], 0
jne 0x40e166
mov ecx, esi
call fcn.0040e500
test al, al
je 0x40e166
mov ecx, esi
call fcn.0040e780
jmp 0x40e166
movups xmm0, xmmword [str.Bad_update_file]
mov byte [ebp - 0x211], 1
movups xmmword [ebp - 0x210], xmm0
movups xmm0, xmmword [0x4a5cc8]
movups xmmword [ebp - 0x200], xmm0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, byte [ebp - 0x211]
cmp dword [esi + 8], 1
mov dword [esi + 0xa34], 0x64
jne 0x40e1fe
mov ecx, esi
call fcn.0040e500
test al, al
je 0x40e1fe
mov ecx, esi
mov dword [esi + 8], 0
call fcn.0040de90
test al, al
jne 0x40e205
push dword [esi + 0xa30]
lea eax, [ebp - 0x210]
push str.Failed_to_download_signature_from_URL:
push str._s_s
push eax
call fcn.00406c90
add esp, 0x10
lea eax, [ebp - 0x210]
mov bl, 1
push 0x10
push str.Update_Error
push eax
push dword [0x4db82c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esi + 0xc], 0
jmp 0x40e205
test edi, edi
jne 0x40e1f0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xa34], eax
jmp 0x40e208
cmp edi, 2
jne 0x40e205
cmp dword [esi + 8], edi
jne 0x40e1fe
mov byte [esi + 0xc], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x40e228
push dword [esi + 4]
test bl, bl
push eax
lea eax, [ebp - 0x210]
cmove eax, dword [ebp - 0x218]
push edi
push eax
call ecx
add esp, 0x10
lea ecx, [ebp - 0x224]
call fcn.0040dd90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret 0xc