Function at 0x408080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bb33
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x41100c]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 5
mov edi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
jbe 0x4083b1
push 5
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x10]
call fcn.00407380
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
mov ebx, dword [ecx + 0x10]
jb 0x4080e5
mov ecx, dword [ecx]
mov edx, 5
cmp ebx, edx
cmovb edx, ebx
test edx, edx
je 0x408150
mov esi, str.https
sub edx, 4
jb 0x408111
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x408116
add ecx, 4
add esi, 4
sub edx, 4
jae 0x408100
cmp edx, 0xfffffffc
je 0x40814a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x408143
cmp edx, 0xfffffffd
je 0x40814a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x408143
cmp edx, 0xfffffffe
je 0x40814a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x408143
cmp edx, 0xffffffff
je 0x40814a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40814a
sbb eax, eax
or eax, 1
jmp 0x40814c
xor eax, eax
test eax, eax
jne 0x408164
cmp ebx, 5
jae 0x40815a
or eax, 0xffffffff
jmp 0x408162
xor eax, eax
cmp ebx, 5
setne al
test eax, eax
sete al
mov byte [ebp - 4], 1
test al, al
sete bl
cmp dword [ebp - 0x2c], 0x10
jb 0x40817e
push dword [ebp - 0x40]
call edi
add esp, 4
test bl, bl
je 0x408248
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404990
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x58], esp
push 5
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.https
mov byte [ecx], 0
call fcn.00404550
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push 4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.http
mov byte [ecx], 0
call fcn.00404550
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00407c90
mov esi, eax
lea eax, [ebp + 0x10]
cmp eax, esi
je 0x40823a
cmp dword [ebp + 0x24], 0x10
jb 0x40821f
push dword [ebp + 0x10]
call edi
add esp, 4
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 0xf
mov dword [ebp + 0x20], 0
mov byte [ebp + 0x10], 0
call fcn.00404ae0
cmp dword [ebp - 0x2c], 0x10
jb 0x408248
push dword [ebp - 0x40]
call edi
add esp, 4
sub esp, 8
mov byte [ebp - 0x44], 0x2f
lea eax, [ebp - 0x44]
lea ecx, [ebp + 0x10]
push eax
call fcn.00408400
test eax, eax
jle 0x4083b1
push 0xffffffffffffffff
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00407380
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x28]
call fcn.00408bc0
push 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
push 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
mov ebx, dword [ebp - 0x5c]
push eax
push str._s__s
push ebx
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 0x10
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc120u.dll_Ordinal_500]
push 0
push 0x1001
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.mfc120u.dll_Ordinal_11837]
test eax, eax
jne 0x4082fc
push eax
push eax
push str.Upgrade_failed__please_download_the_latest_version_from_our_website_
call dword [sym.imp.mfc120u.dll_Ordinal_2262]
xor bl, bl
jmp 0x408379
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc120u.dll_Ordinal_2843]
mov word [ebp - 0x50], 0x100
mov dword [ebp - 0x4c], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov dword [ebp - 0x54], eax
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x60], esp
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404990
push 0x4117c0
push ecx
mov ecx, esp
mov byte [ebp - 4], 9
push ebx
call dword [sym.imp.mfc120u.dll_Ordinal_280]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.00406fc0
push dword [ebp - 0x54]
test eax, eax
mov byte [ebp - 0x4f], 0
sete bl
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc120u.dll_Ordinal_1139]
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
cmp dword [ebp - 0x14], 0x10
jb 0x40839d
push dword [ebp - 0x28]
call edi
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x4083b3
xor bl, bl
cmp dword [ebp + 0x24], 0x10
jb 0x4083c1
push dword [ebp + 0x10]
call edi
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x24], 0xf
mov dword [ebp + 0x20], 0
mov byte [ebp + 0x10], 0
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
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 - 0x10]
xor ecx, ebp
call fcn.0040a185
mov esp, ebp
pop ebp
ret 0x20