Function at 0x410580
Capabilities:
Check internet connectivity via wininet
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5397df
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x58bc40]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push edi
mov eax, dword [0x58bc40]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x410c14
lea ecx, [esp + 0x4c]
mov byte [esi + 0x668], 1
call fcn.0041c0cf
lea ecx, [esp + 0x24]
mov dword [esp + 0x320], 0
call fcn.0041c0cf
lea ecx, [esp + 0x74]
mov byte [esp + 0x320], 1
call fcn.0041c0cf
lea ecx, [esp + 0x60]
mov byte [esp + 0x320], 2
call fcn.0041c0cf
lea ecx, [esp + 0x38]
mov byte [esp + 0x320], 3
call fcn.0041c0cf
push ecx
mov ecx, esp
mov byte [esp + 0x324], 4
mov dword [esp + 0x18], esp
push str.files.lst
lea ebx, [esi + 0x66c]
push ebx
push ecx
call fcn.00404010
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call fcn.00402fe0
push 0
mov eax, esi
mov byte [esp + 0x324], 5
call fcn.004103d0
mov eax, dword [esi + 0x674]
mov eax, dword [eax - 0xc]
lea edi, [esi + 0x674]
test eax, eax
js 0x410c0a
mov ecx, dword [edi]
cmp eax, dword [ecx - 0xc]
jg 0x410c0a
cmp word [ecx + eax*2], 0x2f
je 0x4106e1
push 0x569fd4
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00404010
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x324], 6
call fcn.00401e90
mov byte [esp + 0x320], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4106e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x5b0]
push 0x569fd8
call fcn.00425354
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.files.lst.zip
push ebx
push ecx
call fcn.00404010
add esp, 8
mov edx, esp
mov byte [esp + 0x32c], 7
mov dword [esp + 0x28], esp
push str.files.lst.zip
push edi
push edx
call fcn.00404010
add esp, 0xc
push esi
mov byte [esp + 0x330], 5
call fcn.00410f80
test al, al
je 0x410afe
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push str.files.lst
push ebx
push eax
call fcn.00404010
add esp, 8
mov ecx, esp
mov byte [esp + 0x328], 8
mov dword [esp + 0x24], esp
push str.files.lst.zip
push ebx
push ecx
call fcn.00404010
add esp, 0xc
push esi
mov byte [esp + 0x32c], 5
call fcn.00410c80
push str.files.lst
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00404010
mov edi, dword [eax]
add esp, 0xc
push 0x250
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.00516840
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4107c4
mov byte [esp + 0x13], 0
jmp 0x4107d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4107f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x410afe
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.self
lea edi, [esp + 0x2c]
call fcn.00402330
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call fcn.00403120
cmp dword [esp + 0x2c], 0
jg 0x41082b
call fcn.0041467d
mov edx, dword [esp + 0x28]
push str.FAILED
push edx
call fcn.00413730
add esp, 8
test al, al
je 0x410878
cmp dword [esp + 0x2c], 0
jg 0x41084d
call fcn.0041467d
mov eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x18], esp
mov ecx, esp
push eax
call fcn.00401d30
push esi
call fcn.004126f0
test al, al
jne 0x410878
push str.Self_Update_Failed
lea ecx, [esi + 0x5b0]
call fcn.00425354
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x56a05c
call fcn.00402330
push ecx
mov byte [esp + 0x328], 9
mov ecx, esp
mov dword [esp + 0x20], esp
push str.settings
call fcn.00402330
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x330], 5
call fcn.00403440
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
push eax
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.ModHosts
call fcn.00402330
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.settings
mov byte [esp + 0x32c], 0xa
call fcn.00402330
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x330], 5
call fcn.00403440
mov eax, dword [eax]
push eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 1
jne 0x4109ac
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.hosts
call fcn.00402330
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00403120
cmp dword [esp + 0x40], 0
jg 0x41098d
call fcn.0041467d
mov edx, dword [esp + 0x3c]
push str.FAILED
push edx
call fcn.00413730
add esp, 8
test al, al
je 0x4109ac
lea ecx, [esp + 0x38]
call fcn.00412d70
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.files_critical
call fcn.00402330
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00403120
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.004113f0
cmp byte [esi + 0x660], 0
jne 0x410a08
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0x684]
jg 0x410a08
push str.All_the_files_have_been_updated
lea ecx, [esi + 0x5b0]
call fcn.00425354
jmp 0x410a8a
mov eax, dword [esi + 0x680]
push eax
call edi
cmp eax, 1
jne 0x410a58
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push str.backup_
push ebx
push eax
call fcn.00404010
add esp, 0xc
lea ecx, [esi + 0x63c]
call fcn.00404b20
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.backup
push ebx
push ecx
call fcn.00404010
add esp, 0xc
lea ecx, [esi + 0x63c]
call fcn.00404dd0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.files_normal
lea edi, [esp + 0x68]
call fcn.00402330
lea edx, [esp + 0x8c]
push edx
mov ecx, edi
call fcn.00403120
lea eax, [esp + 0x4c]
push eax
mov edx, edi
mov ecx, esi
call fcn.004113f0
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.004119f0
test al, al
je 0x410ac0
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x684]
jle 0x410ac0
push eax
push 0x569fb4
push str.Settings
mov ecx, 0x593bf8
mov dword [esi + 0x684], eax
call fcn.0042b72a
push str.files.lst
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00404010
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410b0e
push str.Update_Failed
lea ecx, [esi + 0x5b0]
call fcn.00425354
push 1
mov eax, esi
call fcn.004103d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
call fcn.0041c1ae
mov byte [esi + 0x668], 0
mov dword [esp + 0x88], vtable.CListFile.0
mov byte [esp + 0x320], 0xc
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x320], 0xb
call fcn.0041c355
lea ecx, [esp + 0x8c]
mov byte [esp + 0x320], 4
call fcn.0041be65
lea ecx, [esp + 0x38]
mov byte [esp + 0x320], 3
call fcn.0041c355
lea ecx, [esp + 0x60]
mov byte [esp + 0x320], 2
call fcn.0041c355
lea ecx, [esp + 0x74]
mov byte [esp + 0x320], 1
call fcn.0041c355
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 0
call fcn.0041c355
lea ecx, [esp + 0x4c]
mov dword [esp + 0x320], 0xffffffff
call fcn.0041c355
jmp 0x410c4e
push 0x80070057
call fcn.004026c0
push str.The_connection_to_the_update_server_has_been_terminated.
lea ecx, [esi + 0x5b0]
call fcn.00425354
mov ecx, dword [esi + 0x460]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x402
push ecx
call edi
mov edx, dword [esi + 0x518]
push 0
push 0
push 0x402
push edx
call edi
xor eax, eax
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.00513700
mov esp, ebp
pop ebp
ret