Function at 0x4022a0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x407dfd
push eax
mov eax, 0x8ebc
mov dword fs:[0], esp
call fcn.004076e0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
mov esi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x8ed4], esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x8ee8]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x8ed4], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], 4
mov dword [esp + 0x38], eax
jne 0x402309
mov dword [esp + 0x38], fcn.00405910
mov ecx, dword [0x40bbac]
lea eax, [esp + 0x20]
push str.Shield__MODReg__AUOTREG_CONNECTING
push eax
call fcn.00401cc2
lea ecx, [esp + 0x10]
push str.Shield__MODReg__AUOTREG_CONNECTING_ERROR
push ecx
mov ecx, dword [0x40bbac]
mov byte [esp + 0x8edc], 3
call fcn.00401cc2
mov ecx, dword [0x40bbac]
lea edx, [esp + 0x28]
push str.Shield__MODReg__AUOTREG_CONNECTING_REQUEST
push edx
mov byte [esp + 0x8edc], 4
call fcn.00401cc2
mov ecx, dword [0x40bbac]
lea eax, [esp + 0x14]
push str.Shield__MODReg__AUOTREG_CONNECTING_REQUEST_ERROR
push eax
mov byte [esp + 0x8edc], 5
call fcn.00401cc2
lea ecx, [esp + 0x1c]
push str.Shield__MODReg__AUOTREG_GETDATA
push ecx
mov ecx, dword [0x40bbac]
mov byte [esp + 0x8edc], 6
call fcn.00401cc2
mov ebp, dword [esp + 0x8ef0]
mov byte [esp + 0x8ed4], 7
cmp ebp, ebx
je 0x4023f7
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x790]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x3f8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x3f8]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x58]
push ecx
call fcn.0040171a
add esp, 0x10
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [esp + 0x1c]
call fcn.00407494
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
jne 0x40249a
cmp ebp, ebx
je 0x40248a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x50]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3ec]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8ee0]
call fcn.004074d0
lea edx, [esp + 0x3ec]
push edx
call fcn.0040171a
add esp, 4
jmp 0x402865
push ebx
push ebx
call dword [esp + 0x40]
add esp, 8
xor esi, esi
jmp 0x402a07
mov eax, dword [esp + 0x8ee0]
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x34], esi
jne 0x402549
cmp ebp, ebx
je 0x402537
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x50]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3ec]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8ee0]
call fcn.004074d0
lea edx, [esp + 0x3ec]
push edx
call fcn.0040171a
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402865
push ebx
push ebx
call dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x30], ebx
jmp 0x4029f1
mov ecx, dword [esp + 0x8ee4]
push ebx
push 0x4000000
push ebx
push ebx
push str.HTTP_1.1
push ecx
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
cmp ebp, ebx
jne 0x402609
cmp dword [esp + 0x8ef0], ebx
je 0x4025f7
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x50]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3ec]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8ee0]
call fcn.004074d0
lea edx, [esp + 0x3ec]
push edx
call fcn.0040171a
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x402863
push ebx
push ebx
call dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x30], ebx
jmp 0x4029de
cmp dword [esp + 0x8ef0], ebx
je 0x402664
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x790]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x58]
lea edi, [esp + 0x3f8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3f8]
push ecx
call fcn.0040171a
add esp, 0x10
mov edi, dword [esp + 0x38]
push 0x12c
push 1
call edi
mov edx, dword [esp + 0x2c]
add esp, 8
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov esi, dword [edx - 8]
push ecx
push eax
push esi
push edx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402710
lea eax, [esp + 0x44]
push ebx
lea ecx, [esp + 0x4c]
push eax
push ecx
push 0x20000013
push ebp
mov dword [esp + 0x58], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4027de
mov eax, dword [esp + 0x48]
cmp eax, 0x191
je 0x4026d1
cmp eax, 0x197
jne 0x40290d
push ebx
push 7
push 0x2eee
push ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40290d
mov edx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTopMost]
mov ecx, dword [esp + 0x8eec]
push 3
push ebx
push ebx
push ebx
push ebx
push edx
call sub.MFC42.DLL_CWnd::SetWindowPos
jmp 0x402609
cmp dword [esp + 0x8ef0], ebx
je 0x402793
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
push str.ErrorMsg
push ecx
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3ec]
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x8edc]
push edx
call fcn.004074d0
lea eax, [esp + 0x3ec]
push eax
call fcn.0040171a
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
jmp 0x402860
mov ecx, dword [0x40bbac]
lea eax, [esp + 0x24]
push str.Shield__MODReg__AUOTREG_NET_ERROR
push eax
call fcn.00401cc2
mov ecx, dword [esp + 0x8edc]
push eax
mov byte [esp + 0x8ed8], 8
call fcn.004074d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x8ed4], 7
call fcn.0040747c
push ebx
push ebx
call edi
add esp, 8
mov dword [esp + 0x30], ebx
jmp 0x4029de
cmp dword [esp + 0x8ef0], ebx
je 0x4028fc
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x50]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3ec]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x8ee0]
call fcn.004074d0
lea edx, [esp + 0x3ec]
push edx
call fcn.0040171a
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x34]
push ecx
call esi
push ebp
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8ed4], 6
call fcn.0040747c
lea ecx, [esp + 0x14]
mov byte [esp + 0x8ed4], 5
call fcn.0040747c
lea ecx, [esp + 0x28]
mov byte [esp + 0x8ed4], 4
call fcn.0040747c
lea ecx, [esp + 0x10]
mov byte [esp + 0x8ed4], 3
call fcn.0040747c
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ed4], 2
call fcn.0040747c
lea ecx, [esp + 0x18]
mov byte [esp + 0x8ed4], 1
call fcn.0040747c
lea ecx, [esp + 0x8ee0]
mov byte [esp + 0x8ed4], bl
call fcn.0040747c
lea ecx, [esp + 0x8ee4]
mov dword [esp + 0x8ed4], 0xffffffff
call fcn.0040747c
xor eax, eax
jmp 0x402a99
push ebx
push 2
call edi
add esp, 8
mov dword [esp + 0x30], ebx
jmp 0x4029de
push 0xc8
push 3
call edi
mov eax, dword [esp + 0x8ef8]
add esp, 8
cmp eax, ebx
je 0x402976
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xb30]
push str.ErrorMsg
push eax
call fcn.00401725
mov ecx, 0xe8
mov esi, eax
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe8
lea esi, [esp + 0x58]
lea edi, [esp + 0x798]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x798]
push ecx
call fcn.0040171a
add esp, 0x10
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x2000
xor eax, eax
lea edi, [esp + 0xecc]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0xecc]
push edx
push 0x7fff
push eax
push ebp
mov dword [esp + 0x4c], ebx
call esi
test eax, eax
mov eax, dword [esp + 0x3c]
je 0x4029b4
mov byte [esp + eax + 0xecc], bl
cmp eax, 0x7fff
je 0x40298c
mov ecx, dword [esp + 0x24]
lea esi, [ecx + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
cmp dword [esp + 0x3c], ebx
jbe 0x4029de
lea edx, [esp + 0xecc]
mov ecx, esi
push edx
call fcn.00407494
cmp ebp, ebx
je 0x4029e9
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4029fc
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8ed4], 6
call fcn.0040747c
lea ecx, [esp + 0x14]
mov byte [esp + 0x8ed4], 5
call fcn.0040747c
lea ecx, [esp + 0x28]
mov byte [esp + 0x8ed4], 4
call fcn.0040747c
lea ecx, [esp + 0x10]
mov byte [esp + 0x8ed4], 3
call fcn.0040747c
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ed4], 2
call fcn.0040747c
lea ecx, [esp + 0x18]
mov byte [esp + 0x8ed4], 1
call fcn.0040747c
lea ecx, [esp + 0x8ee0]
mov byte [esp + 0x8ed4], bl
call fcn.0040747c
lea ecx, [esp + 0x8ee4]
mov dword [esp + 0x8ed4], 0xffffffff
call fcn.0040747c
mov eax, esi
mov ecx, dword [esp + 0x8ecc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8ec8
ret 0x18