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

Disassembly:
push 0xffffffffffffffff
push 0x413d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
test ebp, ebp
jne 0x4136c8
call esi
jmp 0x413971
mov edi, dword [esp + 0x450]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x458]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
or ecx, 0xffffffff
mov edi, str.http:__
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x450]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42d128
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x454]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push edi
push edi
push edi
push ebx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp esi, edi
jne 0x4137dc
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x413971
mov al, byte [esp + 0x13]
mov dword [esp + 0x14], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push 0x400
push edx
push esi
mov dword [esp + 0x458], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4138fb
jmp 0x413821
xor edi, edi
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x4138fb
mov ebp, eax
mov al, byte [esp + 0x13]
xor esi, esi
lea ecx, [esp + 0x20]
push esi
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
push ebp
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41387b
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
xor esi, esi
mov byte [eax + ebp], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x20]
mov byte [esp + 0x448], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push edx
push esi
push eax
call dword [sym.imp.MSVCP60.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x448], 0
cmp eax, esi
je 0x4138c9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4138c0
cmp al, 0xff
je 0x4138c0
dec al
mov byte [ecx], al
jmp 0x4138c9
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push 0x400
push edx
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [esp + 0x1c]
test eax, eax
jne 0x41381f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x41390f
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x458]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x38]
add esp, 4
test ecx, ecx
je 0x41396f
mov al, byte [ecx - 1]
test al, al
je 0x413965
cmp al, 0xff
je 0x413965
dec al
mov byte [ecx - 1], al
jmp 0x41396f
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret