Function at 0x402fc7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20bc
call fcn.00408bf0
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edx, str.StreamMinPort
call fcn.004071e5
mov edi, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, str.StreamMaxPort
mov dword [ebp - 8], edi
call fcn.004071e5
mov esi, dword [eax + 0x10]
sub esi, edi
push esi
call dword [sym.imp.libav.dll_Ordinal_44218]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
pop ecx
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], ecx
or esi, 0xffffffff
dec eax
xor edx, edx
div ecx
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
push 2
pop edi
mov word [ebp - 0x4c], di
mov ecx, edx
add eax, ecx
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.libav.dll_Ordinal_44317]
mov word [ebp - 0x4a], ax
call fcn.00407215
push 0
push 1
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.libav.dll_Ordinal_44321]
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x403079
push 0x10
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.libav.dll_Ordinal_44324]
add esp, 0xc
cmp eax, esi
jne 0x40308f
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x3e8
jae 0x403096
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
jmp 0x403017
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0x10]
mov edx, str.ReadTimeout
call fcn.004071e5
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, str.CommandReadTimeout
mov dword [ebp - 0x1c], eax
call fcn.004071e5
cmp word [ebp - 0x10], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jne 0x4030db
movsx eax, byte [ebp + 0x14]
push eax
push str.Cant_find_any_free_port._ERROR_c
push ebx
call fcn.0040784e
add esp, 0xc
jmp 0x403483
push 1
push edi
call dword [sym.imp.libav.dll_Ordinal_44325]
pop ecx
pop ecx
cmp eax, esi
jne 0x4030f7
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
jmp 0x403483
movsx eax, byte [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push str.PORT__u_c
push ebx
call fcn.0040784e
add esp, 0x10
test eax, eax
jle 0x4030ea
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, edi
call fcn.0040235e
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40345b
cmp ecx, esi
je 0x40345b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.libav.dll_Ordinal_44326]
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40316d
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
push dword [ebp - 4]
push str.accept___ERROR_c
jmp 0x4030cd
push 0x20
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x5c]
push eax
mov byte [ebp - 0xb8], 0
call dword [sym.imp.libav.dll_Ordinal_44335]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov edx, str.TemporaryDirectory
call fcn.004071e5
push dword [eax + 8]
call dword [sym.imp.libav.dll_Ordinal_44204]
add esp, 0xc
test eax, eax
je 0x4031dc
push 2
push edi
call dword [sym.imp.libav.dll_Ordinal_44328]
push edi
mov edi, dword [sym.imp.libav.dll_Ordinal_44331]
call edi
add esp, 0xc
push dword [ebp - 8]
call edi
pop ecx
push dword [ebp - 4]
push str.cli_gentempfd___failed._ERROR_c
jmp 0x4030cd
mov ecx, dword [ebp + 0x10]
mov edx, str.StreamMaxLength
call fcn.004071e5
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
jmp 0x40324b
cmp dword [ebp - 0x18], 0
je 0x403205
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x2000
jb 0x40320a
mov ecx, 0x2000
test ecx, ecx
je 0x4032c6
push 0
push ecx
lea eax, [ebp - 0x20b8]
push eax
push dword [ebp - 8]
call dword [sym.imp.libav.dll_Ordinal_44330]
add esp, 0x10
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x4032c3
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
push eax
lea edx, [ebp - 0x20b8]
call fcn.004022dd
pop ecx
cmp eax, dword [ebp - 0x3c]
jne 0x403262
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040235e
mov dword [ebp - 0x10], eax
pop ecx
cmp eax, 1
je 0x4031f4
jmp 0x4032c6
push 2
push edi
call dword [sym.imp.libav.dll_Ordinal_44328]
push edi
mov edi, dword [sym.imp.libav.dll_Ordinal_44331]
call edi
add esp, 0xc
push dword [ebp - 8]
call edi
pop ecx
push dword [ebp - 4]
push str.Temporary_file____write_ERROR_c
push ebx
call fcn.0040784e
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
mov ecx, dword [ebp + 0x10]
mov edx, str.LeaveTemporaryFiles
call fcn.004071e5
cmp dword [eax + 0x18], 0
jne 0x4032b5
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x4030f1
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4032e1
test eax, eax
jne 0x4032f5
push dword [ebp - 4]
push str.read_timeout_ERROR_c
push ebx
call fcn.0040784e
add esp, 0xc
jmp 0x403358
push dword [ebp - 4]
push str.read_poll_ERROR_c
push ebx
call fcn.0040784e
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, 1
jne 0x403358
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.00406418
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push dword [ebp + 8]
xorps xmm0, xmm0
push 0
push eax
push dword [ebp - 0x14]
movlpd qword [ebp - 0x90], xmm0
call dword [sym.imp.libav.dll_Ordinal_30]
add esp, 0x18
xor edx, edx
xor ecx, ecx
mov esi, eax
call fcn.00406418
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
mov ecx, dword [ebp + 0x10]
mov edx, str.LeaveTemporaryFiles
call fcn.004071e5
cmp dword [eax + 0x18], 0
jne 0x40337f
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
cmp esi, 1
jne 0x40340b
mov eax, dword [ebp - 0x90]
or eax, dword [ebp - 0x8c]
je 0x4033ea
mov ecx, dword [ebp + 0x10]
mov edx, str.ExtendedDetectionInfo
call fcn.004071e5
cmp dword [eax + 0x18], 0
je 0x4033ea
push dword [ebp - 4]
lea eax, [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push eax
push dword [ebp - 0x34]
push str.stream:__s__s:_llu__FOUND_c
push ebx
call fcn.0040784e
add esp, 0x1c
jmp 0x4033fe
push dword [ebp - 4]
push dword [ebp - 0x34]
push str.stream:__s_FOUND_c
push ebx
call fcn.0040784e
add esp, 0x10
push dword [ebp + 0x10]
call fcn.004022b2
jmp 0x4030f1
test esi, esi
je 0x403431
cmp dword [ebp - 0x10], 1
jne 0x403483
push dword [ebp - 4]
push esi
call dword [sym.imp.libav.dll_Ordinal_27]
pop ecx
push eax
push str.stream:__s_ERROR_c
push ebx
call fcn.0040784e
add esp, 0x10
jmp 0x403483
push dword [ebp - 4]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x65727473
mov word [ebp - 0x25], 0x63
mov dword [ebp - 0x2a], 0x4b4f203a
mov word [ebp - 0x2c], 0x6d61
mov byte [ebp - 0x26], 0x25
push eax
jmp 0x4030cd
push dword [ebp - 4]
mov edx, str.poll
test ecx, ecx
mov eax, str.timeout
cmovne eax, edx
push eax
push str.Accept__s._ERROR_c
push ebx
call fcn.0040784e
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret