Function at 0x415800
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
push 0
mov edi, ecx
call fcn.004230b2
add esp, 4
cmp byte [edi], 0
jne 0x415b05
mov eax, dword [edi + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], eax
push ecx
inc eax
mov dword [esp + 0x60], 1
push eax
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x41587d
jns 0x415afc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415afc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x44]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x415afc
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4158e5
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
push 0xb8
call fcn.0041be73
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
push 0x20
push 0x200a
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0xffffffff
mov byte [esi + 0x1c], 0
mov dword [esi + 0x94], 0x2000
call fcn.004247b8
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x94]
push 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], 0x1000101
mov word [esi + 0xa8], 0x100
call fcn.004230b2
mov dword [esi + 0x48], eax
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x5c], 1
mov byte [esi + 0x54], 1
mov dword [esi + 0x50], 0x3c
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi], eax
movzx eax, word [esp + 0x32]
mov word [esi + 4], ax
mov eax, dword [esp + 0x44]
mov dword [esi + 8], eax
movzx eax, word [esp + 0x42]
mov word [esi + 0xc], ax
mov eax, dword [edi + 0x1f8c]
mov dword [esi + 0xac], eax
mov eax, dword [edi + 0x1f98]
mov dword [esi + 0xb0], eax
mov dword [esi + 0x58], edi
movups xmm0, xmmword [esp + 0x40]
mov dword [esp + 0x20], esi
movups xmmword [esi + 0x34], xmm0
mov eax, dword [edi + 0x20]
mov dword [esi + 0x50], eax
push dword [edi + 0x1f98]
mov eax, dword [edi + 0x1f88]
push esi
call eax
add esp, 8
test eax, eax
jns 0x415a34
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x18]
test eax, eax
js 0x4159fa
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x415a16
cmp byte [esi + 0xa5], 0
je 0x415a16
push eax
call fcn.00424799
add esp, 4
push esi
push str._Client_Release_ptr_p._n
call fcn.00401410
push 0xb8
push esi
call fcn.0041beab
add esp, 0x10
jmp 0x415afc
push 0
push 0
push dword [edi + 0x2c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x415a58
push str.CreateIoCompletion_bind_Socket_Error_n
call fcn.00401410
add esp, 4
jmp 0x415a6c
cmp byte [esi + 0xa9], 0
je 0x415ab1
mov ecx, esi
call fcn.004150b0
test eax, eax
jns 0x415ab1
mov eax, dword [esi + 0x18]
mov byte [esi + 0xa7], 0
test eax, eax
js 0x415a88
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x18], 0xffffffff
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x415afc
push dword [esi + 0xb0]
mov eax, dword [esi + 0xac]
push esi
call eax
add esp, 4
mov ecx, esi
call fcn.00415060
jmp 0x415afc
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x1f7c]
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
push esi
call fcn.00414630
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 0x1f80]
sub ecx, eax
cmp ecx, 1
jb 0x415b19
lea ecx, [eax + 1]
mov dword [edi + 0x1f80], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi], 0
je 0x415831
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0041be15
int3