Function at 0x434971
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 0x4710a1
mov eax, dword fs:[0]
push eax
mov eax, 0x2578
call fcn.004491a0
mov eax, dword [0x49e5f4]
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 [0x49e0ae]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24d4], eax
mov eax, dword [0x4f1d78]
inc eax
mov dword [ebp - 0x24e0], edi
mov dword [ebp - 0x24dc], eax
mov dword [0x4f1d78], eax
test dl, dl
je 0x4349f1
cmp dword [esi + 0x14], 0x10
jb 0x4349dc
mov ecx, dword [esi]
jmp 0x4349de
mov ecx, esi
push ecx
push eax
movzx eax, dl
push str.httpGetString_requestId_d_URL_s
push eax
call fcn.00410bbc
add esp, 0x10
lea ecx, [ebp - 0x24c4]
call fcn.0042b39b
push 2
lea ecx, [ebp - 0x24c4]
call fcn.0042b9cd
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040ee00
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x434a1d
mov eax, dword [eax]
push edi
push eax
lea ecx, [ebp - 0x24c4]
call fcn.0042b2aa
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00409095
cmp dword [ebp - 0x74], 3
push edi
push edi
push edi
push edi
push 0x47dac0
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 0x434a68
push str.httpGetString___InternetOpen_ERROR
call fcn.004158d6
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 0x434aa2
push str.httpGetString___InternetConnect_ERROR
jmp 0x434a63
lea eax, [ebp - 0x207c]
push eax
lea ecx, [ebp - 0x24cc]
call fcn.0040de74
lea eax, [ebp - 0x107a]
mov byte [ebp - 4], 2
push eax
call fcn.0040596e
pop ecx
push eax
lea eax, [ebp - 0x107a]
push eax
lea ecx, [ebp - 0x24cc]
call fcn.0040dfbb
push edi
xor eax, eax
mov ecx, 0x800000
cmp byte [ebp - 0x24c5], al
cmovne eax, ecx
push eax
push edi
push 0x473ba0
push str.HTTP_1.0
push dword [ebp - 0x24cc]
push 0x47e128
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 0x434b21
push str.httpGetString___HttpOpenRequest_ERROR
jmp 0x434a63
push str.httpGetString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x28]
call fcn.00403e21
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.004158b7
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00409040
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.0042e2a9
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 0x434baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x434c29
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434b79
mov eax, dword [ebp - 0x24d0]
test eax, eax
je 0x434c33
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x434bca
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00430b34
push str.InternetReadFile_failed
lea ecx, [ebp - 0x40]
call fcn.00403e21
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.004158b7
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00409040
push 0
push dword [ebp - 0x24d8]
lea ecx, [ebp - 0x2584]
push dword [ebp - 0x1c]
call fcn.00416066
jmp 0x434b79
push str.httpGetString___InternetQueryDataAvailable_ERROR
jmp 0x434a63
cmp byte [0x49e0ae], 0
je 0x434c83
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2584]
call fcn.00436c40
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x434c57
mov eax, dword [eax]
push eax
push dword [ebp - 0x24dc]
movzx eax, byte [0x49e0ae]
push str.httpGetString_requestId_d_returning___s_
push eax
call fcn.00410bbc
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00409040
push dword [ebp - 0x24d4]
lea ecx, [ebp - 0x2584]
call fcn.00436c40
lea ecx, [ebp - 0x2584]
call fcn.0042f5de
lea ecx, [ebp - 0x1c]
call fcn.0041414d
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov ecx, dword [ebp - 0x24cc]
add ecx, 0xfffffff0
call fcn.0040e40e
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.00449031
mov esp, ebp
pop ebp
ret