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

Disassembly:
push 0xffffffffffffffff
push 0x4928d4
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3aa8]
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.004553e0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041a0c0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.00402950
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24c], 0
call fcn.0041a9b0
push 0x103
lea ecx, [esp + 0x139]
push 0
mov byte [esp + 0x250], 1
push ecx
mov byte [esp + 0x140], 0
call fcn.004553e0
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.00402950
mov byte [esp + 0x248], 2
cmp dword [esp + 0x14], 0
je 0x41909c
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x419106
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 0x4190c6
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.0041ab00
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 0x4190fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4193ae
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402950
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x254], 3
call fcn.00416740
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 0x419159
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.0041ac50
mov edi, eax
test edi, edi
jne 0x4191ff
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 0x419198
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 0x4191bf
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.0041ab00
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 0x4191f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x4193ae
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.004081c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0x4aec7c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 6
call fcn.00402570
push 0xa
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402570
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
call fcn.0041adb0
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 0x419312
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419284
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 0x4192ab
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 0x4192d2
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.0041ab00
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 0x419308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x4193ae
movzx edi, bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419328
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 0x41934f
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 0x419376
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.0041ab00
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 0x4193ac
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.0044e1ea
add esp, 0x238
ret