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

Disassembly:
push 0xffffffffffffffff
push 0x4177dc
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.004091c0
mov eax, dword [0x41d2b0]
xor eax, esp
mov dword [esp + 0x1088], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x10a0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x10b4]
mov ebp, dword [esp + 0x10b0]
mov eax, dword [esp + 0x10bc]
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esp + 0x10c0]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
cmp edi, ebx
je 0x406944
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4065d0
sub eax, edx
je 0x406944
mov ecx, esi
call fcn.004053a0
push ebx
push ebx
push ebx
push ebx
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xd0], eax
cmp eax, ebx
jne 0x40662f
push 0xc8
add esi, 4
push ebx
push esi
call fcn.004090b0
push 0x41840c
push 0x64
push esi
call fcn.0040912a
add esp, 0x18
push 0x41846c
mov ecx, ebp
call fcn.00402b60
jmp 0x40695e
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0x50
call fcn.00402b60
lea edx, [esp + 0x1c]
push edx
lea ebp, [esi + 0x114]
push ebp
lea edi, [esi + 0xdc]
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x10b8], ebx
call fcn.00405800
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x10a8], 0xffffffff
jb 0x406687
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00406e6d
add esp, 4
cmp dword [edi + 0x18], 0x10
jb 0x406692
mov edi, dword [edi + 4]
jmp 0x406695
add edi, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0xd0]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0xd4], eax
cmp eax, ebx
jne 0x4066dc
push 0x4183f4
lea ecx, [esi + 4]
call fcn.00405400
mov esi, dword [esp + 0x14]
push 0x41846c
mov ecx, esi
call fcn.00402b60
mov eax, esi
jmp 0x406960
mov edi, dword [esp + 0x10b8]
mov ecx, 0x418510
cmp edi, 1
je 0x4066f2
mov ecx, 0x418508
cmp dword [ebp + 0x18], 0x10
jb 0x4066fd
mov ebp, dword [ebp + 4]
jmp 0x406700
add ebp, 4
push ebx
push 0x80000000
push ebx
push ebx
push str.HTTP_1.1
push ebp
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xd8], eax
cmp eax, ebx
jne 0x406727
push 0x4183c0
jmp 0x4066bd
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10a8], 1
lea ecx, [esp + 0x44]
cmp eax, ebx
jne 0x406758
push ecx
mov ecx, esi
call fcn.00405dd0
jmp 0x40675e
push eax
call fcn.00402330
cmp edi, 1
jne 0x40677c
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x406772
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x58]
push ebx
push ebx
push edx
push eax
jmp 0x4067a5
mov ebp, dword [esp + 0x20]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406785
mov ecx, dword [esp + 0x48]
sub eax, edx
cmp dword [esp + 0x5c], 0x10
jae 0x40679d
lea ecx, [esp + 0x48]
mov edx, dword [esp + 0x58]
push eax
push ebp
push edx
push ecx
mov eax, dword [esi + 0xd8]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x4067e3
push 0x4182d4
lea ecx, [esi + 4]
call fcn.00405400
mov esi, dword [esp + 0x14]
push 0x41846c
mov ecx, esi
call fcn.00402b60
lea ecx, [esp + 0x44]
call fcn.004026c0
mov eax, esi
jmp 0x406960
push 0x1000
lea ecx, [esp + 0x9d]
push ebx
push ecx
mov byte [esp + 0xa4], bl
call fcn.004090b0
mov ecx, dword [esi + 0xd8]
add esp, 0xc
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xa0]
push eax
push 0x15
push ecx
mov dword [esp + 0x2c], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
jne 0x406830
push 0x4182bc
jmp 0x4067bb
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x80]
call fcn.00402b60
push ebx
push 0x4182b8
lea ecx, [esp + 0x84]
mov byte [esp + 0x10b0], 2
call fcn.00405340
cmp eax, 0xffffffff
je 0x406899
push 0x4184ec
lea ecx, [esi + 4]
call fcn.00405400
mov esi, dword [esp + 0x14]
push 0x41846c
mov ecx, esi
call fcn.00402b60
lea ecx, [esp + 0x7c]
call fcn.004026c0
lea ecx, [esp + 0x44]
call fcn.004026c0
mov eax, esi
jmp 0x406960
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov edx, dword [esi + 0xd8]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0xa0]
push ecx
push edx
mov byte [esp + 0x10b8], 3
call edi
test eax, eax
je 0x406915
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x406915
mov byte [esp + eax + 0x98], bl
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x64]
call fcn.00402330
mov eax, dword [esi + 0xd8]
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0xa0]
push edx
push eax
call edi
test eax, eax
jne 0x4068d6
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.00402690
lea ecx, [esp + 0x60]
call fcn.004026c0
lea ecx, [esp + 0x7c]
call fcn.004026c0
lea ecx, [esp + 0x44]
call fcn.004026c0
mov eax, esi
jmp 0x406960
push ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push 0x41846c
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00402a80
mov eax, ebp
mov ecx, dword [esp + 0x10a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1088]
xor ecx, esp
call fcn.00406e5e
add esp, 0x1098
ret 0x14