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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a908b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x60], 8
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
lea eax, [esi + 0x4c]
mov dword [ebp - 0xb4], ecx
mov dword [eax + 0x10], 0
jb 0x1001803b
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xb0], 0x2f
sub esp, 8
mov word [eax], dx
lea eax, [ebp - 0xb0]
push eax
call fcn.100186c0
mov ecx, dword [ebp - 0xb4]
cmp dword [ecx + 0x14], 8
jb 0x10018067
mov ecx, dword [ecx]
inc eax
push eax
push ecx
push ecx
lea ecx, [esi + 0x4c]
call fcn.10018560
lea ecx, [esi + 0x34]
cmp ecx, edi
je 0x10018084
push 0xffffffffffffffff
push 0
push edi
call fcn.10017080
lea ecx, [esi + 0x1c]
cmp ecx, ebx
je 0x10018095
push 0xffffffffffffffff
push 0
push ebx
call fcn.10017080
cmp dword [edi + 0x14], 8
jb 0x1001809d
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0xac]
push edi
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xac], eax
test ecx, ecx
je 0x100180d2
push ecx
call edi
mov eax, dword [ebp - 0xac]
mov dword [esi + 4], eax
test eax, eax
jne 0x100180e3
call fcn.10015440
jmp 0x10018207
cmp dword [ebx + 0x14], 8
jb 0x100180eb
mov ebx, dword [ebx]
push 0
push 0x84000000
push 0
push 0
push 0
push ebx
push 0x100b6e18
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esi + 8]
mov ebx, eax
test ecx, ecx
je 0x10018111
push ecx
call edi
mov dword [esi + 8], ebx
test ebx, ebx
je 0x100180d9
lea eax, [esi + 0x4c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.100188e0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.100189a0
mov eax, dword [ebp - 0x94]
add esp, 4
cmp eax, 8
jb 0x10018156
inc eax
push eax
push dword [ebp - 0xa8]
call fcn.10017a90
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0x20000000
cmovae eax, dword [ebp - 0x90]
push 0xffffffffffffffff
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x100181c5
push 0
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x100181c5
push 0x64
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xac]
push eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100181e5
call fcn.10015440
mov ecx, dword [ebp - 0x7c]
mov esi, eax
cmp ecx, 8
jb 0x100181e1
inc ecx
push ecx
push dword [ebp - 0x90]
call fcn.10017a90
mov eax, esi
jmp 0x10018207
lea ecx, [ebp - 0x90]
call fcn.10017b60
mov ecx, esi
call fcn.10017dc0
test eax, eax
js 0x10018207
cmp eax, 1
je 0x10018207
mov ecx, esi
call fcn.10017eb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x10