Function at 0x4035f0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x20b8
call fcn.00408f60
mov eax, dword [0x40f1f4]
xor eax, esp
mov dword [esp + 0x20b4], eax
mov eax, dword [esp + 0x20c0]
push ebx
mov ebx, dword [esp + 0x20d0]
push ebp
push esi
push edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20d4]
push str.StreamMinPort
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebx
call fcn.00408060
mov edi, dword [eax + 0x10]
push str.StreamMaxPort
push ebx
mov dword [esp + 0x20], edi
call fcn.00408060
mov esi, dword [eax + 0x10]
sub esi, edi
push esi
call sub.libav.dll_Ordinal_44218
lea ecx, [esi + 1]
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x14], 0
xor edi, edi
mov dword [esp + 0x18], ecx
lea eax, [ebp - 1]
xor edx, edx
div ecx
push 0x10
lea eax, [esp + 0x78]
push 0
push eax
mov esi, 2
mov ebp, edx
call sub.MSVCR110.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
add eax, ebp
push eax
mov word [esp + 0x78], si
call dword [sym.imp.libav.dll_Ordinal_44317]
push 0
mov word [esp + 0x7a], ax
call fcn.00407f70
push 0
push 1
push esi
mov dword [esp + 0x88], eax
call sub.libav.dll_Ordinal_44321
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x4036e1
push 0x10
lea eax, [esp + 0x78]
push eax
push esi
call sub.libav.dll_Ordinal_44324
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4036f3
push esi
call sub.libav.dll_Ordinal_44331
add esp, 4
inc edi
cmp edi, 0x3e8
jae 0x4036fb
mov ecx, dword [esp + 0x18]
jmp 0x40366b
mov dword [esp + 0x14], 1
push str.ReadTimeout
push ebx
call fcn.00408060
mov eax, dword [eax + 0x10]
push str.CommandReadTimeout
push ebx
mov dword [esp + 0x28], eax
call fcn.00408060
mov edi, dword [eax + 0x10]
add esp, 0x10
cmp word [esp + 0x14], 0
jne 0x403748
movsx eax, byte [esp + 0x20e0]
push eax
push str.Cant_find_any_free_port._ERROR_c
push dword [esp + 0x20d4]
call fcn.00408810
add esp, 0xc
jmp 0x403bc0
push 1
push esi
call sub.libav.dll_Ordinal_44325
add esp, 8
cmp eax, 0xffffffff
jne 0x403766
push esi
call sub.libav.dll_Ordinal_44331
add esp, 4
jmp 0x403bc0
movsx ebx, byte [esp + 0x20e0]
mov eax, dword [esp + 0x10]
push ebx
add eax, ebp
mov ebp, dword [esp + 0x20d0]
push eax
push str.PORT__u_c
push ebp
mov dword [esp + 0x24], ebx
call fcn.00408810
add esp, 0x10
test eax, eax
jle 0x403758
push 0
push edi
push esi
call fcn.00402b10
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x403b9b
cmp ecx, 0xffffffff
je 0x403b9b
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x88]
push eax
push esi
mov dword [esp + 0x44], 0x10
call sub.libav.dll_Ordinal_44326
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
jne 0x4037f5
push esi
call sub.libav.dll_Ordinal_44331
push ebx
push str.accept___ERROR_c
push ebp
call fcn.00408810
add esp, 0x10
jmp 0x403bc0
push 0x20
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x90]
push eax
movzx eax, word [esp + 0x90]
push eax
mov byte [esp + 0xb4], 0
call sub.libav.dll_Ordinal_44335
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push str.TemporaryDirectory
push dword [esp + 0x28]
call fcn.00408060
mov eax, dword [eax + 8]
add esp, 8
push eax
call sub.libav.dll_Ordinal_44204
add esp, 0xc
test eax, eax
je 0x403873
push 2
push esi
call sub.libav.dll_Ordinal_44328
push esi
call sub.libav.dll_Ordinal_44331
push edi
call sub.libav.dll_Ordinal_44331
push ebx
push str.cli_gentempfd___failed._ERROR_c
push ebp
call fcn.00408810
add esp, 0x1c
jmp 0x403bc0
push str.StreamMaxLength
push dword [esp + 0x20]
call fcn.00408060
mov eax, dword [eax + 0x10]
push 0
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
push dword [esp + 0x20]
mov edi, eax
call fcn.00402b10
mov ebp, eax
add esp, 0x14
cmp ebp, 1
jne 0x4038bc
cmp dword [esp + 0x2c], 0
je 0x4038e8
cmp edi, 0x2000
jae 0x4038e8
mov eax, edi
test edi, edi
jne 0x4038ed
mov ebx, dword [esp + 0x14]
cmp ebp, 0xffffffff
je 0x403a29
test ebp, ebp
jne 0x4039b4
mov edi, dword [esp + 0x20cc]
push ebx
push str.read_timeout_ERROR_c
push edi
call fcn.00408810
add esp, 0xc
jmp 0x403a48
mov eax, 0x2000
push 0
push eax
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0x1c]
call sub.libav.dll_Ordinal_44330
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4038b8
push ebx
lea eax, [esp + 0xc8]
push eax
push dword [esp + 0x28]
sub edi, ebx
call fcn.00402c00
add esp, 0xc
cmp eax, ebx
jne 0x403947
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.00402b10
mov ebp, eax
add esp, 0xc
cmp ebp, 1
je 0x4038a3
jmp 0x4038b8
push 2
push esi
call sub.libav.dll_Ordinal_44328
push esi
call sub.libav.dll_Ordinal_44331
push dword [esp + 0x1c]
call sub.libav.dll_Ordinal_44331
push dword [esp + 0x24]
mov edi, dword [esp + 0x20e0]
push str.Temporary_file____write_ERROR_c
push edi
call fcn.00408810
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR110.dll__close]
push str.LeaveTemporaryFiles
push dword [esp + 0x40]
call fcn.00408060
add esp, 0x28
cmp dword [eax + 0x18], 0
jne 0x4039a2
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll__unlink]
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
jmp 0x403bc0
cmp ebp, 1
jne 0x403a41
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.MSVCR110.dll__lseek]
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.004077d0
lea eax, [esp + 0xb8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20f0]
lea eax, [esp + 0x44]
push dword [esp + 0x4c]
xorps xmm0, xmm0
push dword [esp + 0x54]
movlpd qword [esp + 0x68], xmm0
push eax
push dword [esp + 0x48]
call sub.libav.dll_Ordinal_30
push 0
push 0
mov dword [esp + 0x4c], eax
call fcn.004077d0
mov edi, dword [esp + 0x2100]
add esp, 0x34
jmp 0x403a4f
mov edi, dword [esp + 0x20cc]
push ebx
push str.read_poll_ERROR_c
push edi
call fcn.00408810
add esp, 0xc
jmp 0x403a48
mov edi, dword [esp + 0x20cc]
or eax, 0xffffffff
mov dword [esp + 0x18], eax
push dword [esp + 0x20]
call dword [sym.imp.MSVCR110.dll__close]
push str.LeaveTemporaryFiles
push dword [esp + 0x24]
call fcn.00408060
add esp, 0xc
cmp dword [eax + 0x18], 0
jne 0x403a7d
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll__unlink]
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll_free]
push dword [esp + 0x14]
call sub.libav.dll_Ordinal_44331
push esi
call sub.libav.dll_Ordinal_44331
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp esi, 1
jne 0x403b2d
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
je 0x403b01
push str.ExtendedDetectionInfo
push ebp
call fcn.00408060
add esp, 8
cmp dword [eax + 0x18], 0
je 0x403b01
push ebx
push dword [esp + 0x4c]
lea eax, [esp + 0x54]
push dword [esp + 0x4c]
push eax
push dword [esp + 0x38]
push str.stream:__s__s:_llu__FOUND_c
push edi
call fcn.00408810
add esp, 0x1c
push ebp
push dword [esp + 0x2c]
push str.stream
call fcn.00402bb0
add esp, 0xc
mov eax, esi
jmp 0x403bc3
push ebx
push dword [esp + 0x2c]
push str.stream:__s_FOUND_c
push edi
call fcn.00408810
add esp, 0x10
push ebp
push dword [esp + 0x2c]
push str.stream
call fcn.00402bb0
add esp, 0xc
mov eax, esi
jmp 0x403bc3
test esi, esi
je 0x403b53
cmp ebp, 1
jne 0x403b97
push ebx
push esi
call sub.libav.dll_Ordinal_27
add esp, 4
push eax
push str.stream:__s_ERROR_c
push edi
call fcn.00408810
add esp, 0x10
mov eax, esi
jmp 0x403bc3
push ebx
lea eax, [esp + 0x98]
push eax
push edi
mov dword [esp + 0xa0], 0x65727473
mov word [esp + 0xab], 0x63
mov dword [esp + 0xa6], 0x4b4f203a
mov word [esp + 0xa4], 0x6d61
mov byte [esp + 0xaa], 0x25
call fcn.00408810
add esp, 0xc
mov eax, esi
jmp 0x403bc3
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 ebp
call fcn.00408810
push esi
call sub.libav.dll_Ordinal_44331
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0x20c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408f44
add esp, 0x20b8
ret