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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xff
mov dword [ebp - 0x9a8], eax
lea eax, [ebp - 0x103]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x9a4], ecx
mov dword [ebp - 0x990], ebx
mov byte [ebp - 0x104], cl
call fcn.004486f7
mov ebx, dword [ebx + 0x360]
xor eax, eax
mov dword [ebp - 0x9ac], eax
mov edi, eax
mov dword [ebp - 0x99c], eax
add esp, 0xc
mov dword [ebp - 0x998], eax
mov eax, dword [ebp - 0x990]
mov dword [ebp - 0x9a0], 1
mov ecx, dword [eax + 0x360]
test ecx, ecx
je 0x483091
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482f42
sub ecx, edx
cmp ecx, 1
jbe 0x483091
mov edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x482f59
sub edx, ecx
push 0x16
pop ecx
cmp edx, ecx
jb 0x482f77
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482f6e
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x4b1380]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x482f92
push 0x1b
jmp 0x4835b8
cmp byte [ebx], 0x3a
jne 0x482f9b
mov ecx, ebx
jmp 0x482fd4
push 0x3a
push ebx
call fcn.00494c30
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x98c], ecx
test ecx, ecx
je 0x482fc6
sub eax, ebx
push eax
push ebx
push edi
call fcn.00494f70
mov ecx, dword [ebp - 0x98c]
add esp, 0xc
jmp 0x482fd4
mov edx, edi
sub edx, ebx
mov al, byte [ebx]
mov byte [edx + ebx], al
inc ebx
test al, al
jne 0x482fca
test ecx, ecx
je 0x483054
push 0x3a
push ecx
call fcn.00494c30
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x483054
push 0xa
lea eax, [ebx + 1]
push 0
push eax
call fcn.004959b3
push eax
call fcn.00489351
movzx eax, ax
push 0x2d
push ebx
mov dword [ebp - 0x99c], eax
call fcn.00494c30
add esp, 0x18
test eax, eax
je 0x483032
push 0xa
inc eax
push 0
push eax
call fcn.004959b3
push eax
call fcn.00489351
mov ecx, dword [ebp - 0x99c]
add esp, 0x10
movzx eax, ax
jmp 0x48303b
mov ecx, dword [ebp - 0x99c]
movzx eax, cx
mov dword [ebp - 0x998], eax
cmp cx, ax
jbe 0x483054
and dword [ebp - 0x998], 0
and dword [ebp - 0x99c], 0
cmp byte [edi], 0
je 0x483081
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x3c]
push edi
push dword [eax + 4]
call fcn.0041e000
add esp, 0x10
lea ecx, [ebp - 0x508]
test eax, eax
cmove ecx, edi
jmp 0x483083
xor ecx, ecx
mov dword [ebp - 0x98c], ecx
test ecx, ecx
jne 0x483125
lea eax, [ebp - 0x994]
mov dword [ebp - 0x994], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4830ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0046bef5
push eax
push 0x409188
push dword [ebp - 0x990]
call fcn.004768f6
add esp, 0x14
test edi, edi
je 0x4835b6
push edi
call dword [0x4b1374]
pop ecx
jmp 0x4835b6
push 0x401
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x984]
push eax
movzx eax, word [ebp - 0x988]
push eax
call fcn.00479571
lea ecx, [ebp - 0x508]
add esp, 0x10
and dword [ebp - 0x9a0], 0
mov dword [ebp - 0x98c], ecx
lea eax, [ebp - 0x9ac]
push eax
push 0
push ecx
push esi
call fcn.0046f6c9
add esp, 0x10
cmp eax, 1
jne 0x48314c
lea eax, [ebp - 0x9ac]
push eax
push esi
call fcn.0046f1a4
pop ecx
pop ecx
mov eax, dword [ebp - 0x9ac]
test eax, eax
je 0x483168
mov ebx, dword [eax]
push eax
push dword [ebp - 0x990]
call fcn.0046f853
pop ecx
pop ecx
jmp 0x48316a
xor ebx, ebx
test ebx, ebx
jne 0x48318c
push dword [ebp - 0x98c]
push 0x4091a4
push dword [ebp - 0x990]
call fcn.004768f6
add esp, 0xc
jmp 0x4830da
test edi, edi
je 0x483198
push edi
call dword [0x4b1374]
pop ecx
xor eax, eax
mov dword [ebp - 0x98c], eax
cmp dword [ebx + 8], 0
jne 0x4831ac
mov eax, dword [esi + 0x74]
mov dword [ebx + 8], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4831d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x98c], eax
test ebx, ebx
jne 0x4831a0
jmp 0x4831dd
mov eax, dword [ebp - 0x98c]
test ebx, ebx
jne 0x483201
push eax
push esi
call fcn.0046bef5
push eax
push 0x4091d8
push dword [ebp - 0x990]
call fcn.004768f6
add esp, 0x14
jmp 0x4835b6
push dword [ebx + 0x10]
lea eax, [ebp - 0x988]
push dword [ebx + 0x18]
push eax
call fcn.0048e2f0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x99c]
mov ecx, dword [ebp - 0x998]
cmp dx, cx
mov dword [ebp - 0x994], eax
movzx eax, dx
mov dword [ebp - 0x98c], eax
ja 0x48359c
push 2
pop ecx
cmp word [ebp - 0x988], cx
jne 0x483257
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x986], ax
push dword [ebp - 0x994]
lea eax, [ebp - 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x483369
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9a0], 0
je 0x4832ea
mov ecx, 0x2741
cmp eax, ecx
jne 0x4832ea
push ecx
push esi
call fcn.0046bef5
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push 0x4091ec
push dword [ebp - 0x990]
call fcn.0047698c
add esp, 0x18
mov dword [ebp - 0x994], 0x80
lea eax, [ebp - 0x994]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48330b
mov eax, dword [ebp - 0x99c]
and dword [ebp - 0x9a0], 0
movzx eax, ax
jmp 0x4832fd
cmp eax, 0x2740
je 0x4832f6
cmp eax, 0xd
jne 0x483338
mov eax, dword [ebp - 0x98c]
inc eax
mov ecx, dword [ebp - 0x998]
cmp ax, cx
jmp 0x483231
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0046bef5
push eax
push 0x409188
push dword [ebp - 0x990]
call fcn.004768f6
push edi
push esi
call fcn.00476e15
add esp, 0x1c
jmp 0x4835b6
push eax
push esi
call fcn.0046bef5
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push 0x40921c
push dword [ebp - 0x990]
call fcn.004768f6
push edi
push esi
call fcn.00476e15
add esp, 0x20
jmp 0x4835b6
mov eax, dword [ebp - 0x98c]
mov ecx, dword [ebp - 0x998]
cmp ax, cx
ja 0x48359c
lea eax, [ebp - 0x994]
mov dword [ebp - 0x994], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48330b
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4833ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0046bef5
push eax
push 0x4091d8
jmp 0x48331e
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0046f69f
mov ebx, dword [ebp - 0x9a8]
add esp, 0xc
push 2
pop edx
cmp ebx, edx
je 0x483448
mov cx, word [ebp - 0x988]
cmp dword [esi + 0x1e0], 0
jne 0x483400
test ebx, ebx
je 0x48343d
cmp ebx, 1
jne 0x48340a
cmp cx, dx
jne 0x48343d
movzx eax, cx
sub eax, edx
jne 0x48343d
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x9a0], eax
test ebx, ebx
je 0x483527
cmp ebx, 1
je 0x48348d
mov cx, word [ebp - 0x988]
push 2
pop edx
inc ebx
mov dword [ebp - 0x9a8], ebx
cmp ebx, edx
jne 0x4833f3
mov ebx, dword [ebp - 0x9a4]
mov eax, dword [ebp - 0x9a8]
mov dword [esi + 0x434], eax
mov eax, dword [esi + 0x134]
cmp eax, 0xffffffff
je 0x48346e
push eax
push esi
call fcn.00476e15
pop ecx
pop ecx
mov dword [esi + 0x134], edi
mov dword [esi + 0x1c0], 1
mov dword [esi + 0x440], 0x1c
jmp 0x483598
lea edx, [ebp - 0x908]
lea ebx, [ebp - 0x104]
mov cl, byte [ebx]
test cl, cl
je 0x4834bc
cmp cl, 0x2e
movzx eax, cl
mov dword [ebp - 0x9a4], 0x2c
cmove eax, dword [ebp - 0x9a4]
mov byte [edx], al
inc edx
inc ebx
jne 0x483499
mov eax, dword [ebp - 0x9a0]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push 0x409290
push 0x14
push edx
mov byte [edx], 0
call fcn.0046c9fc
lea eax, [ebp - 0x908]
push eax
push 0x409081
lea eax, [esi + 0x3d0]
push 0x409298
push eax
call fcn.0048a61c
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x48344e
push ebx
call fcn.0046bfcb
push eax
push 0x4092a0
push dword [ebp - 0x990]
call fcn.004768f6
push edi
push esi
call fcn.00476e15
jmp 0x48358e
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
push eax
push 2
pop ecx
xor eax, eax
cmp word [ebp - 0x988], cx
setne al
inc eax
push eax
push 0x40907c
lea eax, [esi + 0x3d0]
push 0x40925c
push eax
call fcn.0048a61c
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x48344e
push ebx
call fcn.0046bfcb
push eax
push 0x40926c
push dword [ebp - 0x990]
call fcn.004768f6
push edi
push esi
call fcn.00476e15
mov dword [esi + 0x434], 1
add esp, 0x18
and dword [esi + 0x440], 0
mov eax, ebx
jmp 0x4835b9
push 0x409238
push dword [ebp - 0x990]
call fcn.004768f6
push edi
push esi
call fcn.00476e15
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret