Function at 0x10049750
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
mov eax, dword [0x10264190]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x888], ecx
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x82c], 0
push 0x10214eb2
mov ecx, dword [ebp + 0x18]
call fcn.10018af0
cmp dword [ebp + 0x14], 0
je 0x100497ba
mov dword [ebp - 0x840], str.Https_connect
jmp 0x100497c4
mov dword [ebp - 0x840], str.Http_connect
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x100498a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x808], eax
mov byte [ebp - 0x404], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x403]
push ecx
call fcn.10195c90
add esp, 0xc
mov dword [ebp - 0x818], 0x200
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::HTTPGetUSBListWinNet__:Line_748
push 0
push 3
lea edx, [ebp - 0x8ac]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x884], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x880], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x87c], eax
mov ecx, dword [ebp - 0x808]
push ecx
lea edx, [ebp - 0x404]
push edx
push str._tInternetOpen_error:__s._lasterror_d__n
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x884]
mov dword [eax], ecx
mov edx, dword [ebp - 0x880]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x87c]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
jmp 0x10049d3c
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x10049997
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x808], eax
mov byte [ebp - 0x804], 0
push 0x1ff
push 0
lea edx, [ebp - 0x803]
push edx
call fcn.10195c90
add esp, 0xc
mov dword [ebp - 0x81c], 0x200
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::HTTPGetUSBListWinNet__:Line_768
push 0
push 3
lea eax, [ebp - 0x8b8]
push eax
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x850], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x84c], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x808]
push ecx
lea edx, [ebp - 0x804]
push edx
push str._tInternetConnect_error:__s._lasterror_d__n
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x850]
mov dword [eax], ecx
mov edx, dword [ebp - 0x84c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x848]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
jmp 0x10049d3c
mov dword [ebp - 0x844], VariantClear
cmp dword [ebp + 0x14], 0
je 0x100499b1
mov dword [ebp - 0x844], 0x80801000
push 0
mov edx, dword [ebp - 0x844]
push edx
push 0
push 0
push str.HTTP_1.1
mov eax, dword [ebp + 0xc]
push eax
push 0x1022945c
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x10049aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x808], eax
mov byte [ebp - 0x604], 0
push 0x1ff
push 0
lea edx, [ebp - 0x603]
push edx
call fcn.10195c90
add esp, 0xc
mov dword [ebp - 0x824], 0x200
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::HTTPGetUSBListWinNet__:Line_792
push 0
push 3
lea eax, [ebp - 0x8a0]
push eax
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x868], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x864], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x808]
push ecx
lea edx, [ebp - 0x604]
push edx
push str._tHttpOpenRequestA_error:__s._lasterror_d__n
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x868]
mov dword [eax], ecx
mov edx, dword [ebp - 0x864]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x860]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
jmp 0x10049d3c
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x82c]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
je 0x10049cc1
push 0
push 0
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp - 0x82c]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10049cbf
xor edx, edx
mov eax, dword [ebp - 0x828]
add eax, 1
setb dl
neg edx
or edx, eax
push edx
call fcn.10193815
add esp, 4
mov dword [ebp - 0x830], eax
mov ecx, dword [ebp - 0x828]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x830]
push edx
call fcn.10195c90
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp - 0x828]
push ecx
mov edx, dword [ebp - 0x830]
push edx
mov eax, dword [ebp - 0x82c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jne 0x10049c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x808], eax
mov byte [ebp - 0x204], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x203]
push ecx
call fcn.10195c90
add esp, 0xc
mov dword [ebp - 0x814], 0x200
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::HTTPGetUSBListWinNet__:Line_816
push 0
push 3
lea edx, [ebp - 0x894]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x85c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x858], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 0x808]
push ecx
lea edx, [ebp - 0x204]
push edx
push str._tInternetReadFile_error:__s._lasterror_d__n
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x85c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x858]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x854]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
mov edx, dword [ebp - 0x830]
push edx
call fcn.101938a7
add esp, 4
jmp 0x10049cbf
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.10018b30
mov ecx, dword [ebp - 0x830]
push ecx
call fcn.101938a7
add esp, 4
mov dword [ebp - 0x83c], 1
cmp dword [ebp - 0x810], 0
jne 0x10049cba
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::HTTPGetUSBListWinNet__:Line_826
push 0
push 1
lea edx, [ebp - 0x8c4]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x874], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x870], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x86c], eax
push str._tHttp_Req_Sucess._n
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x874]
mov dword [ecx], edx
mov eax, dword [ebp - 0x870]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x86c]
mov dword [ecx + 8], edx
call fcn.10008d70
add esp, 0x10
jmp 0x10049cbf
jmp 0x10049ad0
jmp 0x10049d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x808], eax
cmp dword [ebp + 0x14], 0
je 0x10049d34
cmp dword [ebp - 0x808], 0x2f0d
jne 0x10049d34
mov dword [ebp - 0x820], 4
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 0x1f
mov edx, dword [ebp - 0x82c]
push edx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [ebp - 0x80c]
or eax, 0x100
mov dword [ebp - 0x80c], eax
push 4
lea ecx, [ebp - 0x80c]
push ecx
push 0x1f
mov edx, dword [ebp - 0x82c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
jmp 0x10049aa8
xor eax, eax
jne 0x1004979b
cmp dword [ebp - 0x82c], 0
je 0x10049d52
mov ecx, dword [ebp - 0x82c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x834], 0
je 0x10049d68
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x838], 0
je 0x10049d7e
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019110d
mov esp, ebp
pop ebp
ret 0x14