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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051270
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x54
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov word [ebp - 0x2b], ax
mov byte [ebp - 0x29], al
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1001563f
xor eax, eax
jmp 0x1001587c
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10015673
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10015827
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 5
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100156cc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10015709
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
cmp dword [ebp - 0x4c], 0xc8
je 0x1001572d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
movsx eax, byte [ebp - 0x48]
test eax, eax
jne 0x1001573c
xor eax, eax
jmp 0x1001587c
lea ecx, [ebp - 0x48]
push ecx
call fcn.1001ae19
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1001576c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.1001a524
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x100157af
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
push 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.1001c860
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100157ff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x1c]
je 0x1001581f
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1001587c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x10015857
mov dword [ebp - 4], 0xffffffff
jmp 0x10015865
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1001a52f
mov esp, ebp
pop ebp
ret 0x14