Function at 0x10004c69
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push ebx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x70]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10004cec
push 0xa
lea eax, [esp + 0x6c]
push ebx
push eax
mov byte [esp + 0x1f], 1
call dword [sym.imp.MSVCR90.dll_wcstol]
add esp, 0xc
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ebx
push esi
jmp 0x10004de7
mov esi, dword [esp + 0x14]
cmp esi, ebx
jbe 0x10004e10
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x10004d21
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
mov dword [esp + 0x1c], eax
jmp 0x10004d25
mov dword [esp + 0x1c], ebx
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
cmp esi, ebx
je 0x10004d72
cmp esi, 0xffffffff
jbe 0x10004d43
call fcn.100047e0
jmp 0x10004d58
push esi
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::allocator_char_::allocate_unsigned_int_]
mov dword [esp + 0x28], eax
add eax, esi
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x28]
cmp esi, ebx
jbe 0x10004d6b
push esi
push ebx
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [edi + esi]
mov dword [esp + 0x2c], eax
sub eax, dword [esp + 0x28]
jne 0x10004d7e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x18]
push dword [esp + 0x30]
push dword [esp + 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
cmp edi, ebx
je 0x10004dfd
mov eax, dword [esp + 0x44]
cmp eax, ebx
jbe 0x10004dfd
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
jne 0x10004db7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
push dword [esp + 0x44]
lea ecx, [esp + 0x50]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea esi, [esp + 0x1c]
call fcn.10003013
push dword [esp + 0x1c]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
cmp edi, ebx
jne 0x10004cfd
mov byte [esp + 0x13], bl
jmp 0x10004e51
lea esi, [esp + 0x1c]
call fcn.10003013
push dword [esp + 0x1c]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
cmp edi, ebx
je 0x10004df7
cmp byte [esp + 0x13], bl
je 0x10004e24
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x18], eax
jne 0x10004df7
mov byte [esp + 0x13], 1
cmp dword [esp + 0x3c], ebx
je 0x10004e51
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x1c]
call fcn.100053c4
mov ecx, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xac]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005901
mov esp, ebp
pop ebp
ret