Function at 0x100016f0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x9e
mov dword [ebp - 4], ecx
call fcn.10007896
mov esi, eax
add esp, 4
test esi, esi
je 0x1000171f
push 0x4f
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:68.0__Gecko_20100101_Firefox_68.0
push esi
call fcn.10005796
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000172d
mov ebx, 0x1001aaa0
jmp 0x1000175f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001732
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
add eax, eax
push eax
call fcn.10007896
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000175f
push dword [ebp + 8]
push edi
push ebx
call fcn.10005796
add esp, 0xc
push 0
push 0
push 0
push 0
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x1000179e
push 0x1001aaa4
or esi, 0xffffffff
call fcn.100086a2
add esp, 4
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100017ac
mov edi, 0x1001aaa0
jmp 0x100017e1
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100017b1
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
add eax, eax
push eax
call fcn.10007896
mov edi, eax
add esp, 4
test edi, edi
je 0x100017e1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push ecx
push edi
call fcn.10005796
add esp, 0xc
push 0
push 0x1bb
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1000181d
push 0x1001aaa4
or edi, 0xffffffff
call fcn.100086a2
add esp, 4
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800000
push 0
push 0
push 0
push ebx
push 0x1001aaa8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x10001866
push 0x1001aaa4
or ebx, 0xffffffff
call fcn.100086a2
add esp, 4
mov edi, eax
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp + 8]
call esi
mov edx, ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x3300
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10001893
push 0x1001aaa4
call fcn.100086a2
add esp, 4
push esi
jmp 0x10001995
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10001880
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10001880
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20000013
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10001880
mov edi, 0xfa000
mov dword [ebp - 0xc], 0
push edi
call fcn.10007896
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10001880
xor esi, esi
lea eax, [esi + 1]
cmp eax, edi
jbe 0x1000190f
add edi, edi
push edi
push ecx
call fcn.10005b0f
mov ecx, eax
add esp, 8
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10001985
lea eax, [ebp - 0xc]
push eax
mov eax, edi
sub eax, esi
dec eax
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10001979
mov eax, dword [ebp - 0xc]
add esi, eax
test eax, eax
je 0x10001936
mov ecx, dword [ebp - 4]
jmp 0x100018f3
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x1000194f
push 0x1001aaa4
jmp 0x10001950
push eax
call fcn.100086a2
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
mov edi, eax
push dword [ebp - 8]
call esi
push dword [ebp + 8]
call esi
push ebx
call esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call fcn.10007784
add esp, 4
push 0x1001aaa4
call fcn.100086a2
add esp, 4
push dword [ebp - 8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
call esi
push dword [ebp + 8]
call esi
push ebx
call esi
mov eax, edi
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret