Function at 0x404a30
Capabilities:
Connect to http server
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fda8
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [esi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
test edx, edx
je 0x404e1c
cmp dword [esi + 0x30], 0x10
lea ecx, [esi + 0x1c]
jb 0x404a87
mov ecx, dword [ecx]
cmp byte [esi + 0x4c], 0
mov eax, 0x50
push 1
push 0
push 3
push 0
mov edi, 0x1bb
push 0
cmovne eax, edi
movzx eax, ax
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x64], edi
test edi, edi
je 0x404e3d
cmp dword [esi + 0x48], 0x10
lea eax, [esi + 0x34]
jb 0x404ac6
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push 0
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x404e5e
push 0x2f
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x54]
push str.Content_Type:_application_x_www_form_urlencoded
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.0040c3d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf0]
push dword [ebp - 0x58]
cmp dword [ebp - 0x40], 0x10
lea esi, [ebp - 0x54]
push eax
cmovae esi, dword [ebp - 0x54]
call fcn.00405240
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push dword [ebp - 0x58]
push eax
call fcn.00405240
cmp dword [eax + 0x14], 0x10
jb 0x404b51
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0x10]
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x70]
test eax, eax
sete byte [ebp - 0x59]
cmp edx, 0x10
jb 0x404b9b
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404b91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404be0
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp edx, 0x10
jb 0x404bf0
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404be6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404be6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
cmp byte [ebp - 0x59], 0
jne 0x404e86
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x404eb3
or dword [ebp - 0x1c], 0x100
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x404d27
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x404d27
inc eax
push eax
call fcn.0041e9e9
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x404d1a
mov eax, dword [ebp - 0x58]
inc eax
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x58]
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404d1a
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
push ebx
push edi
cmp ebx, eax
ja 0x404cef
cmp edx, 0x10
lea esi, [ebp - 0x34]
lea eax, [ecx + ebx]
cmovae esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x404cff
mov byte [ebp - 0x68], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x68]
push ebx
call fcn.0040e5c0
push edi
mov byte [ebp - 4], 2
call fcn.0041e640
mov ebx, dword [ebp - 0x60]
add esp, 4
cmp dword [ebp - 0x58], 0
jbe 0x404d27
jmp 0x404c54
push edi
mov byte [ebp - 4], 2
call fcn.0041e640
add esp, 4
cmp dword [ebp - 0x24], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
je 0x404ee0
call esi
push dword [ebp - 0x64]
call esi
mov esi, dword [ebp - 0x6c]
lea edx, [ebp - 0x34]
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 4
mov eax, esp
mov ecx, esi
mov dword [eax + 0x24], 0
call fcn.0040d860
mov edx, dword [ebp - 0x20]
add esp, 0x30
cmp edx, 0x10
jb 0x404d93
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404d89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dcb
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x404ddb
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404dd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404dd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_open_session.
lea ecx, [ebp - 0x90]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0x90]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_connect.
lea ecx, [ebp - 0x9c]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0x9c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Failed_to_open_request.
lea ecx, [ebp - 0xa8]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0xa8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
push str.Failed_to_open_request.
lea ecx, [ebp - 0xb4]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0xb4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
push str.Failed_to_receive_response.
lea ecx, [ebp - 0xc0]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0xc0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call esi
push dword [ebp - 0x64]
call esi
push str.Failed_to_read_response.
lea ecx, [ebp - 0xcc]
call fcn.00401670
push 0x429748
lea eax, [ebp - 0xcc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3