Function at 0x41f7c3
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
push 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004b4340
add esp, 0xc
mov word [ebp - 0x18], 2
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x41f811
mov dword [ebp - 0x14], 0
push 0x4d0c1c
call fcn.0042bf51
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x41f82b
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x41f9e4
cmp dword [ebp + 0x10], 0
jne 0x41f86a
cmp dword [ebp + 0x14], 0
je 0x41f86a
push 0x4d0c60
mov edx, dword [ebp + 0x14]
push edx
call sub.WSOCK32.dll_getservbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41f860
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x41f9e4
mov edx, dword [ebp - 4]
movsx eax, word [edx + 8]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0xffff
jne 0x41f87a
mov dword [ebp + 0x10], 0
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
push 0x4d0cb8
call sub.WSOCK32.dll_getprotobyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41f8ad
call fcn.00439c0d
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
xor eax, eax
jmp 0x41f9e4
mov eax, dword [ebp - 0x1c]
movsx ecx, word [eax + 8]
push ecx
push 1
movsx edx, word [ebp - 0x18]
push edx
call sub.WSOCK32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x41f8dc
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x41f9e4
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041faba
add esp, 8
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x41f91e
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041fa32
add esp, 4
xor eax, eax
jmp 0x41f9e4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x41f951
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041fa32
add esp, 4
xor eax, eax
jmp 0x41f9e4
cmp dword [ebp + 0x10], 0
jne 0x41f969
mov ax, word [ebp - 0x16]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x41f9cd
mov dword [ebp - 0x34], 0x10
push 0x10
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004b4340
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.WSOCK32.dll_getsockname
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41f9bb
call fcn.00439c0d
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041fa32
add esp, 4
xor eax, eax
jmp 0x41f9e4
mov cx, word [ebp - 0x2e]
push ecx
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, 1
mov esp, ebp
pop ebp
ret