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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x95
push 0
push 0
dec ecx
jne 0x4679a5
xchg dword [ebp - 4], ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.00404eb0
mov eax, dword [ebp - 0x2c]
call fcn.00404eb0
mov eax, dword [ebp + 0x10]
call fcn.00404eb0
mov eax, dword [ebp + 0xc]
call fcn.00404eb0
mov eax, dword [ebp + 8]
call fcn.00404eb0
xor eax, eax
push ebp
push 0x467e9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x28]
call fcn.00467288
mov eax, dword [ebp - 0x2c]
call fcn.00467148
fstp qword [ebp - 0x78]
wait
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4181e0]
call fcn.0041c3b8
mov esi, eax
push 0x467eb8
push dword [ebp - 0x60]
push 0x467ec8
lea eax, [ebp - 0x488]
mov edx, 3
call fcn.00404d80
mov edx, dword [ebp - 0x488]
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467ed4
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467f0c
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467f60
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467f8c
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467fc8
mov eax, esi
call fcn.0041c4cc
cmp dword [ebp + 0x10], 0
je 0x467abb
push 0x467fe4
push dword [ebp + 0x10]
push 0x467ec8
lea eax, [ebp - 0x48c]
mov edx, 3
call fcn.00404d80
mov edx, dword [ebp - 0x48c]
mov eax, esi
call fcn.0041c4cc
mov edx, 0x467ff8
mov eax, esi
call fcn.0041c4cc
cmp dword [ebp + 0xc], 0
je 0x467b1a
lea eax, [ebp - 0x80]
mov edx, 0x46801c
call fcn.00404a98
cmp dword [ebp + 8], 0
je 0x467b0c
push 0x46802c
push dword [ebp + 8]
push 0x467ec8
lea eax, [ebp - 0x490]
mov edx, 3
call fcn.00404d80
mov edx, dword [ebp - 0x490]
mov eax, esi
call fcn.0041c4cc
jmp 0x467b79
mov edx, 0x468044
mov eax, esi
call fcn.0041c4cc
jmp 0x467b79
test bl, bl
jne 0x467b6c
fld qword [ebp - 0x78]
fcomp dword [0x468078]
fnstsw ax
sahf
jbe 0x467b6c
push 0x468084
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea edx, [ebp - 0x498]
xor eax, eax
call fcn.00466cd8
push dword [ebp - 0x498]
push 0x467ec8
lea eax, [ebp - 0x494]
mov edx, 3
call fcn.00404d80
mov edx, dword [ebp - 0x494]
mov eax, esi
call fcn.0041c4cc
lea eax, [ebp - 0x80]
mov edx, 0x4680a0
call fcn.00404a98
lea eax, [ebp - 0x64]
mov edx, dword [esi + 4]
call fcn.00404a98
mov eax, esi
call fcn.00403c74
push 0
push 0x4680a4
push 0x4680a4
push 0
push 0x4680a8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x34], eax
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x60]
call fcn.00404ec0
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x5c], 0x2710
push 4
lea eax, [ebp - 0x5c]
push eax
push 5
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_InternetSetOptionA
mov dword [ebp - 0x5c], 0x2710
push 4
lea eax, [ebp - 0x5c]
push eax
push 6
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_InternetSetOptionA
mov ebx, 0x804cc200
mov eax, dword [ebp - 0x68]
mov edx, 0x4680c4
call fcn.00404e0c
jne 0x467c2c
or ebx, 0x200
or ebx, 0x100
or ebx, 0x800000
or ebx, 0x1000
or ebx, 0x2000
xor eax, eax
push ebp
push 0x467e44
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push ebx
push 0
push 0
push 0x4680cc
mov eax, dword [ebp - 0x6c]
call fcn.00404ec0
push eax
mov eax, dword [ebp - 0x80]
call fcn.00404ec0
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x64], 0
je 0x467c8a
push 0xa0000000
mov eax, dword [ebp - 0x64]
call fcn.00404cc0
push eax
mov eax, dword [ebp - 0x64]
call fcn.00404ec0
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push ebp
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x54]
call fcn.004677b8
pop ecx
test al, al
jne 0x467cf0
push 0x4680e0
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4a0]
call fcn.00409008
push dword [ebp - 0x4a0]
push 0x4680f8
push dword [ebp - 0x28]
push 0x468108
push dword [ebp - 0x7c]
lea eax, [ebp - 0x49c]
mov edx, 6
call fcn.00404d80
mov eax, dword [ebp - 0x49c]
call fcn.00466950
call fcn.004044c0
jmp 0x467e4b
cmp dword [ebp - 0x40], 0xc8
jne 0x467dba
push ebp
mov eax, dword [ebp - 0x54]
call fcn.004670a8
pop ecx
fstp qword [ebp - 0x50]
wait
xor eax, eax
mov dword [ebp - 0x70], eax
push 0xffff
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x418074]
call fcn.0041bfd0
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x467db3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3c], 0x400
jmp 0x467d55
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x70], eax
lea edx, [ebp - 0x481]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x3c]
push eax
push 0x400
lea eax, [ebp - 0x481]
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x467d78
cmp dword [ebp - 0x3c], 0
jne 0x467d3e
fld qword [ebp - 0x50]
fabs
fcomp dword [0x468114]
fnstsw ax
sahf
jbe 0x467d99
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
call fcn.00467224
mov byte [ebp - 0x2d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467dba
mov eax, dword [ebp - 0x44]
call fcn.00403c74
ret
push 0x4680e0
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4a8]
call fcn.00409008
push dword [ebp - 0x4a8]
push 0x468120
lea edx, [ebp - 0x4ac]
mov eax, dword [ebp - 0x70]
call fcn.00408f1c
push dword [ebp - 0x4ac]
push 0x4680f8
push dword [ebp - 0x28]
push 0x468130
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4a4]
mov edx, 8
call fcn.00404d80
mov eax, dword [ebp - 0x4a4]
call fcn.00466950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e4b
mov eax, dword [ebp - 0x54]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467ea4
lea eax, [ebp - 0x4ac]
mov edx, 0xa
call fcn.00404a24
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00404a24
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.00404a24
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404a24
lea eax, [ebp + 8]
mov edx, 3
call fcn.00404a24
ret