Function at 0x40d4e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44041b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x457c70]
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.0040d270
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp edi, 1
jne 0x40d73a
mov eax, dword [esi + 8]
dec eax
je 0x40d5a5
dec eax
je 0x40d59c
dec eax
jne 0x40d6c8
cmp byte [esi + 0xe], al
je 0x40d576
lea eax, [esi + 0x820]
mov ecx, esi
push eax
lea eax, [esi + 0x618]
push eax
call fcn.0040de40
test al, al
je 0x40d576
mov byte [esi + 0xd], 1
jmp 0x40d6c8
mov bl, 1
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + str.Bad_update_signature]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x40d580
jmp 0x40d6c8
mov byte [esi + 0xe], 1
jmp 0x40d6c8
push 3
push 0x453b18
lea eax, [ebp - 0x224]
push eax
lea ebx, [esi + 0x410]
push ebx
call fcn.004013e0
add esp, 0x10
test eax, eax
je 0x40d69b
cmp byte [esi + 0xc], 0
je 0x40d663
mov eax, dword [esi + 0xa2c]
test eax, eax
je 0x40d61b
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x40d61b
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d60e
test dx, dx
je 0x40d60a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d60e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d5e8
xor eax, eax
jmp 0x40d613
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d61b
mov byte [esi + 0xd], 0
mov eax, dword [esi + 0xa30]
test eax, eax
je 0x40d663
mov ecx, dword [ebp - 0x21c]
jmp 0x40d630
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d656
test dx, dx
je 0x40d652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d656
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d630
xor eax, eax
jmp 0x40d65b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d663
mov byte [esi + 0xe], 0
lea eax, [ebp - 0x224]
push eax
lea ecx, [esi + 0xa28]
call fcn.0040d340
cmp byte [esi + 0xa50], 0
mov byte [esi + 0xc], 1
je 0x40d6bb
cmp dword [esi], 0
jne 0x40d6bb
mov ecx, esi
call fcn.0040da20
test al, al
je 0x40d6bb
mov ecx, esi
call fcn.0040dca0
jmp 0x40d6bb
mov byte [ebp - 0x211], 1
xor ecx, ecx
movzx eax, word [ecx + str.Bad_update_file]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x40d6a4
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 0x40d757
mov ecx, esi
call fcn.0040da20
test al, al
je 0x40d757
mov ecx, esi
mov dword [esi + 8], 0
call fcn.0040d400
test al, al
jne 0x40d75e
push dword [esi + 0xa30]
lea eax, [ebp - 0x210]
push str.Failed_to_download_signature_from_URL:
push str._s_s
push eax
call fcn.0041d8c8
add esp, 0x10
lea eax, [ebp - 0x210]
mov bl, 1
push 0x10
push str.Update_Error
push eax
push dword [0x46346c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esi + 0xc], 0
jmp 0x40d75e
test edi, edi
jne 0x40d749
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xa34], eax
jmp 0x40d761
cmp edi, 2
jne 0x40d75e
cmp dword [esi + 8], edi
jne 0x40d757
mov byte [esi + 0xc], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x40d781
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.0040d300
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.0041cc0e
mov esp, ebp
pop ebp
ret 0xc