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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4321b9
mov eax, dword fs:[0]
push eax
mov eax, 0x4268
call fcn.0042bb20
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x422c], ecx
cmp esi, ebx
jne 0x410c19
xor eax, eax
jmp 0x410ef9
cmp word [esi], bx
je 0x410c12
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x421c], eax
cmp eax, ebx
je 0x410c12
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x4274]
push ebx
push eax
call fcn.0041c7e0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x4264], eax
lea eax, [ebp - 0x41fc]
mov dword [ebp - 0x4248], eax
lea eax, [ebp - 0x31fc]
add esp, 0xc
mov dword [ebp - 0x4240], eax
lea eax, [ebp - 0x4274]
push eax
push 0x90000000
push esi
mov dword [ebp - 0x4274], edi
mov dword [ebp - 0x4260], 0x100
mov dword [ebp - 0x4244], 0x800
mov dword [ebp - 0x423c], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x410ef6
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x421c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4220], eax
cmp eax, ebx
jne 0x410ce8
push dword [ebp - 0x421c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x410c12
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 2
push eax
call edi
lea eax, [ebp - 0x41fc]
push eax
lea esi, [ebp - 0x4218]
call fcn.004056d6
lea eax, [ebp - 0x31fc]
push eax
mov eax, esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040576e
cmp dword [ebp - 0x4200], 8
mov eax, dword [ebp - 0x4214]
jae 0x410d32
lea eax, [ebp - 0x4214]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp - 0x4220]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x410ed2
push 4
lea eax, [ebp + 0x10]
push eax
push 5
push esi
call edi
push 4
lea eax, [ebp + 0x10]
push eax
push 6
push esi
call edi
push ebx
push ebx
push ebx
push ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x410eb3
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x410ecb
push ebx
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebp - 0x4228]
push eax
push 0x20000013
push esi
mov dword [ebp - 0x4228], ebx
mov dword [ebp - 0x4230], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x410e87
cmp dword [ebp - 0x4228], 0xc8
je 0x410dd4
cmp dword [ebp - 0x4228], 0xc9
jne 0x410e87
push 0x1f9f
lea eax, [ebp - 0x21b3]
push ebx
push eax
mov dword [ebp - 0x4224], ebx
mov byte [ebp - 0x21b4], bl
call fcn.0041c7e0
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
jmp 0x410e67
cmp dword [ebp - 0x4224], ebx
je 0x410ecb
lea eax, [ebp - 0x21b4]
push eax
lea eax, [ebp - 0x4238]
push eax
call fcn.00401261
mov byte [ebp - 4], 1
push dword [eax]
push dword [ebp - 0x422c]
call fcn.0040576e
mov byte [ebp - 4], bl
push dword [ebp - 0x4238]
call fcn.0041a129
push dword [ebp - 0x4234]
call fcn.0041a129
push 0x1f9f
lea eax, [ebp - 0x21b3]
push ebx
push eax
mov dword [ebp - 0x4224], ebx
mov byte [ebp - 0x21b4], bl
call fcn.0041c7e0
add esp, 0x14
lea eax, [ebp - 0x4224]
push eax
push 0x1fa0
lea eax, [ebp - 0x21b4]
push eax
push esi
call edi
test eax, eax
jne 0x410dfd
jmp 0x410ecb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x4220]
call esi
push dword [ebp - 0x421c]
call esi
push ebx
push 1
lea esi, [ebp - 0x4218]
call fcn.00405f67
jmp 0x410c12
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x410e87
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x410e87
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4220]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x421c]
call esi
push ebx
push 1
lea esi, [ebp - 0x4218]
call fcn.00405f67
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004195bf
leave
ret