Function at 0x45f993
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push 0x4c
mov eax, 0x5af3e7
call fcn.0057798c
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x34], ebx
xor ecx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ecx
xor edx, edx
mov edi, ebx
xor eax, eax
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], cl
mov dword [ebp - 0x38], edx
test esi, esi
je 0x45f9de
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x45f9d9
mov eax, dword [esi]
mov dword [esi + 0x10], ecx
mov byte [eax], cl
push ecx
push str.github.com
lea ecx, [ebp + 8]
call fcn.0040d60a
cmp eax, 0xffffffff
mov edx, 0x5f8660
mov ecx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64_
cmovne ecx, edx
xor eax, eax
push eax
push eax
push eax
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x45fb3c
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
xor edx, edx
push edx
push edx
push edx
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x45fb15
mov dword [ebp - 0x18], 1
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x30]
push 0x1000
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.004048e2
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
push ecx
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x45fadc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
cmp ecx, edx
jae 0x45faa4
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], ecx
cmovae eax, dword [ebp - 0x30]
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push edx
cmovae eax, dword [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00403952
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x45fad0
inc eax
push eax
push dword [ebp - 0x30]
call fcn.00404a83
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
jne 0x45fa41
jmp 0x45fb0c
test esi, esi
je 0x45faf8
lea ecx, [ebp - 0x58]
call fcn.0045df81
push eax
mov ecx, esi
call fcn.0040d664
lea ecx, [ebp - 0x58]
call fcn.0040388d
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x45fb0c
inc eax
push eax
push dword [ebp - 0x30]
call fcn.00404a83
pop ecx
pop ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x45fb31
test esi, esi
je 0x45fb31
lea ecx, [ebp - 0x58]
call fcn.0045df81
push eax
mov ecx, esi
call fcn.0040d664
lea ecx, [ebp - 0x58]
call fcn.0040388d
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x45fb58
test esi, esi
je 0x45fb58
lea ecx, [ebp - 0x58]
call fcn.0045df81
push eax
mov ecx, esi
call fcn.0040d664
lea ecx, [ebp - 0x58]
call fcn.0040388d
lea ecx, [ebp + 8]
call fcn.0040388d
mov eax, ebx
call fcn.0057793b
ret