Function at 0x10003970
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 ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000c8ed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2b14
call fcn.1000bcf0
mov eax, dword [0x1001201c]
xor eax, esp
mov dword [esp + 0x2b10], eax
push ebx
push esi
push edi
mov eax, dword [0x1001201c]
xor eax, esp
push eax
lea eax, [esp + 0x2b28]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.GetChannelListAddress___n
call edi
push 0
push 0
push 0
push 0
push str.Agent
mov byte [esp + 0x27], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0
push 3
push 0x1000d2dc
push 0x1000d2dc
push 0x50
push str.sluk.samsungcloudprint.com
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
push str._scp_v2_svclookup_service_clientTypescpEPMclientVendersamsungclientVer_version_clientModescpATOserviceTypescpWebSvc
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 + 0x2b34], 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 + 0x2b38], 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 ebx, eax
cmp ebx, 0xffffffff
jle 0x10003a7c
lea esi, [esp + 0x44]
call section..text
mov byte [esp + 0x2b30], 2
mov ecx, dword [esp + 0x74]
push eax
push ecx
push ebx
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 + 0x2b30], 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 ebx, 8
cmp dword [esp + 0x40], ebx
jae 0x10003a96
lea eax, [esp + 0x2c]
push eax
call edi
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x10003aa7
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 + 0x20]
push ecx
push 0
push eax
mov dword [0x1001242c], eax
mov dword [esp + 0x2c], 0xf180
call esi
mov ecx, dword [0x1001242c]
mov edx, dword [0x10012034]
push 4
lea eax, [esp + 0x18]
push eax
push 2
push ecx
mov dword [esp + 0x24], edx
call esi
mov eax, dword [0x1001242c]
push 4
lea edx, [esp + 0x18]
push edx
push 6
push eax
call esi
mov edx, dword [0x1001242c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x1001242c]
push 4
lea eax, [esp + 0x18]
push eax
push 7
push ecx
call esi
mov eax, dword [0x1001242c]
push 4
lea edx, [esp + 0x18]
push edx
push ebx
push eax
call esi
mov edx, dword [0x1001242c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x1001242c]
push 4
lea eax, [esp + 0x18]
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 0x10003dda
push 0x7ff
lea eax, [esp + 0x321]
push 0
push eax
mov byte [esp + 0x328], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0xb26]
push edx
mov word [esp + 0xb28], cx
call sub.MSVCR90.dll_memset
mov edx, dword [0x1001242c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x800
lea ecx, [esp + 0x324]
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10003dee
mov edx, dword [0x1001242c]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x124]
push ecx
push 0x13
push edx
mov dword [esp + 0x38], 0x200
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x10003c53
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b30], 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 + 0x2b30], 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 0x10003e1e
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 ebx, 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 + 0x2b34], 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 0x10003c9e
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
mov ecx, dword [esp + 0x20]
push ecx
call esi
cmp ebx, 0xc8
jne 0x10003db7
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0xb20]
push edx
push eax
lea eax, [esp + 0x328]
push eax
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x1000d764
call edi
lea ecx, [esp + 0xb1c]
push ecx
call edi
lea edx, [esp + 0x7c]
push edx
call fcn.100050f0
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb20]
mov byte [esp + 0x2b34], 4
call fcn.10005260
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x2320]
mov ecx, str.protocol
call fcn.10005550
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x1b20]
mov ecx, str.domain
call fcn.10005550
lea eax, [esp + 0x231c]
push eax
mov ecx, 0x1001247c
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 ecx, [esp + 0x1b1c]
push ecx
mov ecx, 0x1001247c
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 [0x10012494], 8
mov eax, dword [0x10012480]
jae 0x10003d8e
mov eax, 0x10012480
push eax
call edi
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x2b34], 3
call fcn.10005200
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b30], 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 0x10003df3
lea eax, [esp + 0x11c]
push eax
call edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x13], 0
mov byte [esp + 0x2b30], 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 0x10003df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x10003dee
push str.Timeout
call edi
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b30], 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 + 0x2b30], 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 + 0x13]
mov ecx, dword [esp + 0x2b28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b10]
xor ecx, esp
call fcn.1000b132
mov esp, ebp
pop ebp
ret