Function at 0x401fc0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 8]
push 0x4c5690
push eax
mov dword fs:[0], esp
sub esp, 0xc
test ecx, ecx
push ebx
push ebp
push esi
push edi
je 0x4021fb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4021fb
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4021fb
mov edx, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x1d0]
push edx
push eax
push ecx
push str.CTNacSocket::GetLocalIPs_1___08x____08x____08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x1c
lea edi, [esi + 4]
push edi
call sub.WSOCK32.dll_inet_addr
add esi, 0x14
mov dword [esp + 0x18], eax
push esi
call sub.WSOCK32.dll_inet_addr
push esi
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00431010
mov esi, eax
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00431010
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
push str.CTNacSocket::GetLocalIPs____s____s_
push 0x4e81a4
push 0xf
push 0x4fe39c
mov byte [esp + 0x3c], 1
call fcn.0040c300
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00431990
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00431990
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov ebp, ebx
mov dword [esp + 0x10], 0
mov eax, dword [esi]
and ebp, ecx
mov ecx, dword [esp + 0x2c]
test eax, eax
mov edi, dword [ecx + 0x19c]
mov dword [esp + 0x18], edi
jbe 0x4021fb
add esi, 0x14
mov edx, dword [esi - 0x10]
push edi
push edx
push str.CTNacSocket::GetLocalIPs_2___08x____08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov eax, dword [esi - 0x10]
add esp, 0x18
cmp eax, edi
jne 0x4021e1
mov eax, dword [esi]
mov ecx, eax
and ecx, ebx
push ecx
push eax
push ebx
push ebp
push str.CTNacSocket::GetLocalIPs_3___08x____08x____08x____08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov edx, dword [esi]
add esp, 0x20
and edx, ebx
cmp ebp, edx
jne 0x4021e1
push 0x4fa73c
lea ecx, [esp + 0x30]
call fcn.00431120
mov eax, dword [esi - 0xc]
xor edi, edi
test eax, eax
mov dword [esp + 0x24], 2
jbe 0x402196
push 0x4fa73c
lea ecx, [esp + 0x34]
call fcn.00431120
xor eax, eax
lea ecx, [esp + 0x30]
mov al, byte [esi + edi - 8]
mov byte [esp + 0x24], 3
push eax
push str._02X_
push ecx
call fcn.004349a0
add esp, 0xc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x2c]
push edx
call fcn.00432630
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00431990
mov eax, dword [esi - 0xc]
inc edi
cmp edi, eax
jb 0x402146
push 0x2d
lea ecx, [esp + 0x30]
call fcn.00435480
mov eax, dword [esp + 0x2c]
push eax
push str.CTNacSocket::GetLocalIPs_5___s_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
lea ecx, [esi - 8]
push ecx
call fcn.0044b7c0
add esp, 0x18
test eax, eax
je 0x402210
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00431990
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x18
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x4020cf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
push eax
push str.CTNacSocket::GetLocalIPs_6___s_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00431990
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret