Function at 0x4669cc
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x92
push 0
push 0
dec ecx
jne 0x4669d5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x466f0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x466ebb
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x466e6a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404e60
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404e60
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x466a67
mov edx, 0x466f28
mov eax, dword [0x465f9c]
call fcn.00465ff8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
imul eax, eax, 0x3e8
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x18]
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
push 0
push 0
lea edx, [ebp - 0x44c]
mov eax, dword [ebp - 4]
call fcn.004668ec
mov ax, word [ebp - 0x440]
push eax
lea edx, [ebp - 0x45c]
mov eax, dword [ebp - 4]
call fcn.004668ec
mov eax, dword [ebp - 0x45c]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x466ae4
mov edx, 0x466f44
mov eax, dword [0x465f9c]
call fcn.00465ff8
test edi, edi
jne 0x466b06
lea edx, [ebp - 0x46c]
mov eax, dword [ebp - 4]
call fcn.004668ec
mov edx, dword [ebp - 0x468]
lea eax, [ebp - 0x3c]
call fcn.00404a1c
jmp 0x466b2d
lea edx, [ebp - 0x47c]
mov eax, dword [ebp - 4]
call fcn.004668ec
push dword [ebp - 0x478]
push 0x466f64
push edi
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404d20
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x466c11
push 0
push 0x800000
push 0
push 0
lea edx, [ebp - 0x480]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x480]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00404e60
push eax
lea ecx, [ebp - 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, esi
call fcn.0046666c
mov eax, dword [ebp - 0x484]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x466ba7
mov edx, 0x466f70
mov eax, dword [0x465f9c]
call fcn.00465ff8
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1f
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetQueryOptionA
mov eax, dword [ebp - 0x1c]
or eax, 0x100
or eax, 0x1000
or eax, 0x2000
or eax, 0x8000
or eax, 0x4000
or eax, 0x80
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1f
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x466c7e
mov edx, 0x466f90
mov eax, dword [0x465f9c]
call fcn.00465ff8
jmp 0x466c7e
push 0
push 0x80000000
push 0
push 0
lea edx, [ebp - 0x488]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x488]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00404e60
push eax
lea ecx, [ebp - 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, esi
call fcn.0046666c
mov eax, dword [ebp - 0x48c]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x466c7e
mov edx, 0x466f70
mov eax, dword [0x465f9c]
call fcn.00465ff8
lea edx, [ebp - 0x490]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x490]
lea eax, [ebp - 0x30]
mov edx, 0x466fb0
call fcn.00404cac
cmp byte [ebp + 0xc], 0
je 0x466cb4
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00466908
jmp 0x466cbe
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.00404a1c
mov eax, dword [ebp - 0x34]
call fcn.00404c60
push eax
mov eax, dword [ebp - 0x34]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x30]
call fcn.00404c60
push eax
mov eax, dword [ebp - 0x30]
call fcn.00404e60
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x466d33
mov edx, 0x466fc8
mov eax, dword [0x465f9c]
call fcn.00465ff8
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x2c]
mov dword [eax + 0x24], ebx
xor edx, edx
push ebp
push 0x466e39
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x2c], 0xc8
je 0x466d97
push 0x466fe4
lea edx, [ebp - 0x498]
mov eax, ebx
call fcn.004092e4
push dword [ebp - 0x498]
push 0x466ffc
lea eax, [ebp - 0x494]
mov edx, 3
call fcn.00404d20
mov ecx, dword [ebp - 0x494]
mov dl, 1
mov eax, dword [0x41a8cc]
call fcn.0040e4bc
call fcn.00404314
mov dl, 1
mov eax, dword [0x41b444]
call fcn.00403b44
mov ebx, eax
lea eax, [ebp - 0x38]
push eax
push 0x400
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x466dda
cmp dword [ebp - 0x38], 0
je 0x466dda
lea edx, [ebp - 0x43c]
mov ecx, dword [ebp - 0x38]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
jmp 0x466da5
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
push 0
push 0
mov eax, ebx
call fcn.0041f34c
cmp byte [ebp + 8], 0
je 0x466e25
mov dl, 1
mov eax, dword [0x41b444]
call fcn.00403b44
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.00466528
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], esi
push 0
push 0
mov eax, esi
call fcn.0041f34c
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x466e2f
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ec2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
cmp dword [ebp - 0x14], 0
je 0x466e9c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
je 0x466eab
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0xc], 0
je 0x466eba
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret