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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ca7e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0041e000
mov dword [esp + 0x148], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jge 0x41d7e9
lea eax, [ecx - 0x10]
mov dword [esp + 0x148], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d7df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41da9c
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041ee50
mov byte [esp + 0x148], 1
cmp dword [esp + 0x1c], 0
je 0x41d813
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41d846
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x14c], 0
call fcn.0041efa0
mov dword [esp + 0x148], 0xffffffff
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
jmp 0x41d7d3
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x18]
call fcn.0041f0f0
mov esi, eax
test esi, esi
jne 0x41d8a0
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x14c], al
call fcn.0041efa0
mov dword [esp + 0x148], 0xffffffff
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 0x41d896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41da9c
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x41d8c2
push 0
lea ecx, [esp + 0x18]
call fcn.004030c0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041e160
push 0x103
lea edx, [esp + 0x31]
push 0
mov byte [esp + 0x150], 2
push edx
mov byte [esp + 0x38], 0
call fcn.00456ba0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403280
push 0x498ac8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 3
call fcn.00402d30
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402c40
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.0041f290
push esi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x41d9e7
mov byte [esp + 0x148], 2
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 0x41d978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d9a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x14c], 0
call fcn.0041efa0
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d9dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x41da9c
mov esi, dword [esp + 0x24]
test esi, esi
je 0x41da0a
push 0
lea ecx, [esp + 0x1c]
call fcn.00403110
mov edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x41da00
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
movzx esi, bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x14c], 0
call fcn.0041efa0
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41da9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret 4