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

Disassembly:
push 0xffffffffffffffff
push 0x1000489c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push ebp
push esi
mov esi, dword [esp + 0x454]
push edi
push 0x10005a8c
push 0x1000598c
push 0x1000588c
push esi
mov dword [esp + 0x38], 0
call fcn.100017a0
add esp, 0x10
push 0
push 0
push 0
push 1
push 0x100014a0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 3
push 0x10001494
mov edi, eax
push 0
push 0x1000598c
mov dword [esp + 0x40], edi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
push eax
push 0x1000588c
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
push 0x1000144c
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
push 0
je 0x100019ea
mov esi, dword [esp + 0x460]
push 0x80800000
push 0
push 0
push 0x10001494
push 0x10005a8c
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
lea eax, [esp + 0x30]
push 0xa
push eax
push 0xf180
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
push 0x1f
push ebp
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x10001a0e
mov esi, dword [esp + 0x460]
push 0x80000000
push 0
push 0
push 0x10001494
push 0x10005a8c
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
cmp esi, 0x1000148c
jne 0x10001a2d
mov edx, dword [esp + 0x460]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
jmp 0x10001a31
push 0
push 0
mov edi, 0x10001458
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10001458
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dl, byte [esp + 0x17]
xor esi, esi
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ax, word [0x1000753c]
mov ecx, 0xff
mov word [esp + 0x44], ax
xor eax, eax
lea edi, [esp + 0x46]
mov dword [esp + 0x44c], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push 0x400
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
jbe 0x10001b0a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x20]
mov bl, byte [esp + edi + 0x44]
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, 1
ja 0x10001ac4
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea esi, [edx + 1]
push esi
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 0x10001af9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
movsx eax, bl
add edx, ecx
mov ah, al
mov byte [edx], al
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [edx + esi], 0
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x10001aa8
mov ebx, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
jne 0x10001a88
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
mov esi, dword [esp + 0x454]
mov cl, byte [esp + 0x18]
xor edi, edi
mov byte [esi], cl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push edi
push ecx
mov ecx, esi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x10001b76
mov al, byte [ecx - 1]
test al, al
je 0x10001b6c
cmp al, 0xff
je 0x10001b6c
dec al
mov byte [ecx - 1], al
jmp 0x10001b76
dec ecx
push ecx
call fcn.100046c6
add esp, 4
mov ecx, dword [esp + 0x444]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x440
ret