Function at 0x406570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x488
mov eax, dword [0x40f1f4]
xor eax, esp
mov dword [esp + 0x484], eax
mov ecx, dword [esp + 0x48c]
mov eax, dword [esp + 0x498]
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [esp + 0x498]
push esi
push edi
mov edi, dword [esp + 0x4a4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x50]
push ecx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x58], 0x53504354
mov word [esp + 0x5f], 0x7465
mov word [esp + 0x5c], 0x636f
mov byte [esp + 0x5e], 0x6b
mov byte [esp + 0x61], 0
mov dword [esp + 0x65], 0x646c6c
mov byte [esp + 0x64], 0x25
call fcn.00408060
lea esi, [eax + 0x10]
call fcn.00407de0
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
push ecx
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push 0xa
push eax
call sub.libav.dll_Ordinal_44276
push 0x20
lea eax, [esp + 0x50]
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x94]
push eax
push edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x68], 0x401
call sub.libav.dll_Ordinal_44333
add esp, 0x38
test eax, eax
jne 0x406823
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4067de
mov esi, dword [sym.imp.MSVCR110.dll__errno]
nop
mov eax, dword [ebp]
lea eax, [eax*4 + 4]
push eax
push ebx
call dword [sym.imp.MSVCR110.dll_realloc]
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x406808
push dword [edi + 0xc]
mov dword [esp + 0x24], eax
push dword [edi + 8]
push dword [edi + 4]
call sub.libav.dll_Ordinal_44321
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4066be
call esi
push dword [eax]
call sub.libav.dll_Ordinal_44341
add esp, 4
jmp 0x4067cb
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0xffff
push ebx
call sub.libav.dll_Ordinal_44323
add esp, 0x14
cmp dword [edi + 4], 0x17
jne 0x406700
push 4
lea eax, [esp + 0x20]
push eax
push 0x1b
push 0x29
push ebx
call sub.libav.dll_Ordinal_44323
add esp, 0x14
cmp eax, 0xffffffff
jne 0x406700
call esi
push dword [eax]
call sub.libav.dll_Ordinal_44341
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406729
push 0x401
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.MSVCR110.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x490], 0
jmp 0x406731
mov byte [esp + 0x90], 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x18]
mov word [esp + 0x18], 0x7525
mov byte [esp + 0x1a], 0
call fcn.00408060
lea esi, [eax + 0x10]
call fcn.00407de0
add eax, dword [esi]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x80]
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call sub.libav.dll_Ordinal_44324
add esp, 0x24
cmp eax, 0xffffffff
jne 0x406798
mov esi, dword [sym.imp.MSVCR110.dll__errno]
call esi
push dword [eax]
call sub.libav.dll_Ordinal_44341
push ebx
call sub.libav.dll_Ordinal_44331
add esp, 8
jmp 0x4067cb
push str.MaxConnectionQueueLength
push dword [esp + 0x18]
call fcn.00408060
mov eax, dword [eax + 0x10]
push eax
push ebx
call sub.libav.dll_Ordinal_44325
mov esi, dword [sym.imp.MSVCR110.dll__errno]
add esp, 0x10
cmp eax, 0xffffffff
je 0x406784
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*4], ebx
inc dword [ebp]
mov edi, dword [edi + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
jne 0x406670
mov edi, dword [esp + 0x18]
push edi
call sub.libav.dll_Ordinal_44334
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408f44
add esp, 0x488
ret
xor esi, esi
cmp dword [ebp], esi
jbe 0x406823
mov edi, dword [sym.imp.MSVCR110.dll__close]
push dword [ebx + esi*4]
call edi
inc esi
add esp, 4
cmp esi, dword [ebp]
jb 0x406815
or eax, 0xffffffff
jmp 0x4067ef