Function at 0x402290
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], esp
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov edi, 0x2f00
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], 1
call sub.MFC42.DLL_CString::Empty
push esi
push esi
push esi
mov ebx, 8
push esi
push str.HttpApp_1.0
mov byte [ebp - 4], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
cmp ecx, esi
mov dword [ebp - 0x14], ecx
jne 0x40231b
lea eax, [ebp - 0x3c]
push 0x40cf10
push eax
mov dword [ebp - 0x3c], 4
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0x14]
xor edx, edx
cmp eax, 0x1bb
push 0
setne dl
dec edx
push 0
and edx, 0x800000
push 3
mov esi, edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x402371
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edx, [ebp - 0x2c]
push 0x40cf10
push edx
mov dword [ebp - 0x2c], 5
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push 0
push esi
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x1c], esi
jne 0x4023b5
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
lea edx, [ebp - 0x24]
push 0x40cf10
push edx
mov dword [ebp - 0x24], ebx
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp edi, 0x2f00
jne 0x402410
mov eax, dword [ebp + 0x28]
push 0
lea ecx, [ebp + 0x28]
mov edi, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
push edi
push eax
push 0
push 0
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [ebp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x4023f8
xor eax, eax
jmp 0x4023fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 7
push eax
push esi
push 0
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov edi, eax
jmp 0x4023bb
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x34]
push esi
call fcn.00402550
test eax, eax
jne 0x402436
lea edx, [ebp - 0x44]
push 0x40cf10
push edx
mov dword [ebp - 0x44], 6
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x28], 0xc8
je 0x402454
lea eax, [ebp - 0x30]
push 0x40cf10
push eax
mov dword [ebp - 0x30], 7
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x144]
push ecx
push 0xff
push edx
push esi
call edi
test eax, eax
je 0x4024a1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4024a1
mov ecx, dword [ebp + 8]
mov byte [ebp + eax - 0x144], 0
lea eax, [ebp - 0x144]
push eax
call fcn.004088fe
jmp 0x40245a
test esi, esi
mov dword [ebp - 4], 7
je 0x4024b7
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4024bd
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4024c7
push eax
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4024d1
push eax
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x28]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24