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

Disassembly:
push 0xffffffffffffffff
push 0x48cb44
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.00456ba0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041e230
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.00403280
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24c], 0
call fcn.0041ee50
push 0x103
lea ecx, [esp + 0x139]
push 0
mov byte [esp + 0x250], 1
push ecx
mov byte [esp + 0x140], 0
call fcn.00456ba0
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.00403280
mov byte [esp + 0x248], 2
cmp dword [esp + 0x14], 0
je 0x41d11c
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41d186
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 0x41d146
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.0041efa0
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 0x41d17c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41d42e
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00403280
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x254], 3
call fcn.0041ed90
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 0x41d1d9
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.0041f0f0
mov edi, eax
test edi, edi
jne 0x41d27f
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 0x41d218
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 0x41d23f
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.0041efa0
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 0x41d275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41d42e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00405d50
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0x498ac8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 6
call fcn.00402c40
push 0xa
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402c40
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
call fcn.0041f290
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 0x41d392
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d304
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 0x41d32b
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 0x41d352
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.0041efa0
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 0x41d388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x41d42e
movzx edi, bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d3a8
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 0x41d3cf
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 0x41d3f6
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.0041efa0
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 0x41d42c
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.0044fdb2
add esp, 0x238
ret