Function at 0x101a8d10
Capabilities:
Query environment variable
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x790
mov eax, dword [0x10266634]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x76c], eax
mov eax, dword [ebp + 0x14]
push 0x32
mov dword [ebp - 0x770], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x75c], ebx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x764], 0
push 0x3f
push ebx
movups xmmword [ebp - 0x790], xmm0
movups xmmword [ebp - 0x780], xmm0
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 0x14
test edi, edi
je 0x101a8e80
cmp dword [esi], 0
jne 0x101a8db5
push edi
push str.cafile
lea eax, [ebp - 0x758]
push 0x400
push eax
call sub.avutil_56.dll_av_find_info_tag
add esp, 0x10
test eax, eax
je 0x101a8db5
lea eax, [ebp - 0x758]
push eax
call sub.avutil_56.dll_av_strdup
add esp, 4
mov dword [esi], eax
cmp dword [esi + 4], 0
jne 0x101a8e14
push edi
push str.verify
lea eax, [ebp - 0x758]
push 0x400
push eax
call sub.avutil_56.dll_av_find_info_tag
add esp, 0x10
test eax, eax
je 0x101a8e14
push 0xa
lea eax, [ebp - 0x760]
mov dword [ebp - 0x760], 0
push eax
lea eax, [ebp - 0x758]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov dword [esi + 4], eax
add esp, 0xc
lea eax, [ebp - 0x758]
cmp eax, dword [ebp - 0x760]
jne 0x101a8e14
mov dword [esi + 4], 1
cmp dword [esi + 8], 0
jne 0x101a8e4a
push edi
push str.cert
lea eax, [ebp - 0x758]
push 0x400
push eax
call sub.avutil_56.dll_av_find_info_tag
add esp, 0x10
test eax, eax
je 0x101a8e4a
lea eax, [ebp - 0x758]
push eax
call sub.avutil_56.dll_av_strdup
add esp, 4
mov dword [esi + 8], eax
cmp dword [esi + 0xc], 0
jne 0x101a8e80
push edi
push 0x101f6c4c
lea eax, [ebp - 0x758]
push 0x400
push eax
call sub.avutil_56.dll_av_find_info_tag
add esp, 0x10
test eax, eax
je 0x101a8e80
lea eax, [ebp - 0x758]
push eax
call sub.avutil_56.dll_av_strdup
add esp, 4
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], 0
je 0x101a8e99
push str._listen1
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.10001794
add esp, 0xc
mov edi, dword [ebp - 0x75c]
lea eax, [ebp - 0x768]
push edi
push 0
push 0
push eax
push 0xc8
lea ebx, [esi + 0x1c]
push ebx
push 0
push 0
push 0
push 0
call sym.avformat_58.dll_av_url_split
push 0x3f
push edi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x101a8ed7
lea edi, [ebp - 0x38]
jmp 0x101a8ef6
push edi
push str.listen
lea eax, [ebp - 0x38]
push 0x32
push eax
call sub.avutil_56.dll_av_find_info_tag
add esp, 0x10
test eax, eax
je 0x101a8ef6
mov dword [esi + 0x10], 1
push edi
push 0x101eea18
push dword [ebp - 0x768]
lea eax, [ebp - 0x100]
push ebx
push 0
push 0x102015c0
push 0xc8
push eax
call fcn.10001983
add esp, 0x20
mov dword [ebp - 0x790], 4
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x790]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x101a8f59
push dword [ebp - 0x764]
mov dword [esi + 0xe4], 1
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esi + 0x14], 0
jne 0x101a8f85
push ebx
call sub.avutil_56.dll_av_strdup
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
jne 0x101a8f85
pop edi
pop esi
mov eax, 0xfffffff4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c9
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x18]
mov eax, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test edi, edi
jne 0x101a8fa2
push str.http_proxy
call eax
mov edi, eax
add esp, 4
mov eax, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push ebx
push str.no_proxy
call eax
add esp, 4
push eax
call fcn.10001645
add esp, 8
test eax, eax
jne 0x101a9064
test edi, edi
je 0x101a9064
push eax
push str.http:__
push edi
call sub.avutil_56.dll_av_strstart
add esp, 0xc
test eax, eax
je 0x101a9064
push edi
push 0
push 0
lea eax, [ebp - 0x75c]
push eax
push 0xc8
lea eax, [ebp - 0x290]
push eax
push 0xc8
lea eax, [ebp - 0x358]
push eax
push 0
push 0
call sym.avformat_58.dll_av_url_split
push 0
push dword [ebp - 0x768]
lea eax, [ebp - 0x1c8]
push ebx
push 0
push 0
push 0xc8
push eax
call fcn.10001983
add esp, 0x44
lea eax, [ebp - 0x1c8]
push eax
push 0x1020acb4
push dword [ebp - 0x75c]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x358]
push eax
push str.httpproxy
lea eax, [ebp - 0x100]
push 0xc8
push eax
call fcn.10001983
add esp, 0x20
mov eax, dword [ebp - 0x76c]
push eax
push dword [eax + 0x34]
push dword [eax + 0x30]
add eax, 0x20
push dword [ebp - 0x770]
push eax
push 3
lea eax, [ebp - 0x100]
push eax
lea eax, [esi + 0xe8]
push eax
call fcn.10001ab9
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100014c9
mov esp, ebp
pop ebp
ret