Function at 0x402e8f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x20a0
call fcn.0040ca70
push ebx
push ebp
push esi
push edi
push str.StreamMinPort
push dword [esp + 0x20c8]
call sub.libav.dll_Ordinal_44283
mov ebx, dword [eax + 0x10]
push str.StreamMaxPort
push dword [esp + 0x20d0]
mov dword [esp + 0x38], ebx
call sub.libav.dll_Ordinal_44283
mov esi, dword [eax + 0x10]
sub esi, ebx
push esi
call sub.libav.dll_Ordinal_44218
and dword [esp + 0x28], 0
and dword [esp + 0x2c], 0
lea ecx, [esi + 1]
mov esi, dword [esp + 0x3c]
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x10], ecx
or ebx, 0xffffffff
lea eax, [ebp - 1]
xor edx, edx
div ecx
xor eax, eax
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop edi
mov word [esp + 0x58], di
mov ebp, edx
lea eax, [esi + ebp]
push eax
call dword [sym.imp.libav.dll_Ordinal_44317]
push 0
mov word [esp + 0x5e], ax
call dword [sym.imp.libav.dll_Ordinal_44316]
push 0
push 1
push edi
mov dword [esp + 0x68], eax
call sub.libav.dll_Ordinal_44321
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x402f52
push 0x10
lea eax, [esp + 0x5c]
push eax
push edi
call sub.libav.dll_Ordinal_44324
add esp, 0xc
cmp eax, ebx
jne 0x402f68
push edi
call sub.libav.dll_Ordinal_44331
pop ecx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x3e8
jae 0x402f70
mov ecx, dword [esp + 0x10]
jmp 0x402eee
mov dword [esp + 0x14], 1
push str.ReadTimeout
push dword [esp + 0x20c8]
add ebp, esi
call sub.libav.dll_Ordinal_44283
mov eax, dword [eax + 0x10]
push str.CommandReadTimeout
push dword [esp + 0x20d0]
mov dword [esp + 0x38], eax
call sub.libav.dll_Ordinal_44283
mov eax, dword [eax + 0x10]
add esp, 0x10
cmp word [esp + 0x14], 0
mov dword [esp + 0x18], eax
jne 0x402fd9
push str._ScanStream:_Cant_find_any_free_port._n
call fcn.00407a1a
movsx eax, byte [esp + 0x20cc]
push eax
push str.Cant_find_any_free_port._ERROR_c
push dword [esp + 0x20c0]
call fcn.00407b80
add esp, 0x10
jmp 0x40351a
push 1
push edi
call sub.libav.dll_Ordinal_44325
pop ecx
pop ecx
cmp eax, ebx
jne 0x403006
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
push str._ScanStream:_listen___error_on_socket._Error_returned_is__s._n
call fcn.00407a1a
push edi
call sub.libav.dll_Ordinal_44331
jmp 0x402fd1
movsx esi, byte [esp + 0x20c8]
push esi
push ebp
push str.PORT__u_c
push dword [esp + 0x20c0]
mov dword [esp + 0x3c], esi
call fcn.00407b80
add esp, 0x10
test eax, eax
jg 0x403043
push str._ScanStream:_error_transmitting_port._n
call fcn.00407a1a
push edi
call sub.libav.dll_Ordinal_44331
pop ecx
pop ecx
jmp 0x40351a
push 0
push dword [esp + 0x1c]
push edi
call fcn.00402414
add esp, 0xc
test eax, eax
je 0x4034e0
cmp eax, ebx
je 0x4034e0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa4]
push eax
push edi
mov dword [esp + 0x3c], 0x10
call sub.libav.dll_Ordinal_44326
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4030b3
push edi
call sub.libav.dll_Ordinal_44331
push esi
push str.accept___ERROR_c
push dword [esp + 0x20c0]
call fcn.00407b80
push ebp
push str._ScanStream__u:_accept___failed._n
call fcn.00407a1a
add esp, 0x18
jmp 0x40351a
push 0x20
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xac]
push eax
movzx eax, word [esp + 0xac]
push eax
mov byte [esp + 0x48], 0
call sub.libav.dll_Ordinal_44335
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push ebp
push eax
push str.Accepted_connection_from__s_on_port__u__fd__d_n
call fcn.00407a1a
add esp, 0x20
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push str.TemporaryDirectory
push dword [esp + 0x20d0]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
push dword [eax + 8]
call sub.libav.dll_Ordinal_44204
add esp, 0xc
test eax, eax
je 0x403159
push 2
push edi
call sub.libav.dll_Ordinal_44328
push edi
call sub.libav.dll_Ordinal_44331
push dword [esp + 0x1c]
call sub.libav.dll_Ordinal_44331
push esi
push str.cli_gentempfd___failed._ERROR_c
push dword [esp + 0x20cc]
call fcn.00407b80
push ebp
lea eax, [esp + 0x58]
push eax
push str._ScanStream__s__u_:_Cant_create_temporary_file._n
call fcn.00407a1a
add esp, 0x28
jmp 0x40351a
push str.StreamMaxLength
push dword [esp + 0x20c8]
call sub.libav.dll_Ordinal_44283
mov eax, dword [eax + 0x10]
push 0
push dword [esp + 0x34]
mov dword [esp + 0x44], eax
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
call fcn.00402414
add esp, 0x14
jmp 0x4031fd
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40319c
mov eax, dword [esp + 0x18]
cmp eax, 0x2000
jb 0x4031a1
mov eax, 0x2000
test eax, eax
je 0x40327f
push 0
push eax
lea eax, [esp + 0xb8]
push eax
push dword [esp + 0x1c]
call sub.libav.dll_Ordinal_44330
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x403293
sub dword [esp + 0x18], eax
push eax
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x28]
call fcn.00402531
add esp, 0xc
cmp eax, dword [esp + 0x2c]
jne 0x40320b
push 0
push dword [esp + 0x2c]
push dword [esp + 0x18]
call fcn.00402414
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 1
je 0x403189
jmp 0x403297
push 2
push edi
call sub.libav.dll_Ordinal_44328
push edi
call sub.libav.dll_Ordinal_44331
push dword [esp + 0x1c]
call sub.libav.dll_Ordinal_44331
push esi
push str.Temporary_file____write_ERROR_c
push dword [esp + 0x20cc]
call fcn.00407b80
push ebp
lea eax, [esp + 0x58]
push eax
push str._ScanStream__s__u_:_Cant_write_to_temporary_file._n
call fcn.00407a1a
push dword [esp + 0x48]
call fcn.00412887
push str.LeaveTemporaryFiles
push dword [esp + 0x20f4]
call sub.libav.dll_Ordinal_44283
add esp, 0x34
cmp dword [eax + 0x18], 0
jne 0x403271
push dword [esp + 0x24]
call fcn.00427640
pop ecx
push dword [esp + 0x24]
call fcn.00408f7e
jmp 0x40303d
push ecx
push ebp
lea eax, [esp + 0x40]
push eax
push str.ScanStream__s__u_:_Size_limit_reached__max:__lu__n
call fcn.00407a1a
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4032c9
test eax, eax
jne 0x4032f2
push esi
push str.read_timeout_ERROR_c
push dword [esp + 0x20bc]
call fcn.00407b80
push ebp
lea eax, [esp + 0x48]
push eax
push str._ScanStream__s__u_:_read_timeout._n
call fcn.00407a1a
add esp, 0x18
jmp 0x403359
push esi
push str.read_poll_ERROR_c
push dword [esp + 0x20bc]
call fcn.00407b80
push ebp
lea eax, [esp + 0x48]
push eax
push str._ScanStream__s__u_:_read_poll_failed._n
call fcn.00407a1a
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp eax, 1
jne 0x403359
xor ebx, ebx
push ebx
push ebx
push dword [esp + 0x28]
call fcn.00427689
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00406ddf
lea eax, [esp + 0x4c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x20d8]
lea eax, [esp + 0x38]
push dword [esp + 0x20d8]
xorps xmm0, xmm0
push dword [esp + 0x20d8]
movlpd qword [esp + 0x94], xmm0
push eax
push dword [esp + 0x48]
call sub.libav.dll_Ordinal_30
push 0
push 0
mov ebx, eax
call fcn.00406ddf
add esp, 0x34
push dword [esp + 0x20]
call fcn.00412887
mov dword [esp], str.LeaveTemporaryFiles
push dword [esp + 0x20c8]
call sub.libav.dll_Ordinal_44283
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
jne 0x403387
push dword [esp + 0x24]
call fcn.00427640
pop ecx
push dword [esp + 0x24]
call fcn.00408f7e
push dword [esp + 0x14]
call sub.libav.dll_Ordinal_44331
push edi
call sub.libav.dll_Ordinal_44331
add esp, 0xc
cmp ebx, 1
jne 0x403467
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x74]
je 0x403423
push str.ExtendedDetectionInfo
push dword [esp + 0x20c8]
call sub.libav.dll_Ordinal_44283
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403423
push esi
push dword [esp + 0x78]
lea eax, [esp + 0x80]
push dword [esp + 0x78]
push eax
push dword [esp + 0x2c]
push str.stream:__s__s:_llu__FOUND_c
push dword [esp + 0x20cc]
call fcn.00407b80
push dword [esp + 0x90]
lea eax, [esp + 0x98]
push dword [esp + 0x90]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x64]
push ebp
push eax
push str.stream__s__u_:__s__s:_llu__FOUND_n
call fcn.00407a1a
add esp, 0x38
jmp 0x403450
push esi
push dword [esp + 0x20]
push str.stream:__s_FOUND_c
push dword [esp + 0x20c0]
call fcn.00407b80
push dword [esp + 0x2c]
lea eax, [esp + 0x4c]
push ebp
push eax
push str.stream__s__u_:__s_FOUND_n
call fcn.00407a1a
add esp, 0x20
push dword [esp + 0x20c4]
push dword [esp + 0x20]
push str.stream
call fcn.0040250f
jmp 0x4034db
test ebx, ebx
je 0x4034ac
cmp dword [esp + 0x14], 1
jne 0x40351a
push esi
push ebx
call sub.libav.dll_Ordinal_27
pop ecx
push eax
push str.stream:__s_ERROR_c
push dword [esp + 0x20c0]
call fcn.00407b80
push ebx
call sub.libav.dll_Ordinal_27
push eax
push ebp
lea eax, [esp + 0x54]
push eax
push str.stream__s__u_:__s_ERROR_n
call fcn.00407a1a
add esp, 0x24
jmp 0x40351a
push esi
push str.stream:_OK_c
push dword [esp + 0x20bc]
call fcn.00407b80
add esp, 0xc
cmp word [0x4354e4], 0
je 0x40351a
push ebp
lea eax, [esp + 0x3c]
push eax
push str.stream__s__u_:_OK_n
call fcn.00407a1a
add esp, 0xc
jmp 0x40351a
push dword [esp + 0x2c]
mov ecx, str.poll
test eax, eax
mov esi, str.timeout
cmovne esi, ecx
push esi
push str.Accept__s._ERROR_c
push dword [esp + 0x20c0]
call fcn.00407b80
push esi
push ebp
push str._ScanStream__u:_accept__s._n
call fcn.00407a1a
push edi
call sub.libav.dll_Ordinal_44331
add esp, 0x20
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20a0
ret