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

Disassembly:
sub esp, 0x460
push ebx
push ebp
mov ebp, dword [esp + 0x46c]
push esi
mov ebp, dword [ebp]
push edi
push str.TCPSocket
push dword [esp + 0x484]
mov dword [esp + 0x1c], 1
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
lea esi, [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
push ecx
push eax
push str._lld
lea eax, [esp + 0x2c]
push 0xa
push eax
call sub.libav.dll_Ordinal_44276
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x49c]
xor ebx, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x50], 0x401
call sub.libav.dll_Ordinal_44333
add esp, 0x24
test eax, eax
je 0x405d9f
push eax
call sub.libav.dll_Ordinal_44341
push eax
push str._TCP:_getaddrinfo_failed:__s_n
call fcn.00407a1a
add esp, 0xc
or eax, 0xffffffff
jmp 0x405fb7
mov edi, dword [esp + 0x10]
test edi, edi
je 0x405fa5
mov esi, dword [esp + 0x478]
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push ebp
call fcn.00408fb6
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x405fc2
push dword [edi + 0xc]
mov dword [esp + 0x1c], eax
push dword [edi + 8]
push dword [edi + 4]
call sub.libav.dll_Ordinal_44321
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x405e0b
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
push str._TCP:_socket___error:__s_n
call fcn.00407a1a
add esp, 0xc
jmp 0x405f92
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push ebp
call sub.libav.dll_Ordinal_44323
add esp, 0x14
cmp eax, 0xffffffff
jne 0x405e41
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
push str._TCP:_setsocktopt_SO_REUSEADDR__error:__s_n
call fcn.00407a1a
add esp, 0xc
cmp dword [edi + 4], 0x17
jne 0x405e7a
push 4
lea eax, [esp + 0x18]
push eax
push 0x1b
push 0x29
push ebp
call sub.libav.dll_Ordinal_44323
add esp, 0x14
cmp eax, 0xffffffff
jne 0x405e7a
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
push str._TCP:_setsocktopt_IPV6_V6ONLY__error:__s_n
call fcn.00407a1a
add esp, 0xc
cmp dword [esp + 0x47c], ebx
je 0x405ea5
push 0x401
push dword [esp + 0x480]
lea eax, [esp + 0x74]
push eax
call fcn.0040c590
add esp, 0xc
mov byte [esp + 0x46c], bl
jmp 0x405ea9
mov byte [esp + 0x6c], bl
push str.TCPSocket
push dword [esp + 0x484]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
lea esi, [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
add eax, dword [esi]
push eax
push 0x42c2d4
lea eax, [esp + 0x54]
push 0x20
push eax
call sub.libav.dll_Ordinal_44276
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebp
call sub.libav.dll_Ordinal_44324
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x405f20
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x78]
push eax
push str._TCP:_Cannot_bind_to___s_:_s:__s_n
call fcn.00407a1a
push ebp
call sub.libav.dll_Ordinal_44331
mov esi, dword [esp + 0x490]
add esp, 0x18
jmp 0x405f92
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x70]
push eax
push str.TCP:_Bound_to___s_:_s_n
call fcn.00407a1a
push str.MaxConnectionQueueLength
push dword [esp + 0x490]
call sub.libav.dll_Ordinal_44283
mov esi, dword [eax + 0x10]
push esi
push str.TCP:_Setting_connection_queue_length_to__d_n
call fcn.00407a1a
push esi
push ebp
call sub.libav.dll_Ordinal_44325
add esp, 0x24
cmp eax, 0xffffffff
jne 0x405f80
call fcn.0040c3e4
push dword [eax]
call sub.libav.dll_Ordinal_44341
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x78]
push eax
push str._TCP:_Cannot_listen_on___s_:_s:__s_n
jmp 0x405f09
mov esi, dword [esp + 0x478]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [ecx + eax*4], ebp
inc dword [esi]
mov edi, dword [edi + 0x1c]
mov ebp, dword [esp + 0x18]
test edi, edi
jne 0x405db2
mov edi, dword [esp + 0x10]
push edi
call sub.libav.dll_Ordinal_44334
mov eax, dword [esp + 0x478]
pop ecx
mov dword [eax], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret
cmp dword [esi], ebx
jbe 0x405d97
push dword [ebp + ebx*4]
call fcn.00412887
inc ebx
pop ecx
cmp ebx, dword [esi]
jb 0x405fca
jmp 0x405d97