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

Disassembly:
push 0x4c
mov eax, 0x5baefa
call fcn.00581c9c
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 0x46e02a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46e025
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.0041f9ca
cmp eax, 0xffffffff
mov edx, 0x6121c0
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 0x46e18c
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 0x46e163
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.00404a02
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 0x46e128
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
cmp ecx, edx
jae 0x46e0f0
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.00403a72
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x46e11c
inc eax
push eax
push dword [ebp - 0x30]
call fcn.00404ba3
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
jne 0x46e08d
jmp 0x46e15a
test esi, esi
je 0x46e146
mov dl, 1
lea ecx, [ebp - 0x58]
call fcn.0046c51b
push eax
mov ecx, esi
call fcn.0041f9fc
lea ecx, [ebp - 0x58]
call fcn.004039ad
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x46e15a
inc eax
push eax
push dword [ebp - 0x30]
call fcn.00404ba3
pop ecx
pop ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x46e181
test esi, esi
je 0x46e181
mov dl, 1
lea ecx, [ebp - 0x58]
call fcn.0046c51b
push eax
mov ecx, esi
call fcn.0041f9fc
lea ecx, [ebp - 0x58]
call fcn.004039ad
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x46e1aa
test esi, esi
je 0x46e1aa
mov dl, 1
lea ecx, [ebp - 0x58]
call fcn.0046c51b
push eax
mov ecx, esi
call fcn.0041f9fc
lea ecx, [ebp - 0x58]
call fcn.004039ad
lea ecx, [ebp + 8]
call fcn.004039ad
mov eax, ebx
call fcn.00581c4b
ret