Function at 0x4031a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20c4
call fcn.00408350
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov edx, str.StreamMinPort
mov dword [ebp - 8], ebx
call fcn.00406f1e
mov edi, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, str.StreamMaxPort
mov dword [ebp - 4], edi
call fcn.00406f1e
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 - 0x14], 0
pop ecx
lea ecx, [esi + 1]
mov dword [ebp - 0x20], ecx
or esi, 0xffffffff
dec eax
xor edx, edx
div ecx
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 4]
mov ecx, edx
add eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.libav.dll_Ordinal_44317]
mov word [ebp - 0x52], ax
xor edi, edi
call fcn.00406ecf
test eax, eax
je 0x40323d
push 0xad1c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40323d
push edi
call eax
mov edi, eax
push 0
push 1
push 2
pop eax
push eax
mov dword [ebp - 0x50], edi
call dword [sym.imp.libav.dll_Ordinal_44321]
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x403273
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.libav.dll_Ordinal_44324]
add esp, 0xc
cmp eax, esi
jne 0x40328c
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x3e8
jae 0x403293
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
jmp 0x4031f3
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0x10]
mov edx, 0x40ea84
call fcn.00406f1e
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, 0x40ea90
mov dword [ebp - 0x20], eax
call fcn.00406f1e
cmp word [ebp - 0x10], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
jne 0x4032d8
movsx eax, byte [ebp + 0x14]
push eax
push str.Cant_find_any_free_port._ERROR_c
push ebx
call fcn.004073f5
add esp, 0xc
jmp 0x4036cf
push 1
push edi
call dword [sym.imp.libav.dll_Ordinal_44325]
pop ecx
pop ecx
cmp eax, esi
jne 0x4032f4
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
jmp 0x4036cf
movsx ebx, byte [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push ebx
add eax, ecx
push eax
push str.PORT__u_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0x10
test eax, eax
jle 0x4032e7
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004024f6
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4036a7
cmp ecx, esi
je 0x4036a7
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
mov dword [ebp - 0x44], 0x10
call dword [sym.imp.libav.dll_Ordinal_44326]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x40336a
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
pop ecx
push ebx
push str.accept___ERROR_c
push dword [ebp - 8]
jmp 0x4032cb
push 0x20
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x64]
push eax
mov byte [ebp - 0xc0], 0
call dword [sym.imp.libav.dll_Ordinal_44335]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov edx, 0x40eb0c
call fcn.00406f1e
push dword [eax + 8]
call dword [sym.imp.libav.dll_Ordinal_44204]
add esp, 0xc
test eax, eax
je 0x4033d6
push 2
pop eax
push eax
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 - 0xc]
call edi
pop ecx
push ebx
push str.cli_gentempfd___failed._ERROR_c
jmp 0x403362
mov ecx, dword [ebp + 0x10]
mov edx, 0x40eb40
call fcn.00406f1e
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], eax
jmp 0x403493
cmp dword [ebp - 0x40], 0
je 0x403402
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x2000
jb 0x403407
mov ecx, 0x2000
test ecx, ecx
je 0x403514
push 0
push ecx
lea eax, [ebp - 0x20c0]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.libav.dll_Ordinal_44330]
add esp, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x403511
mov ecx, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
lea edx, [ebp - 0x20c0]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
push eax
push edx
push ecx
call dword [sym.imp.MSVCR110.dll__write]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x40346a
call dword [sym.imp.MSVCR110.dll__errno]
cmp dword [eax], 4
jne 0x403483
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
jmp 0x40347a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
sub eax, ecx
add edx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
test eax, eax
je 0x40348a
mov ecx, dword [ebp - 0x3c]
jmp 0x403445
mov eax, dword [ebp - 0x1c]
mov ecx, esi
jmp 0x40348f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
cmp ecx, eax
jne 0x4034ae
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004024f6
mov dword [ebp - 4], eax
pop ecx
cmp eax, 1
je 0x4033f1
jmp 0x403514
push 2
pop eax
push eax
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 - 0xc]
call edi
pop ecx
push ebx
push str.Temporary_file____write_ERROR_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
mov ecx, dword [ebp + 0x10]
mov edx, 0x40eb70
call fcn.00406f1e
cmp dword [eax + 0x18], 0
jne 0x403503
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x4032ee
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40352f
test eax, eax
jne 0x403543
push ebx
push str.read_timeout_ERROR_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0xc
jmp 0x4035a6
push ebx
push str.read_poll_ERROR_c
push dword [ebp - 8]
call fcn.004073f5
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, 1
jne 0x4035a6
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0xc0]
call fcn.004066c3
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push dword [ebp + 8]
xorps xmm0, xmm0
push 0
push eax
push dword [ebp - 0x18]
movlpd qword [ebp - 0x98], xmm0
call dword [sym.imp.libav.dll_Ordinal_30]
add esp, 0x18
xor edx, edx
xor ecx, ecx
mov esi, eax
call fcn.004066c3
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
mov ecx, dword [ebp + 0x10]
mov edx, str.LeaveTemporaryFiles
call fcn.00406f1e
cmp dword [eax + 0x18], 0
jne 0x4035cd
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 0xc]
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 0x403659
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x403638
mov ecx, dword [ebp + 0x10]
mov edx, str.ExtendedDetectionInfo
call fcn.00406f1e
cmp dword [eax + 0x18], 0
je 0x403638
push ebx
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push dword [ebp - 0x98]
push eax
push dword [ebp - 0x38]
push str.stream:__s__s:_llu__FOUND_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0x1c
jmp 0x40364c
push ebx
push dword [ebp - 0x38]
push str.stream:__s_FOUND_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0x10
push dword [ebp + 0x10]
call fcn.004024cb
jmp 0x4032ee
test esi, esi
je 0x40367f
cmp dword [ebp - 4], 1
jne 0x4036cf
push ebx
push esi
call dword [sym.imp.libav.dll_Ordinal_27]
pop ecx
push eax
push str.stream:__s_ERROR_c
push dword [ebp - 8]
call fcn.004073f5
add esp, 0x10
jmp 0x4036cf
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x65727473
mov word [ebp - 0x29], 0x63
mov dword [ebp - 0x2e], 0x4b4f203a
mov word [ebp - 0x30], 0x6d61
mov byte [ebp - 0x2a], 0x25
push eax
jmp 0x403362
mov edx, str.poll
test ecx, ecx
push ebx
mov eax, str.timeout
cmovne eax, edx
push eax
push str.Accept__s._ERROR_c
push dword [ebp - 8]
call fcn.004073f5
push edi
call dword [sym.imp.libav.dll_Ordinal_44331]
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret