Function at 0x10051780
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1920
call fcn.100be0b0
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x191c], edx
mov dword [ebp - 0x190c], eax
test edx, edx
je 0x100517b1
mov dword [edx], edi
test eax, eax
je 0x100517b7
mov dword [eax], edi
test ecx, ecx
je 0x10051a5f
mov al, byte [ecx + 4]
cmp al, 0x3a
jne 0x100517cf
mov byte [ebp - 0x1911], 0
jmp 0x100517de
cmp al, 0x73
jne 0x10051a5f
mov byte [ebp - 0x1911], 1
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
push 0x100dd418
push eax
mov dword [ebp - 0x1918], eax
call ebx
add esp, 0xc
test eax, eax
je 0x10051a5f
lea esi, [eax + 3]
push 0x100dd41c
push esi
call ebx
add esp, 8
test eax, eax
je 0x10051a5f
lea edx, [ebp - 0x304]
mov byte [eax], 0
lea ecx, [eax + 1]
sub edx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
test al, al
jne 0x10051830
lea edx, [ebp - 0x504]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10051845
push dword [ebp - 0x1918]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push 0
push 0
push 1
push str.WinInet
call dword [sym.imp.WININET.dll_InternetOpenA]
mov bl, byte [ebp - 0x1911]
mov ecx, eax
push 0
push 0
push 3
push 0
mov edx, 0x1bb
mov dword [ebp - 0x1920], ecx
test bl, bl
mov eax, 0x50
push 0
cmovne eax, edx
movzx eax, ax
push eax
lea eax, [ebp - 0x304]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
movzx eax, bl
push 0
add eax, 0x100
mov dword [ebp - 0x1918], ecx
shl eax, 0x17
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x504]
push eax
push 0x100dd428
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0x3ff
mov ebx, eax
mov byte [ebp - 0x904], 0
lea eax, [ebp - 0x903]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x904]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051904
sub ecx, edx
lea eax, [ebp - 0x904]
push ecx
push eax
push 0x17
push str.Content_Type:_text_html
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1005192e
xor edi, edi
jmp 0x10051a33
lea eax, [ebp - 0x1910]
xor esi, esi
push eax
push 0x1000
lea eax, [ebp - 0x1908]
mov dword [ebp - 0x1910], esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100519e4
nop dword [eax + eax]
mov eax, dword [ebp - 0x1910]
test eax, eax
je 0x100519dc
add esi, eax
cmp eax, 0x1001
jae 0x10051a72
mov byte [ebp + eax - 0x1908], 0
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edx, dword [ebp - 0x1910]
mov edi, eax
push edx
mov ecx, esi
lea eax, [ebp - 0x1908]
sub ecx, edx
push eax
add ecx, edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x14
mov dword [ebp - 0x1910], 0
lea eax, [ebp - 0x1910]
push eax
push 0x1000
lea eax, [ebp - 0x1908]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10051960
test edi, edi
je 0x100519e4
mov byte [esi + edi], 0
mov eax, dword [ebp - 0x191c]
test eax, eax
je 0x100519f0
mov dword [eax], esi
mov esi, dword [ebp - 0x190c]
test esi, esi
je 0x10051a33
push 0
lea eax, [ebp - 0x190c]
mov dword [ebp - 0x190c], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10051a33
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esi], eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x1918]
call esi
push dword [ebp - 0x1920]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
call fcn.100bd6f2
int3