Function at 0x434866
Capabilities:
Connect to http server
Create http request
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 0x47135a
mov eax, dword fs:[0]
push eax
mov eax, 0x2578
call fcn.004493a0
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dl, byte [0x49d082]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24d4], eax
mov eax, dword [0x4f0d5c]
inc eax
mov dword [ebp - 0x24e0], edi
mov dword [ebp - 0x24dc], eax
mov dword [0x4f0d5c], eax
test dl, dl
je 0x4348e6
cmp dword [esi + 0x14], 0x10
jb 0x4348d1
mov ecx, dword [esi]
jmp 0x4348d3
mov ecx, esi
push ecx
push eax
movzx eax, dl
push str.httpGetString_requestId_d_URL_s
push eax
call fcn.00410896
add esp, 0x10
lea ecx, [ebp - 0x24c4]
call fcn.0042b27e
push 2
lea ecx, [ebp - 0x24c4]
call fcn.0042b8b0
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040eabd
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434912
mov eax, dword [eax]
push edi
push eax
lea ecx, [ebp - 0x24c4]
call fcn.0042b18d
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00408c9a
cmp dword [ebp - 0x74], 3
push edi
push edi
push edi
push edi
push 0x47d9e0
sete byte [ebp - 0x24c5]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x24e4], esi
mov dword [ebp - 4], edi
test esi, esi
jne 0x43495d
push str.httpGetString___InternetOpen_ERROR
call fcn.0041566a
push edi
push edi
push 3
lea eax, [ebp - 0x217e]
push eax
lea eax, [ebp - 0x2280]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x2482]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [ebp - 0x24e8], ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x434997
push str.httpGetString___InternetConnect_ERROR
jmp 0x434958
lea eax, [ebp - 0x207c]
push eax
lea ecx, [ebp - 0x24cc]
call fcn.0040dae5
lea eax, [ebp - 0x107a]
mov byte [ebp - 4], 2
push eax
call fcn.0040e167
pop ecx
push eax
lea eax, [ebp - 0x107a]
push eax
lea ecx, [ebp - 0x24cc]
call fcn.0040dc2c
push edi
xor eax, eax
mov ecx, 0x800000
cmp byte [ebp - 0x24c5], al
cmovne eax, ecx
push eax
push edi
push 0x473ad4
push str.HTTP_1.0
push dword [ebp - 0x24cc]
push 0x47e018
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x24ec], edi
mov byte [ebp - 4], 3
test edi, edi
jne 0x434a16
push str.httpGetString___HttpOpenRequest_ERROR
jmp 0x434958
push str.httpGetString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x28]
call fcn.00403984
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push eax
call fcn.0041564b
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c45
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push 1
push 2
lea ecx, [ebp - 0x2584]
mov byte [ebp - 4], 5
call fcn.0042e177
mov byte [ebp - 4], 6
push 0
push 0
lea eax, [ebp - 0x24d0]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x434a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x434b1e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434a6e
mov eax, dword [ebp - 0x24d0]
test eax, eax
je 0x434b28
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x434abf
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004309b1
push str.InternetReadFile_failed
lea ecx, [ebp - 0x40]
call fcn.00403984
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x24d8]
push eax
push dword [ebp - 0x24d0]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
push eax
call fcn.0041564b
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00408c45
push 0
push dword [ebp - 0x24d8]
lea ecx, [ebp - 0x2584]
push dword [ebp - 0x1c]
call fcn.00415dfa
jmp 0x434a6e
push str.httpGetString___InternetQueryDataAvailable_ERROR
jmp 0x434958
cmp byte [0x49d082], 0
je 0x434b78
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2584]
call fcn.00436d5d
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x434b4c
mov eax, dword [eax]
push eax
push dword [ebp - 0x24dc]
movzx eax, byte [0x49d082]
push str.httpGetString_requestId_d_returning___s_
push eax
call fcn.00410896
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00408c45
push dword [ebp - 0x24d4]
lea ecx, [ebp - 0x2584]
call fcn.00436d5d
lea ecx, [ebp - 0x2584]
call fcn.0042f4b0
lea ecx, [ebp - 0x1c]
call fcn.00413eb0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov ecx, dword [ebp - 0x24cc]
add ecx, 0xfffffff0
call fcn.0040e07f
push ebx
call edi
push esi
call edi
mov eax, dword [ebp - 0x24d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret