Function at 0x404710
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4099e0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1040
call fcn.00409540
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1028], 0
movups xmmword [ebp - 0x1038], xmm0
mov dword [ebp - 0x1024], 0xf
mov byte [ebp - 0x1038], 0
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x103c]
push eax
push 0x40a960
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
jne 0x4047e4
push eax
push eax
push eax
push 1
push str.HTTPGET
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x104c], edi
test edi, edi
je 0x4047e4
push 0
push 0x80000000
push 0
push 0
push str.https:__raw.githubusercontent.com_OldSpectorPvP_OldSpectorPvP_main_Dynast.io.exe.checksum
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x1044], esi
test esi, esi
jne 0x404829
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x103d], 0
mov ecx, dword [ebp - 0x1024]
cmp ecx, 0xf
jbe 0x404950
mov edx, dword [ebp - 0x1038]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404946
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404946
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x101c]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4048f2
nop dword [eax + eax]
mov edi, dword [ebp - 0x101c]
test edi, edi
je 0x4048ec
mov edx, dword [ebp - 0x1024]
mov eax, edx
mov ecx, dword [ebp - 0x1028]
sub eax, ecx
push edi
cmp edi, eax
ja 0x4048aa
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x1028], eax
lea esi, [ebp - 0x1038]
cmova esi, dword [ebp - 0x1038]
lea eax, [ebp - 0x1018]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1044]
jmp 0x4048ca
lea eax, [ebp - 0x1018]
mov byte [ebp - 0x1048], 0
push eax
push dword [ebp - 0x1048]
lea ecx, [ebp - 0x1038]
push edi
call fcn.00406380
lea eax, [ebp - 0x101c]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404850
mov edi, dword [ebp - 0x104c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1020]
jne 0x40493a
cmp dword [ebp - 0x1024], 0xf
lea eax, [ebp - 0x1038]
push 0
cmova eax, dword [ebp - 0x1038]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
cmp dword [ebp - 0x1020], eax
je 0x4047e4
mov byte [ebp - 0x103d], 1
jmp 0x4047eb
push ecx
push edx
call fcn.00408911
add esp, 8
mov al, byte [ebp - 0x103d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408682
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret