Function at 0x100065e6
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100125d8
call fcn.10011420
sub esp, 0x3b4
mov eax, dword [0x1001b0f8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3a4], esi
call fcn.100061bc
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3b8]
push eax
mov dword [ebp - 0x3b8], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x1000662f
push 0x69
pop eax
jmp 0x10006a36
mov ecx, dword [0x1001bb90]
xor eax, eax
cmp ecx, ebx
je 0x10006643
add ecx, 0x14
call fcn.10001628
push 0x1001bc84
push eax
lea eax, [ebp - 0x294]
push str._drev_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x1001b084]
add esp, 0x10
cmp dword [0x1001b098], 0x10
jae 0x10006672
mov ecx, 0x1001b084
cmp dword [0x1001b07c], 0x10
mov eax, dword [0x1001b068]
jae 0x10006685
mov eax, 0x1001b068
push edi
push ecx
push eax
push 0x1001bba4
lea eax, [ebp - 0x294]
push eax
push str.bcmpcnt
call fcn.1000b10e
add esp, 0x14
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x3c0]
push eax
push 0x32
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
xor eax, eax
lea edi, [ebp - 0x3a8]
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 0x3ac]
push eax
push 0x32
push ebx
mov dword [ebp - 0x3ac], 1
call dword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.10001049
test al, al
jne 0x10006799
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x39c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1001b770
push 0x80000001
mov dword [ebp - 0x39c], ebx
mov dword [ebp - 0x3b4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10006799
cmp dword [ebp - 0x39c], ebx
je 0x10006799
push 4
pop esi
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x3a8]
push eax
push ebx
mov edi, 0x1001b5d0
push edi
push dword [ebp - 0x39c]
mov dword [ebp - 0x3a8], esi
mov dword [ebp - 0x3a0], ebx
mov dword [ebp - 0x3b0], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea eax, [ebp - 0x3a0]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x39c]
mov dword [ebp - 0x3a0], 8
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x39c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3a4]
push ebx
push ebx
push ebx
push dword [ebp + 8]
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x3a0], edi
jne 0x100067be
push 0x65
pop eax
jmp 0x10006a35
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
mov edx, dword [0x1001bc54]
mov ecx, eax
shl eax, 6
shl ecx, 6
add eax, edx
add ecx, edx
cmp dword [eax + 0x18], 0x10
jb 0x100067e0
mov eax, dword [eax + 4]
jmp 0x100067e3
add eax, 4
movzx ecx, word [ecx + 0x38]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x39c], eax
jne 0x1000680b
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x66
jmp 0x100067b8
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
mov edx, dword [0x1001bc54]
mov eax, ecx
shl eax, 6
add eax, edx
cmp dword [eax + 0x3c], 2
jne 0x1000682a
mov eax, 0x803000
jmp 0x1000682c
xor eax, eax
shl ecx, 6
add ecx, edx
cmp dword [ecx + 0x34], 0x10
jb 0x1000683c
mov ecx, dword [ecx + 0x20]
jmp 0x1000683f
add ecx, 0x20
push ebx
or eax, 0x4200100
push eax
push ebx
push ebx
push str.HTTP_1.1
push ecx
push str.POST
push dword [ebp - 0x39c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
jne 0x10006882
push dword [ebp - 0x3a0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x39c]
call esi
push 0x67
jmp 0x100067b8
push edi
lea ecx, [ebp - 0x8c]
call fcn.100059e3
mov eax, dword [esi]
movzx eax, byte [eax + 0x2c]
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], ebx
call fcn.10003c12
push edi
mov ecx, esi
call fcn.100050ef
test al, al
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x10006a12
push edi
lea ecx, [ebp - 0x40]
call fcn.100059e3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10006550
test al, al
je 0x1000691c
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x40]
call fcn.10004755
push 0x10013780
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1000691c
push dword [ebp - 0x3a0]
call esi
push dword [ebp - 0x39c]
call esi
push edi
call esi
lea ecx, [ebp - 0x40]
call fcn.10005a1c
mov esi, 0x197
jmp 0x10006a28
lea ecx, [ebp - 0x40]
call fcn.100065c8
push ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
call fcn.10001653
mov ecx, dword [ebp - 0x3a4]
lea eax, [ebp - 0x5c]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.100052a9
push edi
call esi
cmp dword [0x1001bb90], ebx
je 0x100069ff
push 0x10013516
lea ecx, [ebp - 0x3c]
call fcn.10003996
test eax, eax
je 0x1000698b
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x10006974
lea eax, [ebp - 0x38]
push eax
push 0x1001bc84
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push ebx
call fcn.10002932
add esp, 0xc
mov eax, dword [0x1001bb90]
cmp eax, ebx
mov dword [0x1001bc48], ebx
je 0x100069ff
push 0x1001bc84
lea ecx, [eax + 0x14]
call fcn.10001628
push eax
lea eax, [ebp - 0x398]
push str._drev_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x1001b084]
add esp, 0x10
cmp dword [0x1001b098], 0x10
jae 0x100069d1
mov ecx, 0x1001b084
cmp dword [0x1001b07c], 0x10
mov eax, dword [0x1001b068]
jae 0x100069e4
mov eax, 0x1001b068
push ecx
push eax
push 0x1001bba4
lea eax, [ebp - 0x398]
push eax
push str.acmpcnt
call fcn.1000b10e
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.100016a3
lea ecx, [ebp - 0x40]
call fcn.10005a1c
push dword [ebp - 0x3a0]
call esi
push dword [ebp - 0x39c]
call esi
push edi
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x8c]
call fcn.10005a1c
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100112e6
leave
ret 4