Function at 0x100017a0
Capabilities:
Check http status code
Connect to http server
Create http request
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x1000caed
mov eax, dword fs:[0]
push eax
mov eax, 0x230c
call fcn.1000bcf0
mov eax, dword [0x1001201c]
xor eax, esp
mov dword [esp + 0x2308], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001201c]
xor eax, esp
push eax
lea eax, [esp + 0x2320]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.GetCoreServiceAddress___n
call edi
push 0
push 0
push 0
push 0
push str.Agent
mov byte [esp + 0x2b], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0
push 3
push 0x1000d2dc
push 0x1000d2dc
push 0x50
mov ebx, eax
push str.sluk.samsungcloudprint.com
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
push str._scp_v2_svclookup_service_clientTypescpEPMclientVendersamsungclientVer_version_clientModescpATOserviceTypescpMonSvc
lea ecx, [esp + 0x2c]
mov dword [0x10012428], eax
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__::constructor_wchar_t_const__]
push str._version_
lea ecx, [esp + 0x64]
mov dword [esp + 0x232c], 0
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__::constructor_wchar_t_const__]
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2330], 1
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov ebp, eax
cmp ebp, 0xffffffff
jle 0x100018a4
lea esi, [esp + 0x44]
call section..text
mov byte [esp + 0x2328], 2
mov ecx, dword [esp + 0x74]
push eax
push ecx
push ebp
lea ecx, [esp + 0x34]
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__::replace_unsigned_int__unsigned_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x2328], 1
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_]
push str.URL:
call edi
mov eax, dword [esp + 0x2c]
mov ebp, 8
cmp dword [esp + 0x40], ebp
jae 0x100018be
lea eax, [esp + 0x2c]
push eax
call edi
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebp
jae 0x100018cf
lea eax, [esp + 0x2c]
mov edx, dword [0x10012428]
push 0
push 0x4003200
push 0
push 0x1000d2dc
push str.HTTP_1.0
push eax
push 0x1000d738
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
mov dword [0x1001242c], eax
mov dword [esp + 0x34], 0xf180
call esi
mov ecx, dword [0x1001242c]
mov edx, dword [0x10012034]
push 4
lea eax, [esp + 0x1c]
push eax
push 2
push ecx
mov dword [esp + 0x28], edx
call esi
mov eax, dword [0x1001242c]
push 4
lea edx, [esp + 0x1c]
push edx
push 6
push eax
call esi
mov edx, dword [0x1001242c]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x1001242c]
push 4
lea eax, [esp + 0x1c]
push eax
push 7
push ecx
call esi
mov eax, dword [0x1001242c]
push 4
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
call esi
mov edx, dword [0x1001242c]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x1001242c]
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push ecx
call esi
mov edx, dword [0x1001242c]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10001bc9
push 0x7ff
lea eax, [esp + 0xb21]
push 0
push eax
mov byte [esp + 0xb28], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0x1326]
push edx
mov word [esp + 0x1328], cx
call sub.MSVCR90.dll_memset
mov edx, dword [0x1001242c]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x800
lea ecx, [esp + 0xb24]
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001bdd
mov edx, dword [0x1001242c]
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x124]
push ecx
push 0x13
push edx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x10001a7b
lea ecx, [esp + 0x60]
mov byte [esp + 0x2328], al
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 + 0x28]
mov dword [esp + 0x2328], 0xffffffff
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_]
xor al, al
jmp 0x10001c0d
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
push str.Status_Code_:
lea ecx, [esp + 0x48]
mov ebp, eax
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__::constructor_wchar_t_const__]
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x232c], 3
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__::append_wchar_t_const__]
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x10001ac6
lea eax, [esp + 0x48]
push eax
call edi
push 0x1000d760
call edi
mov edx, dword [0x1001242c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [0x10012428]
push eax
call esi
push ebx
call esi
cmp ebp, 0xc8
jne 0x10001ba6
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1320]
push ecx
push eax
lea edx, [esp + 0xb28]
push edx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x1000d764
call edi
lea eax, [esp + 0x131c]
push eax
call edi
lea ecx, [esp + 0x7c]
push ecx
call fcn.100050f0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1320]
mov byte [esp + 0x232c], 4
call fcn.10005260
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x320]
mov ecx, str.domain
call fcn.10005550
lea ecx, [esp + 0x31c]
push ecx
mov ecx, 0x10012460
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_wchar_t_const__]
lea edx, [esp + 0x31c]
push edx
call edi
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x232c], 3
call fcn.10005200
lea ecx, [esp + 0x44]
mov byte [esp + 0x2328], 1
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_]
jmp 0x10001be2
lea ecx, [esp + 0x11c]
push ecx
call edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x17], 0
mov byte [esp + 0x2328], 1
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_]
jmp 0x10001be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x10001bdd
push str.Timeout
call edi
mov byte [esp + 0x17], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x2328], 0
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 + 0x28]
mov dword [esp + 0x2328], 0xffffffff
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_]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2308]
xor ecx, esp
call fcn.1000b132
add esp, 0x2318
ret