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

Disassembly:
push 0xffffffffffffffff
push 0x48cda4
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ada68]
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.00456da0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041e4a0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.004032c0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24c], 0
call fcn.0041f0c0
push 0x103
lea ecx, [esp + 0x139]
push 0
mov byte [esp + 0x250], 1
push ecx
mov byte [esp + 0x140], 0
call fcn.00456da0
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.004032c0
mov byte [esp + 0x248], 2
cmp dword [esp + 0x14], 0
je 0x41d38c
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41d3f6
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 0x41d3b6
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.0041f210
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 0x41d3ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41d69e
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.004032c0
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x254], 3
call fcn.0041f000
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 0x41d449
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.0041f360
mov edi, eax
test edi, edi
jne 0x41d4ef
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 0x41d488
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 0x41d4af
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.0041f210
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 0x41d4e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41d69e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00405d90
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0x498ad0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 6
call fcn.00402c80
push 0xa
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402c80
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
call fcn.0041f500
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 0x41d602
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d574
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 0x41d59b
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 0x41d5c2
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.0041f210
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 0x41d5f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x41d69e
movzx edi, bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d618
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 0x41d63f
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 0x41d666
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.0041f210
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 0x41d69c
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.0044ffb2
add esp, 0x238
ret