Function at 0x40fe50
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 0x484
push 0x421b10
call fcn.00411e68
mov dword [ebp - 0x44], 4
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
je 0x41023d
push dword [ebp + 8]
call fcn.0040c3dd
pop ecx
test eax, eax
je 0x41023d
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x421a84
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x410202
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
push 0x3c
pop edi
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0x294]
mov dword [ebp - 0x7c], eax
mov eax, 0x100
mov dword [ebp - 0x78], eax
mov word [ebp - 0x74], si
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp + 8]
call ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x421a8c
push 0x421a8d
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x410202
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x5c], esi
je 0x40ff4b
push dword [ebp - 0x60]
jmp 0x40ff50
push 0x421a90
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x54], esi
je 0x40ff6c
push dword [ebp - 0x58]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], esi
push esi
push 0x4400000
push esi
push 0x421a92
push str.HTTP_1.1
lea eax, [ebp - 0x194]
push eax
push 0x421aa0
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410202
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
push esi
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41001f
cmp dword [ebp - 0x1c], esi
je 0x410202
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x410009
sub ecx, 5
je 0x410009
sub ecx, 0x16
je 0x410009
mov dword [ebp - 0x1c], esi
push esi
push 7
push eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40ffaf
jmp 0x40ffac
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x14], esi
je 0x40ffaf
push esi
push esi
push eax
push esi
call fcn.0040fca6
add esp, 0x10
jmp 0x40ffaf
cmp dword [ebp - 0x1c], esi
je 0x410202
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], esi
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x410057
call ebx
mov dword [ebp - 0x4c], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x2c]
cmp edx, 0x197
jne 0x4100b6
cmp dword [ebp - 0x1c], esi
je 0x4100b6
push esi
push 7
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x41008d
mov dword [ebp - 0x1c], esi
jmp 0x41005d
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x44], 4
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
jmp 0x41005d
cmp edx, 0xc8
jne 0x410105
mov dword [ebp - 0x3c], esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, ebx
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4100f0
add ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x3c], esi
ja 0x4100c6
cmp ebx, esi
jbe 0x4101f9
mov dword [ebp - 0x40], esi
jmp 0x4101f9
cmp edx, 0x190
jb 0x4101de
cmp edx, 0x258
jae 0x4101de
mov eax, 0x193
cmp edx, eax
je 0x4101ae
add eax, 0x61
cmp edx, eax
jne 0x41014f
cmp dword [ebp + 0x14], esi
je 0x4101c2
push ebx
push esi
push eax
push esi
call fcn.0040fca6
add esp, 0x10
test eax, eax
je 0x4101c2
mov dword [ebp - 0x24], ebx
jmp 0x4101c2
mov ecx, 0x1f7
cmp edx, ecx
jne 0x4101a6
cmp dword [ebp - 0x28], 5
jge 0x410182
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], esi
jl 0x410179
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x48]
jmp 0x410164
inc dword [ebp - 0x28]
add dword [ebp - 0x34], 0x1e
jmp 0x4101a1
cmp dword [ebp + 0x14], esi
je 0x4101c2
push ebx
push esi
push ecx
push esi
call fcn.0040fca6
add esp, 0x10
test eax, eax
je 0x4101c2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x24], ebx
jmp 0x4101f9
cmp edx, 0x194
je 0x4101c2
xor ecx, ecx
cmp dword [ebp + 0x14], esi
sete cl
push esi
push ecx
push eax
push esi
call fcn.0040fca6
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x2c], 0x194
setne al
dec eax
and eax, 0x6c1fd
add eax, 0x80004005
mov dword [ebp - 0x40], eax
jmp 0x4101f9
push esi
xor eax, eax
cmp dword [ebp + 0x14], esi
sete al
push eax
push edx
push esi
call fcn.0040fca6
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
cmp dword [ebp - 0x24], esi
jne 0x40ff75
or dword [ebp - 4], 0xffffffff
call fcn.00410212
mov eax, dword [ebp - 0x40]
jmp 0x41023f
xor eax, eax
call fcn.00411ea3
ret