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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53932f
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push edi
mov eax, dword [0x58bcc0]
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 0x4107ff
lea ecx, [esp + 0x4c]
mov byte [esi + 0x838], 1
call fcn.00414a40
lea ecx, [esp + 0x24]
mov dword [esp + 0x320], 0
call fcn.00414a40
lea ecx, [esp + 0x74]
mov byte [esp + 0x320], 1
call fcn.00414a40
lea ecx, [esp + 0x60]
mov byte [esp + 0x320], 2
call fcn.00414a40
lea ecx, [esp + 0x38]
mov byte [esp + 0x320], 3
call fcn.00414a40
push ecx
mov ecx, esp
mov byte [esp + 0x324], 4
mov dword [esp + 0x18], esp
push str.files.lst
lea ebx, [esi + 0x83c]
push ebx
push ecx
call fcn.00403900
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call fcn.00402800
push 0
push 0
mov byte [esp + 0x328], 5
mov eax, dword [esi + 0x4a8]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [esi + 0x488]
mov dword [esi + 0x524], 4
call fcn.0041de5d
push 0
lea ecx, [esi + 0x488]
call fcn.0041de5d
mov ecx, dword [esi + 0x56c]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [esi + 0x54c]
mov dword [esi + 0x5e8], 4
call fcn.0041de5d
push 0
lea ecx, [esi + 0x54c]
call fcn.0041de5d
mov edx, dword [esi + 0x844]
mov eax, dword [edx - 0xc]
lea edi, [esi + 0x844]
test eax, eax
js 0x4107f5
mov ecx, edx
cmp eax, dword [ecx - 0xc]
jg 0x4107f5
cmp word [ecx + eax*2], 0x2f
je 0x4102cc
push 0x56987c
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00403900
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 ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x780]
push 0x569880
call fcn.0041dd50
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.files.lst.zip
push ebx
push ecx
call fcn.00403900
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.00403900
add esp, 0xc
push esi
mov byte [esp + 0x330], 5
call fcn.00410b60
test al, al
je 0x4106e9
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push str.files.lst
push ebx
push eax
call fcn.00403900
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.00403900
add esp, 0xc
push esi
mov byte [esp + 0x32c], 5
call fcn.00410860
push str.files.lst
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00403900
mov edi, dword [eax]
add esp, 0xc
push 0x250
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.00516740
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4103af
mov byte [esp + 0x13], 0
jmp 0x4103bb
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 0x4103db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x4106e9
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.00402940
cmp dword [esp + 0x2c], 0
jg 0x410416
call fcn.00414196
mov edx, dword [esp + 0x28]
push str.FAILED
push edx
call fcn.00413250
add esp, 8
test al, al
je 0x410463
cmp dword [esp + 0x2c], 0
jg 0x410438
call fcn.00414196
mov eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x18], esp
mov ecx, esp
push eax
call fcn.00401d30
push esi
call fcn.00412210
test al, al
jne 0x410463
push str.Self_Update_Failed
lea ecx, [esi + 0x780]
call fcn.0041dd50
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x569904
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.00402c60
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 0x4104d6
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.00402c60
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 0x410543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 1
jne 0x410597
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.00402940
cmp dword [esp + 0x40], 0
jg 0x410578
call fcn.00414196
mov edx, dword [esp + 0x3c]
push str.FAILED
push edx
call fcn.00413250
add esp, 8
test al, al
je 0x410597
lea ecx, [esp + 0x38]
call fcn.00412890
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.00402940
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.00410f00
cmp byte [esi + 0x830], 0
jne 0x4105f3
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0x854]
jg 0x4105f3
push str.All_the_files_have_been_updated
lea ecx, [esi + 0x780]
call fcn.0041dd50
jmp 0x410675
mov eax, dword [esi + 0x850]
push eax
call edi
cmp eax, 1
jne 0x410643
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push str.backup_
push ebx
push eax
call fcn.00403900
add esp, 0xc
lea ecx, [esi + 0x80c]
call fcn.00404480
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.backup
push ebx
push ecx
call fcn.00403900
add esp, 0xc
lea ecx, [esi + 0x80c]
call fcn.00404730
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.00402940
lea eax, [esp + 0x4c]
push eax
mov edx, edi
mov ecx, esi
call fcn.00410f00
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.00411510
test al, al
je 0x4106ab
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x854]
jle 0x4106ab
push eax
push 0x56985c
push str.Settings
mov ecx, 0x593b38
mov dword [esi + 0x854], eax
call fcn.004244e6
push str.files.lst
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00403900
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 0x4106f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4106f9
push str.Update_Failed
lea ecx, [esi + 0x780]
call fcn.0041dd50
push 1
mov eax, esi
call fcn.0040ff60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
call fcn.00414b1f
mov byte [esi + 0x838], 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 0x410773
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.00414cc6
lea ecx, [esp + 0x8c]
mov byte [esp + 0x320], 4
call fcn.004147d6
lea ecx, [esp + 0x38]
mov byte [esp + 0x320], 3
call fcn.00414cc6
lea ecx, [esp + 0x60]
mov byte [esp + 0x320], 2
call fcn.00414cc6
lea ecx, [esp + 0x74]
mov byte [esp + 0x320], 1
call fcn.00414cc6
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 0
call fcn.00414cc6
lea ecx, [esp + 0x4c]
mov dword [esp + 0x320], 0xffffffff
call fcn.00414cc6
jmp 0x410839
push 0x80070057
call fcn.004026c0
push str.The_connection_to_the_update_server_has_been_terminated.
lea ecx, [esi + 0x780]
call fcn.0041dd50
mov ecx, dword [esi + 0x630]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x402
push ecx
call edi
mov edx, dword [esi + 0x6e8]
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.00513242
mov esp, ebp
pop ebp
ret