Function at 0x408290
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
sub esp, 0x484
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x42c], ebx
je 0x4087ce
cmp dword [ebp + 0x30], 0
je 0x4087ce
cmp dword [ebp + 0x48], 0
je 0x4087ce
push 0
push 0
push 0
push 0
push 0x448244
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x1c], 0x10
mov ecx, eax
push 1
push 0
push 3
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x46c], ecx
cmovae eax, dword [ebp + 8]
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp + 0x34], 0x10
lea esi, [ebp + 0x20]
mov edi, eax
cmovae esi, dword [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x468], edi
push 0x44c4cc
call fcn.004157d0
lea ecx, [ebp - 0x484]
call fcn.00403500
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x408359
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push 0
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x470]
mov dword [ebp - 0x428], eax
cmp edx, 0x10
jb 0x4083ac
mov ecx, dword [ebp - 0x484]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4083a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40887d
push edx
push ecx
call fcn.00418e03
add esp, 8
cmp dword [ebp + 0x4c], 0x10
lea edi, [ebp + 0x38]
mov dword [ebp - 0x474], 0
cmovae edi, dword [ebp + 0x38]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x470], 0xf
mov byte [ebp - 0x484], 0
push 0x44b9d4
call fcn.004157d0
lea ecx, [ebp - 0x444]
call fcn.00403500
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4083f9
mov esi, dword [esi]
push dword [ebp + 0x48]
push edi
sub esp, 0x18
mov ecx, esp
push 0x44b9d4
call fcn.004157d0
lea ecx, [ebp - 0x45c]
call fcn.00403500
add esp, 0x18
mov eax, dword [eax + 0x10]
push eax
push esi
mov esi, dword [ebp - 0x428]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x408466
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40845c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408882
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
cmp edx, 0x10
jb 0x4084bb
mov ecx, dword [ebp - 0x45c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4084b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408882
push edx
push ecx
call fcn.00418e03
add esp, 8
lea eax, [ebp - 0x424]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4086c0
nop dword [eax]
cmp dword [ebp - 0x424], 0
je 0x4086ba
lea eax, [ebp - 0x408]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x444], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408511
sub eax, edx
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00416360
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x434], ecx
mov dword [ebp - 0x44c], 0
cmovb ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x430], 0x10
push ecx
cmovae eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x45c]
push eax
mov dword [ebp - 0x448], 0xf
mov byte [ebp - 0x45c], 0
call fcn.00416360
cmp dword [ebp - 0x448], 0x10
lea edx, [ebp - 0x45c]
mov edi, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x410]
cmovae edx, edi
mov eax, dword [ebp - 0x40c]
mov ebx, dword [ebp - 0x44c]
sub eax, ecx
mov dword [ebp - 0x460], ecx
push ebx
push edx
cmp ebx, eax
ja 0x4085f0
cmp dword [ebp - 0x40c], 0x10
lea esi, [ebp - 0x420]
lea eax, [ebx + ecx]
cmovae esi, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
lea eax, [esi + ecx]
push eax
call fcn.0041a240
mov ecx, dword [ebp - 0x460]
lea eax, [ebx + esi]
mov esi, dword [ebp - 0x428]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x40860f
mov byte [ebp - 0x464], 0
lea ecx, [ebp - 0x420]
push dword [ebp - 0x464]
push ebx
call fcn.00416f70
mov edi, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x408645
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40863b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40887d
push ecx
push edi
call fcn.00418e03
add esp, 8
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40867f
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408675
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40887d
push edx
push ecx
call fcn.00418e03
add esp, 8
mov eax, dword [ebp - 0x424]
cmp eax, 0x400
jae 0x40888c
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x424]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4084e0
mov ebx, dword [ebp - 0x42c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x468]
call esi
push dword [ebp - 0x46c]
call esi
movups xmm0, xmmword [ebp - 0x420]
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 0x420], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x410]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
cmp edx, 0x10
jb 0x40873f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408887
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x408785
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40877b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408887
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40886a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408860
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408887
jmp 0x408860
push 0
push 0x4475ef
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.00416360
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40881b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408887
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x408785
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40877b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408887
jmp 0x40877b
push edx
push ecx
call fcn.00418e03
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041878c
mov esp, ebp
pop ebp
ret
call fcn.0042140f
call fcn.0042140f
call fcn.0042140f
call fcn.00418aa8
int3