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

Disassembly:
mov eax, 0x10019a40
call fcn.1000ea40
sub esp, 0x78
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call fcn.1000cac9
mov ebx, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x28], ebx
call fcn.1000cac9
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
add ecx, ebx
neg ebx
sbb ebx, ebx
and ebx, ecx
mov ecx, edi
push ebx
push eax
call fcn.1000ca2e
call fcn.1000c41f
test eax, eax
jne 0x1000c5ba
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x12]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.1000c81c
add esp, 0x14
cmp dword [ebp + 0x10], esi
mov dword [ebp + 8], 0x4400000
push 0x50
pop edi
je 0x1000c4db
mov dword [ebp + 8], 0x84c00000
mov edi, 0x1bb
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 4], esi
je 0x1000c637
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x1000c4f5
call fcn.10003a70
jmp 0x1000c4f7
xor eax, eax
push esi
push esi
push 3
push esi
push esi
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x1000c637
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x1000c521
call fcn.10003a70
jmp 0x1000c523
xor eax, eax
push esi
push dword [ebp + 8]
push 0x1001e2f0
push esi
push str.HTTP_1.0
push eax
push 0x1001e2ec
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x24], ebx
je 0x1000c62e
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1000c591
lea eax, [ebp - 0x30]
push esi
push eax
lea eax, [ebp - 0x84]
push eax
push 0x13
push ebx
mov dword [ebp - 0x30], 0x50
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, esi
je 0x1000c5cd
lea eax, [ebp - 0x84]
push eax
call fcn.1000ef60
cmp eax, 0x194
pop ecx
jne 0x1000c5cd
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x1000c5ae
call fcn.10003a43
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x1000c5ba
call fcn.10003a43
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov edi, 0x800
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], esi
push edi
push esi
push dword [ebp + 8]
call fcn.1000e610
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0x7ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp + 0x10], esi
je 0x1000c61e
push dword [ebp + 8]
call fcn.1000eb50
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.10009c63
cmp dword [ebp + 0x10], esi
jne 0x1000c5df
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x1000c646
call fcn.10003a43
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x1000c652
call fcn.10003a43
push 1
pop eax
jmp 0x1000c5bc