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

Disassembly:
push 0xffffffffffffffff
push 0x411436
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x4170a4]
xor eax, esp
mov dword [esp + 0x6e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4170a4]
xor eax, esp
push eax
lea eax, [esp + 0x700]
mov dword fs:[0], eax
mov eax, dword [esp + 0x71c]
mov esi, dword [esp + 0x710]
mov ebp, dword [esp + 0x714]
mov ebx, dword [esp + 0x718]
push 0x206
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x724]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x728]
lea edx, [esp + 0x6a]
push 0
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x70], 0
call fcn.00409080
lea eax, [esp + 0x70]
add esp, 0xc
add eax, 0xfffffffe
jmp 0x4020a0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4020a0
mov ecx, dword [0x4141bc]
mov edx, dword [0x4141c0]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020c1
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4020d5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4020f6
mov ecx, dword [str.an]
mov edx, dword [0x4141c8]
mov dword [eax], ecx
mov cx, word [0x4141cc]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [str.V31_version]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402125
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402140
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402163
mov edx, dword [str.av]
mov ecx, dword [0x4141d4]
mov dword [eax], edx
mov dx, word [0x4141d8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x64]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402192
mov ecx, dword [str.V3.1.0.508]
mov edx, dword [0x414118]
mov dword [eax], ecx
mov ecx, dword [0x41411c]
mov dword [eax + 4], edx
mov edx, dword [0x414120]
mov dword [eax + 8], ecx
mov ecx, dword [0x414124]
mov dword [eax + 0xc], edx
mov dx, word [0x414128]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 0x64]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4021e0
mov ecx, dword [str.is]
mov edx, dword [0x4141e0]
mov dword [eax], ecx
mov cx, word [0x4141e4]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, ebp
mov edx, ebp
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402210
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402224
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 + 0x64]
add eax, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
xor ebp, ebp
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402250
mov edx, dword [0x4141e8]
mov ecx, dword [0x4141ec]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402271
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402285
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x4022b0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4022b0
mov edx, dword [str.sm]
mov ecx, dword [0x4141f4]
mov dword [eax], edx
mov dx, word [0x4141f8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, dword [esp + 0x20]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4022e0
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4022f4
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x402320
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402320
mov ecx, dword [str.ia]
mov edx, dword [0x414200]
mov dword [eax], ecx
mov cx, word [0x414204]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [esp + 0x24]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402350
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402364
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x402390
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402390
mov edx, dword [str.sa]
mov ecx, dword [0x41420c]
mov dword [eax], edx
mov dx, word [0x414210]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4023c0
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4023d4
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x402400
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402400
mov ecx, dword [str.pn]
mov edx, dword [0x414218]
mov dword [eax], ecx
mov cx, word [0x41421c]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [esp + 0x1c]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402430
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402444
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 + 0x64]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x402470
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402470
mov edx, dword [str.ms]
mov ecx, dword [0x414224]
mov dword [eax], edx
mov dx, word [0x414228]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, dword [esp + 0x14]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4024a0
lea edi, [esp + 0x64]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4024b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x206
lea eax, [esp + 0x4fa]
and ecx, 3
push ebp
push eax
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x500], bp
call fcn.00409080
mov edx, dword [0x41912c]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4f8]
push ecx
push 0x3039
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x64]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x402514
mov ecx, dword [str.pt]
mov edx, dword [0x414230]
mov dword [eax], ecx
mov cx, word [0x414234]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x4f4]
mov esi, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402545
lea edi, [esp + 0x64]
sub eax, esi
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402560
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.004064a8
push 0x100000
mov esi, eax
push ebp
push esi
call fcn.00409080
add esp, 0x10
push ebp
push ebp
push 0x100000
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x78]
push edx
push ebp
push ebp
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 0x4025b1
sub eax, ecx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], dl
push eax
push esi
lea esi, [esp + 0x4c]
mov dword [esp + 0x710], ebp
call fcn.00404590
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x714], 1
call fcn.00402950
mov edi, 0x10
mov byte [esp + 0x708], 0
cmp dword [esp + 0x5c], edi
jb 0x402616
mov eax, dword [esp + 0x48]
push eax
call fcn.0040666b
add esp, 4
cmp dword [esp + 0x40], edi
mov esi, dword [esp + 0x2c]
jae 0x402624
lea esi, [esp + 0x2c]
push 0x200000
call fcn.004064a8
push 0x100000
mov ebp, eax
push 0
push ebp
call fcn.00409080
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402645
push 0x100000
push ebp
sub eax, edx
add eax, 1
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x206
lea ecx, [esp + 0x2f2]
push 0
push ecx
mov word [esp + 0x2f8], 0
call fcn.00409080
add esp, 0xc
call fcn.00401e70
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4026a4
push 0x419130
lea edx, [esp + 0x2f0]
push edx
jmp 0x4026b1
push str.http:__msn.live.cn_wlessentials_info.aspx
lea eax, [esp + 0x2f0]
push eax
call esi
push 0x414238
lea ecx, [esp + 0x2f0]
push ecx
call esi
push ebp
lea edx, [esp + 0x2f0]
push edx
call esi
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov bl, byte [esp + 0x14]
test bl, 0x20
jne 0x4027b8
push 0x7e
lea edx, [esp + 0x272]
push 0
push edx
mov word [esp + 0x278], 0
call fcn.00409080
add esp, 0xc
test bl, 4
push 0
push 0
push 0
jne 0x40271c
push 4
lea eax, [esp + 0x27c]
push eax
jmp 0x402726
push 0
lea ecx, [esp + 0x27c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x4027b8
push 0
push 0x84000100
lea edx, [esp + 0x4c]
mov ecx, 8
mov esi, 0x41423c
lea edi, [esp + 0x4c]
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x2fc]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x40278c
cmp dword [esp + 0x40], 0x10
jb 0x402785
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040666b
add esp, 4
mov eax, 1
jmp 0x4027d0
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
je 0x4027a0
push ebp
call fcn.0040666b
add esp, 4
cmp dword [esp + 0x40], 0x10
jb 0x4027b4
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040666b
add esp, 4
xor eax, eax
jmp 0x4027d0
cmp dword [esp + 0x40], edi
jb 0x4027cb
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040666b
add esp, 4
mov eax, 4
mov ecx, dword [esp + 0x700]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6e8]
xor ecx, esp
call fcn.00406670
add esp, 0x6f8
ret