Function at 0x402260
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4c56e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push str.CTNacSocket::GetLocalIPs_1
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x10
lea eax, [esp + 0x14]
xor ebp, ebp
push 1
push eax
push ebp
mov dword [esp + 0x20], ebp
call sub.iphlpapi.dll_GetIpNetTable
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00418c84
add esp, 4
lea edx, [esp + 0x14]
mov ebx, eax
push 1
push edx
push ebx
mov dword [esp + 0x28], ebx
call sub.iphlpapi.dll_GetIpNetTable
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push str.CTNacSocket::GetLocalIPs_2___u_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
cmp esi, ebp
je 0x402321
push str.CTNacSocket::GetLocalIPs_3
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x10
cmp ebx, ebp
je 0x40243c
push ebx
call fcn.00418b9b
add esp, 4
mov dword [esp + 0x1c], ebp
mov ebx, ebp
jmp 0x40243c
cmp ebx, ebp
je 0x40243c
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
push ecx
push edx
push 0x18
push str.CTNacSocket::GetLocalIPs_2_1___d___d____d_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov eax, dword [ebx]
add esp, 0x1c
cmp eax, ebp
jbe 0x40243c
lea esi, [ebx + 8]
push 0x4fa73c
lea ecx, [esp + 0x1c]
call fcn.00431120
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x48], edi
jbe 0x4023c2
push 0x4fa73c
lea ecx, [esp + 0x24]
call fcn.00431120
xor eax, eax
lea ecx, [esp + 0x20]
mov al, byte [esi + edi + 4]
mov byte [esp + 0x48], 1
push eax
push str._02X_
push ecx
call fcn.004349a0
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
call fcn.00432630
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0
call fcn.00431990
mov eax, dword [esi]
inc edi
cmp edi, eax
jb 0x402373
push 0x2d
lea ecx, [esp + 0x1c]
call fcn.00435480
mov eax, dword [esi + 0xc]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x28]
call fcn.00431010
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esi - 4]
push edx
push eax
push ecx
push ebp
push str.CTNacSocket::GetLocalIPs_2_2___d____08x____s____s___08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
mov byte [esp + 0x6c], 2
call fcn.0040c300
add esp, 0x24
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.00431990
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.00431990
mov eax, dword [ebx]
inc ebp
add esi, 0x18
cmp ebp, eax
jb 0x402359
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
push 0
call fcn.004a9bfb
push 0x280
call fcn.004ab160
add esp, 4
mov edi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x280
push 0x280
push str.CTNacSocket::GetLocalIPs_4___u_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push str.CTNacSocket::GetLocalIPs_5___u_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
cmp esi, 0x6f
jne 0x402519
mov ecx, dword [esp + 0x10]
push ecx
push str.CTNacSocket::GetLocalIPs_6___u_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
push edi
call fcn.004ab189
mov edx, dword [esp + 0x28]
push edx
call fcn.004ab160
add esp, 0x1c
mov edi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 1
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
push str.CTNacSocket::GetLocalIPs_7___u_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
mov ebp, edi
mov dword [esp + 0x20], 0
test esi, esi
mov dword [esp + 0x3c], ebp
jne 0x40271a
push str.CTNacSocket::GetLocalIPs_8
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x10
test edi, edi
je 0x402712
push edi
call fcn.00401000
add esp, 4
mov dword [esp + 0x30], eax
push eax
push str.CTNacSocket::GetLocalIPs_9___d_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov edx, dword [edi + 0x1d0]
lea ebp, [edi + 0x1ac]
add esp, 0x14
push edx
push str.CTNacSocket::GetLocalIPs_9___08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
lea esi, [ebp + 4]
lea ecx, [esp + 0x2c]
push esi
call fcn.00431010
mov ebx, eax
lea eax, [edi + 0x10c]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 3
call fcn.00431010
mov dword [esp + 0x24], eax
lea eax, [edi + 8]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x4c], 4
call fcn.00431010
mov ecx, dword [ebx]
mov edx, dword [edi + 0x1a0]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov byte [esp + 0x50], 5
mov edx, dword [ecx]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
push str.CTNacSocket::GetLocalIPs_info___08x____s____s____u____s_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x24
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 4
call fcn.00431990
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 3
call fcn.00431990
or ebx, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], ebx
call fcn.00431990
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x402664
mov edx, dword [esp + 0x1c]
push edx
push ebp
push edi
call fcn.00401fc0
add esp, 0xc
test eax, eax
jne 0x402664
push ebp
call fcn.00401e60
add esp, 4
test eax, eax
je 0x4026ba
push esi
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x50]
push eax
mov edx, dword [ecx + 8]
push edx
call fcn.004a9dbf
push esi
lea ecx, [esp + 0x38]
call fcn.00431010
mov eax, dword [eax]
mov dword [esp + 0x48], 6
push eax
push esi
call sub.WSOCK32.dll_inet_addr
push eax
push str.CTNacSocket::GetLocalIPs_10___08x____s_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x18
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebx
call fcn.00431990
push esi
lea ecx, [esp + 0x3c]
call fcn.00431010
mov ecx, dword [eax]
mov dword [esp + 0x48], 7
push ecx
push str.CTNacSocket::GetLocalIPs_11___s_
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], ebx
call fcn.00431990
mov ebp, dword [ebp]
test ebp, ebp
jne 0x40259d
mov edi, dword [edi]
test edi, edi
jne 0x402550
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], 1
test ebp, ebp
je 0x402765
push str.CTNacSocket::GetLocalIPs_11
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x402746
push str.CTNacSocket::GetLocalIPs_12
jmp 0x40274b
push str.CTNacSocket::GetLocalIPs_13
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
push ebp
call fcn.004ab189
add esp, 0x14
test ebx, ebx
je 0x402788
push str.CTNacSocket::GetLocalIPs_14
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
push ebx
call fcn.00418b9b
add esp, 0x14
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret