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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006507
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x420], edx
mov edi, ecx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x424], edi
push 0
push 0
push 0
mov dword [ebp - 4], 0
push 1
mov dword [ebp - 0x43c], edi
push str.HTTPGet
mov dword [ebp - 0x428], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10002355
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x414]
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x414], 0x2710
call esi
push 4
lea eax, [ebp - 0x414]
push eax
push 6
push dword [ebp - 0x41c]
call esi
push 4
lea eax, [ebp - 0x414]
push eax
push 5
push dword [ebp - 0x41c]
call esi
mov eax, dword [ebp - 0x420]
cmp dword [eax + 0x14], 7
jbe 0x100021db
mov eax, dword [eax]
mov esi, dword [ebp - 0x41c]
push 0
push 0x80800000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x1000220f
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.InternetOpenUrl_failed
jmp 0x1000235a
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 1
nop word [eax + eax]
lea ecx, [ebp - 0x418]
push ecx
push 0x3ff
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002338
mov eax, dword [ebp - 0x418]
cmp eax, 0x400
jae 0x10002376
lea esi, [ebp - 0x410]
mov byte [ebp + eax - 0x410], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002294
mov edx, dword [edi + 0x14]
sub esi, ecx
mov ecx, dword [edi + 0x10]
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x100022da
lea eax, [ecx + esi]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x100022ba
mov eax, dword [edi]
lea edi, [eax + ecx]
push esi
lea eax, [ebp - 0x410]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [ebp - 0x42c]
jmp 0x100022f7
push esi
lea eax, [ebp - 0x410]
mov byte [ebp - 0x424], 0
push eax
push dword [ebp - 0x424]
mov ecx, edi
push esi
call fcn.10004cd0
cmp dword [ebp - 0x418], 0
mov eax, dword [ebp - 0x420]
ja 0x10002250
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push dword [ebp - 0x41c]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100055ab
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x420]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x41c]
call esi
push str.InternetReadFile_failed
jmp 0x1000235a
push str.InternetOpen_failed
lea ecx, [ebp - 0x438]
call fcn.10001fd0
push 0x100094bc
lea eax, [ebp - 0x438]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.1000574a
int3