Function at 0x401e20
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4117f6
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x4170a0]
xor eax, esp
mov dword [esp + 0x6dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4170a0]
xor eax, esp
push eax
lea eax, [esp + 0x6f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x708]
mov ebp, dword [esp + 0x704]
xor ebx, ebx
push 0x206
mov esi, edx
lea edx, [esp + 0x5e]
push ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x64], bx
call fcn.004077e0
lea eax, [esp + 0x64]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401e94
mov ecx, dword [0x414178]
mov edx, dword [0x41417c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401eb5
lea edi, [esp + 0x58]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401ed0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401ef1
mov ecx, dword [str.an]
mov edx, dword [0x414184]
mov dword [eax], ecx
mov cx, word [0x414188]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x58]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401f20
mov edx, dword [str.Add_on_W4]
mov ecx, dword [0x414138]
mov dword [eax], edx
mov edx, dword [0x41413c]
mov dword [eax + 4], ecx
mov ecx, dword [0x414140]
mov dword [eax + 8], edx
mov edx, dword [0x414144]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp + 0x58]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401f60
mov ecx, dword [str.av]
mov edx, dword [0x414190]
mov dword [eax], ecx
mov cx, word [0x414194]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x58]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401f90
mov edx, dword [str.0.1.0.0]
mov ecx, dword [0x41414c]
mov dword [eax], edx
mov edx, dword [0x414150]
mov dword [eax + 4], ecx
mov ecx, dword [0x414154]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x58]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401fc6
mov edx, dword [str.is]
mov ecx, dword [0x41419c]
mov dword [eax], edx
mov dx, word [0x4141a0]
lea edi, [esp + 0x58]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401ff5
mov eax, dword [0x414218]
mov dword [edi], eax
lea eax, [esp + 0x58]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402010
mov ecx, dword [0x4141a4]
mov edx, dword [0x4141a8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, ebp
mov edx, ebp
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402031
lea edi, [esp + 0x58]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x402045
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x402070
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402070
mov ecx, dword [str.sm]
mov edx, dword [0x4141b0]
mov dword [eax], ecx
mov cx, word [0x4141b4]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4020a0
lea edi, [esp + 0x58]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4020b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x4020e0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4020e0
mov edx, dword [str.ia]
mov ecx, dword [0x4141bc]
mov dword [eax], edx
mov dx, word [0x4141c0]
lea edi, [esp + 0x58]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x402110
mov edx, dword [0x414218]
lea eax, [esp + 0x58]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x402130
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402130
mov ecx, dword [str.sa]
mov dword [eax], ecx
mov ecx, dword [0x4141c8]
mov dword [eax + 4], ecx
mov cx, word [0x4141cc]
lea edi, [esp + 0x58]
mov word [eax + 8], cx
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x402160
lea eax, [esp + 0x58]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402175
mov edx, dword [str.pn]
mov ecx, dword [0x4141d4]
mov dword [eax], edx
mov dx, word [0x4141d8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, dword [esp + 0x14]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4021a3
lea edi, [esp + 0x58]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4021c0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4021c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4021e3
mov ecx, dword [str.ms]
mov edx, dword [0x4141e0]
mov dword [eax], ecx
mov cx, word [0x4141e4]
lea edi, [esp + 0x58]
mov dword [eax + 4], edx
mov word [eax + 8], cx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x402212
mov ecx, 9
mov esi, 0x414220
rep movsd dword es:[edi], dword [esi]
push 0x206
lea edx, [esp + 0x4ee]
push ebx
push edx
movsw word es:[edi], word [esi]
mov word [esp + 0x4f4], bx
call fcn.004077e0
mov ecx, dword [0x419178]
add esp, 0xc
push 0x104
lea eax, [esp + 0x4ec]
push eax
push 0x3039
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x58]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402270
mov edx, dword [str.pt]
mov ecx, dword [0x4141ec]
mov dword [eax], edx
mov dx, word [0x4141f0]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x4e8]
mov esi, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022a1
lea edi, [esp + 0x58]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4022b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x100000
rep movsb byte es:[edi], byte [esi]
call fcn.0040681b
push 0x100000
mov esi, eax
push ebx
push esi
call fcn.004077e0
add esp, 0x10
push ebx
push ebx
push 0x100000
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402306
sub eax, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
push eax
push esi
lea esi, [esp + 0x40]
mov dword [esp + 0x704], ebx
call fcn.00404470
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x708], 1
call fcn.00402610
mov edi, 0x10
mov byte [esp + 0x6fc], 0
cmp dword [esp + 0x50], edi
jb 0x40236b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004069de
add esp, 4
cmp dword [esp + 0x34], edi
mov esi, dword [esp + 0x20]
jae 0x402379
lea esi, [esp + 0x20]
push 0x200000
call fcn.0040681b
push 0x100000
mov ebp, eax
push ebx
push ebp
call fcn.004077e0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4023a0
push 0x100000
push ebp
sub eax, edx
add eax, 1
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x206
lea edx, [esp + 0x2e6]
push ebx
push edx
mov word [esp + 0x2ec], bx
call fcn.004077e0
add esp, 0xc
call fcn.00401d30
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4023fa
push 0x419180
lea eax, [esp + 0x2e4]
push eax
jmp 0x402407
push str.http:__msn.live.cn_wlessentials_info.aspx
lea ecx, [esp + 0x2e4]
push ecx
call esi
push 0x4141f4
lea edx, [esp + 0x2e4]
push edx
call esi
push ebp
lea eax, [esp + 0x2e4]
push eax
call esi
push ebx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov bl, byte [esp + 0x14]
test bl, 0x20
jne 0x40250d
push 0x7e
lea eax, [esp + 0x266]
push 0
push eax
mov word [esp + 0x26c], 0
call fcn.004077e0
add esp, 0xc
test bl, 4
push 0
push 0
push 0
jne 0x402471
push 4
lea ecx, [esp + 0x270]
push ecx
jmp 0x40247b
push 0
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x40250d
push 0
push 0x84000100
lea eax, [esp + 0x40]
mov ecx, 8
mov esi, 0x4141f8
lea edi, [esp + 0x40]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2f0]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x4024e1
cmp dword [esp + 0x34], 0x10
jb 0x4024da
mov eax, dword [esp + 0x20]
push eax
call fcn.004069de
add esp, 4
mov eax, 1
jmp 0x402525
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
je 0x4024f5
push ebp
call fcn.004069de
add esp, 4
cmp dword [esp + 0x34], 0x10
jb 0x402509
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004069de
add esp, 4
xor eax, eax
jmp 0x402525
cmp dword [esp + 0x34], edi
jb 0x402520
mov edx, dword [esp + 0x20]
push edx
call fcn.004069de
add esp, 4
mov eax, 4
mov ecx, dword [esp + 0x6f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6dc]
xor ecx, esp
call fcn.004069e3
add esp, 0x6ec
ret