Function at 0x1013f520
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
push 0xffffffffffffffff
push 0x101403e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, dword [ebp + 0x10]
call fcn.1011d6c0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
push 0
mov ecx, 0x1018dafc
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1013f908
push 0
push 0
push 3
push 0
push 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x71]
neg edx
sbb edx, edx
and edx, 0x16b
add edx, 0x50
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1013f908
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], SysStringLen
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x71]
test edx, edx
je 0x1013f607
mov eax, dword [ebp - 0x1c]
or eax, 0x802000
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
je 0x1013f626
mov dword [ebp - 0x88], 0
jmp 0x1013f638
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x70]
test eax, eax
je 0x1013f64f
mov dword [ebp - 0x8c], 0x1014ddac
jmp 0x1013f659
mov dword [ebp - 0x8c], 0x1014ddb0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
push str.HTTP_1.1
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1013f908
mov dword [ebp - 0x20], 0x180
push 4
lea edx, [ebp - 0x20]
push edx
push 0x1f
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x1013f6bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014ddb8
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
mov ecx, dword [ebp + 0xc]
add ecx, 0x54
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
je 0x1013f6de
mov dword [ebp - 0x90], 0
jmp 0x1013f6f0
mov ecx, dword [ebp + 0xc]
add ecx, 0x54
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x38
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx edx, al
test edx, edx
je 0x1013f70f
mov dword [ebp - 0x94], 0
jmp 0x1013f721
mov ecx, dword [ebp + 0xc]
add ecx, 0x38
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x54
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x38
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1013f87b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 4
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x20000013
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1013f78e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x72]
test eax, eax
jne 0x1013f876
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 4
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push 0
lea edx, [ebp - 0x24]
push edx
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
push 0x1000
lea ecx, [ebp - 0x44]
call fcn.1011da70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
push 0
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1013f836
cmp dword [ebp - 0x24], 0
jne 0x1013f838
jmp 0x1013f861
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP80.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__::insert_unsigned_int__char_const___unsigned_int_]
jmp 0x1013f808
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1013f910
jmp 0x1013f908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push str.Send_http_request_failed
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x68]
call fcn.10117e90
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1011d750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.10118170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0x48]
push ecx
push 0x1014ddf0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
xor edx, edx
jne 0x1013f57c
cmp dword [ebp - 0x10], 0
je 0x1013f922
mov eax, dword [ebp - 0x10]
push eax
call fcn.1011d730
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1013f934
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1011d730
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x1013f946
mov edx, dword [ebp - 0x18]
push edx
call fcn.1011d730
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret