Function at 0x46bea4
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
add esp, 0xfffff7a4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov ebx, eax
lea eax, [ebp - 0x850]
mov edx, dword [0x412450]
call fcn.00403da0
xor eax, eax
push ebp
push 0x46c3d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2c], 1
lea eax, [ebp - 0x850]
call fcn.0041320c
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x50]
call fcn.004039d0
push eax
call sub.wininet.dll_InternetOpenA
mov edi, eax
mov byte [ebx + 8], 0
test edi, edi
je 0x46c36d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x40]
lea edx, [ebx + 0x88]
call fcn.00412758
cmp dword [ebp - 0x24], 0
je 0x46bf76
mov dword [ebp - 0x834], 3
mov eax, dword [ebp - 0x24]
call fcn.004039d0
mov dword [ebp - 0x830], eax
xor eax, eax
mov dword [ebp - 0x82c], eax
push 0xc
lea eax, [ebp - 0x834]
push eax
push 0x26
push edi
call sub.wininet.dll_InternetSetOptionA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x34]
lea edx, [ebx + 0x64]
call fcn.00412758
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0x70]
call fcn.00412868
mov dword [ebp - 8], eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x4c]
lea edx, [ebx + 0x7c]
call fcn.00412868
mov esi, eax
cmp dword [ebp - 8], 0
jbe 0x46bff1
push 0x46c3f4
lea edx, [ebp - 0x854]
mov eax, dword [ebp - 8]
call fcn.00407b04
push dword [ebp - 0x854]
push 0x46c40c
lea edx, [ebp - 0x858]
mov eax, dword [ebp - 8]
add eax, esi
call fcn.00407b04
push dword [ebp - 0x858]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004038cc
jmp 0x46bff9
lea eax, [ebp - 0x14]
call fcn.004035c8
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x54], 1
jne 0x46c147
mov edx, dword [ebp - 0xc]
mov eax, 0x46c418
call fcn.00403af4
test eax, eax
jle 0x46c029
mov dword [ebp - 0x18], 0x1bb
mov dword [ebp - 0x1c], 0x800000
jmp 0x46c035
mov dword [ebp - 0x18], 0x50
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, 0x46c428
call fcn.00403af4
mov esi, eax
cmp esi, 0xffffffff
je 0x46c059
lea ecx, [esi + 1]
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.00403a50
mov edx, dword [ebp - 0xc]
mov eax, 0x46c434
call fcn.00403af4
mov esi, eax
cmp esi, 0xffffffff
jne 0x46c082
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00403660
lea eax, [ebp - 0x28]
call fcn.004035c8
jmp 0x46c0af
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00403a10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040380c
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0xc]
call fcn.00403a10
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004039d0
push eax
push edi
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 0x1c]
or eax, 0x400000
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.004039d0
push eax
push 0x46c438
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
lea eax, [ebp - 0x24]
mov edx, 0x46c448
call fcn.00403660
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0xac]
call fcn.00412758
mov eax, dword [ebp - 0x28]
call fcn.0040380c
push eax
mov eax, dword [ebp - 0x28]
call fcn.004039d0
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040380c
push eax
mov eax, dword [ebp - 0x24]
call fcn.004039d0
push eax
push esi
call sub.wininet.dll_HttpSendRequestA
jmp 0x46c16a
push 0
push 0x84040000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.004039d0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039d0
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
je 0x46c34e
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x18], 0x197
jne 0x46c266
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x44]
lea edx, [ebx + 0x94]
call fcn.00412758
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x48]
lea edx, [ebx + 0xa0]
call fcn.00412758
cmp dword [ebp - 0x24], 0
je 0x46c266
cmp dword [ebp - 0x28], 0
je 0x46c266
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x828]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 8], 0
jne 0x46c1e6
push 0
push 0
push 0xffffffffffffffff
push 0x46c480
push dword [ebp - 0x24]
push 0x46c4a4
push dword [ebp - 0x28]
lea eax, [ebp - 0x85c]
mov edx, 3
call fcn.004038cc
mov eax, dword [ebp - 0x85c]
lea edx, [ebp - 0x858]
call fcn.0042f040
push dword [ebp - 0x858]
push 0x46c4b0
lea eax, [ebp - 0x854]
mov edx, 3
call fcn.004038cc
mov eax, dword [ebp - 0x854]
call fcn.004039d0
push eax
push esi
call sub.wininet.dll_HttpSendRequestA
lea eax, [ebp - 0x828]
xor ecx, ecx
mov edx, 0x800
call fcn.00402884
xor eax, eax
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x38]
lea edx, [ebx + 0x58]
call fcn.00412758
cmp dword [ebp - 0x10], 0
jne 0x46c29f
call fcn.004086b4
mov dword [ebx + 0x30], eax
jmp 0x46c2aa
mov eax, dword [ebp - 0x10]
call fcn.00408688
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x828]
xor ecx, ecx
mov edx, 0x800
call fcn.00402884
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x828]
push eax
push esi
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x828]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 8]
call fcn.004084b8
mov eax, dword [ebp - 8]
add dword [ebx + 0x28], eax
cmp byte [ebx + 0x3c], 0
je 0x46c2f8
mov eax, ebx
call fcn.0046c4b4
jmp 0x46c306
push ebx
push fcn.0046c4b4
mov eax, dword [ebx + 4]
call fcn.00408364
cmp dword [ebp - 8], 0
je 0x46c312
cmp byte [ebx + 8], 0
je 0x46c2aa
cmp dword [ebp - 0x10], 0
jne 0x46c324
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.004084a0
jmp 0x46c331
mov eax, dword [ebx + 0x30]
call fcn.00406688
xor eax, eax
mov dword [ebx + 0x30], eax
cmp byte [ebx + 0x3c], 0
je 0x46c340
mov eax, ebx
call fcn.0046c4d0
jmp 0x46c34e
push ebx
push fcn.0046c4d0
mov eax, dword [ebx + 4]
call fcn.00408364
test esi, esi
je 0x46c358
push esi
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 4], 0
je 0x46c367
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
xor esi, esi
mov byte [ebx + 0x2c], 0
cmp byte [ebx + 0x3c], 0
je 0x46c382
mov eax, ebx
call fcn.0046c4c4
jmp 0x46c390
push ebx
push fcn.0046c4c4
mov eax, dword [ebx + 4]
call fcn.00408364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c3e0
lea eax, [ebp - 0x85c]
mov edx, 3
call fcn.004035ec
lea eax, [ebp - 0x850]
mov edx, dword [0x412450]
call fcn.00403e6c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004035ec
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004035ec
ret