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

Disassembly:
sub esp, 0x61c
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, dword [ebx]
push 0x2e
xor esi, esi
lea eax, [esp + 0xb5]
push esi
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xbc], 0
call fcn.00563860
mov edi, dword [ebp + 0x9ec]
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x9ec]
add esp, 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
cmp eax, esi
je 0x48086b
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480684
sub eax, edx
cmp eax, 1
jbe 0x48086b
mov eax, edi
lea edx, [eax + 1]
jmp 0x4806a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4806a0
sub eax, edx
cmp eax, 0x41
jae 0x4806b5
mov eax, 0x41
jmp 0x4806c9
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4806c0
sub eax, edx
inc eax
push 1
push eax
call dword [0x7fbac4]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4806e4
lea eax, [esi + 0x1b]
jmp 0x480ced
mov al, byte [edi]
cmp al, 0x5b
jne 0x480796
push 0x5d
push edi
lea ebx, [edi + 1]
call fcn.00567970
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x480815
mov ecx, ebp
sub ecx, ebx
push ecx
push ebx
push esi
call fcn.005674c0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
test ebp, ebp
je 0x480819
push 0x3a
push ebp
call fcn.00567970
mov edi, eax
add esp, 8
test edi, edi
je 0x480819
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.00567933
push eax
call fcn.00465ff0
movzx ebp, ax
push 0x2d
push edi
mov dword [esp + 0x3c], ebp
call fcn.00567970
add esp, 0x18
test eax, eax
je 0x48080c
push 0xa
inc eax
push 0
push eax
call fcn.00567933
push eax
call fcn.00465ff0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp bp, ax
jbe 0x480819
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
jmp 0x480819
cmp al, 0x3a
jne 0x4807a1
mov ebp, edi
jmp 0x480719
push 0x3a
push edi
call fcn.00567970
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4807f7
lea edx, [esp + 0x30]
push edx
push edi
push 0x17
call fcn.00492af0
add esp, 0xc
cmp eax, 1
jne 0x4807e3
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4807d7
jmp 0x480819
mov eax, ebp
sub eax, edi
push eax
push edi
push esi
call fcn.005674c0
add esp, 0xc
jmp 0x480719
mov edx, esi
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x480800
jmp 0x480819
movzx edx, bp
mov dword [esp + 0x18], edx
jmp 0x480819
mov ebx, dword [esp + 0x20]
cmp byte [esi], 0
je 0x48086b
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ebx + 0x2b8]
push 0x401
lea eax, [esp + 0x228]
push eax
mov eax, dword [edx + 0x18]
push esi
push ecx
push eax
call fcn.004940b0
mov ecx, dword [ebx + 0x2b8]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0045bcb0
add esp, 0x18
sub eax, 0
je 0x4808cb
sub eax, 1
je 0x4808c1
sub eax, 1
je 0x480909
mov edx, dword [ebx + 0x420]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4808cf
push 0x100
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
mov ecx, dword [esp + 0x20]
push eax
push 0x751124
push ecx
call fcn.00463c60
push esi
call dword [0x7fbab8]
add esp, 0x1c
mov eax, 0x1e
jmp 0x480ced
mov edi, esi
jmp 0x480910
movzx eax, word [esp + 0x30]
push 0x401
lea edx, [esp + 0x228]
push edx
cmp eax, 0x17
je 0x4808ee
lea ecx, [esp + 0x3c]
push ecx
push eax
jmp 0x4808f5
lea eax, [esp + 0x40]
push eax
push 0x17
call fcn.004944f0
add esp, 0x10
test eax, eax
je 0x4808c1
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x224]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push edi
push ebx
call fcn.0048c2d0
add esp, 0x14
cmp eax, 1
jne 0x480936
lea edx, [esp + 0x28]
push edx
push ebx
call fcn.0045a360
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x480952
mov ebp, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0048c560
add esp, 8
test ebp, ebp
jne 0x480976
mov ecx, dword [esp + 0x14]
push edi
push 0x7510f0
push ecx
call fcn.00463c60
push esi
call dword [0x7fbab8]
add esp, 0x10
mov eax, 0x1e
jmp 0x480ced
push esi
call dword [0x7fbab8]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
lea edx, [esp + 0x10]
push edx
push 0
push ebp
push ebx
call fcn.00469b00
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x4809b6
call edi
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x480990
jmp 0x4809ba
test ebp, ebp
jne 0x4809ea
push 0x100
lea eax, [esp + 0x128]
push eax
push esi
call fcn.00491d10
mov ecx, dword [esp + 0x20]
push eax
push 0x7510dc
push ecx
call fcn.00463c60
add esp, 0x18
mov eax, 0x1e
jmp 0x480ced
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.005645b0
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edx
movzx edi, ax
cmp ax, word [esp + 0x18]
ja 0x480b54
mov esi, dword [esp + 0x2c]
lea esp, [esp]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x10]
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x480b4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x480ab4
cmp eax, 0x2741
jne 0x480ab4
push 0x100
lea eax, [esp + 0x128]
push eax
push 0x2741
call fcn.00491d10
mov esi, dword [esp + 0x20]
push eax
movzx ecx, di
push ecx
push 0x7510ac
push esi
call fcn.00463b80
mov ecx, dword [ebx + 0x420]
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x480ad1
movzx edi, word [esp + 0x24]
xor esi, esi
jmp 0x480ac1
cmp eax, 0x2740
je 0x480ac0
cmp eax, 0xd
jne 0x480b0e
inc edi
cmp di, word [esp + 0x18]
jbe 0x480a20
jmp 0x480b54
push 0x100
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
push eax
push 0x751124
push esi
call fcn.00463c60
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.00469a70
add esp, 0x20
mov eax, 0x1e
jmp 0x480ced
push 0x100
lea ecx, [esp + 0x128]
push ecx
push eax
call fcn.00491d10
push eax
mov eax, dword [esp + 0x24]
movzx edx, di
push edx
push 0x751090
push eax
call fcn.00463c60
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
call fcn.00469a70
add esp, 0x24
mov eax, 0x1e
jmp 0x480ced
cmp di, word [esp + 0x18]
jbe 0x480b7b
mov edx, dword [esp + 0x14]
push 0x75106c
push edx
call fcn.00463c60
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.00469a70
add esp, 0x10
mov eax, 0x1e
jmp 0x480ced
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x480bc5
push 0x100
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
mov edx, dword [esp + 0x20]
push eax
push 0x751124
push edx
jmp 0x480af1
mov ecx, dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x480c17
push 0x100
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
push eax
mov eax, dword [esp + 0x24]
push 0x7510dc
push eax
call fcn.00463c60
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call fcn.00469a70
add esp, 0x20
mov eax, 0x1e
jmp 0x480ced
push 0x2f
lea edx, [esp + 0xb4]
push edx
push ebp
call fcn.0048b850
add esp, 0xc
cmp dword [ebx + 0x58c], 0
jne 0x480c46
cmp dword [ebx + 0x570], 0
je 0x480c46
mov dword [ebx + 0x58c], 1
mov edi, dword [esp + 0x630]
cmp edi, 2
je 0x480cb5
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
lea ecx, [ecx]
cmp dword [ebx + 0x58c], 0
jne 0x480c6d
test edi, edi
je 0x480ca8
cmp edi, 1
jne 0x480c78
cmp cx, 2
jne 0x480ca8
movzx eax, cx
sub eax, 2
je 0x480c8c
sub eax, 0x15
jne 0x480ca8
mov eax, dword [esp + 0x32]
push eax
jmp 0x480c91
mov ecx, dword [esp + 0x32]
push ecx
call esi
movzx ebp, ax
test edi, edi
je 0x480d06
cmp edi, 1
je 0x480d8b
mov cx, word [esp + 0x30]
inc edi
cmp edi, 2
jne 0x480c60
mov dword [esp + 0x630], edi
mov eax, dword [esp + 0x630]
mov esi, ebx
mov dword [ebx + 0x718], eax
call fcn.004801f0
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x424], ecx
mov eax, 0x1c
mov ecx, ebx
mov dword [ebx + 0x530], 1
call fcn.004804e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0x61c
ret
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, bp
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
lea ebp, [ebx + 0x690]
mov dword [esp + 0x638], edi
inc ecx
push ecx
push 0x750f54
push 0x75105c
push ebp
call fcn.00495700
mov edi, eax
add esp, 0x18
mov dword [esp + 0x20], edi
test edi, edi
je 0x480cb5
push edi
call fcn.00491290
mov edx, dword [esp + 0x18]
push eax
push 0x751038
push edx
call fcn.00463c60
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.00469a70
add esp, 0x18
xor eax, eax
mov ecx, ebx
mov dword [ebp + 0x88], 1
call fcn.004804e0
mov eax, edi
jmp 0x480ced
mov dword [esp + 0x630], edi
lea ecx, [esp + 0xe0]
lea edx, [esp + 0xb0]
mov al, byte [edx]
test al, al
je 0x480db7
cmp al, 0x2e
jne 0x480daf
mov byte [ecx], 0x2c
jmp 0x480db1
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x480da0
movzx eax, bp
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push 0x751030
push 0x14
push ecx
mov byte [ecx], 0
call fcn.0046c7a0
lea eax, [esp + 0xf4]
push eax
push 0x750f59
lea eax, [ebx + 0x690]
push 0x74f93c
push eax
call fcn.00495700
mov edi, eax
add esp, 0x24
mov dword [esp + 0x20], edi
test edi, edi
je 0x480cb5
push edi
call fcn.00491290
mov ecx, dword [esp + 0x18]
push eax
push 0x75100c
push ecx
call fcn.00463c60
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.00469a70
add esp, 0x18
xor eax, eax
mov ecx, ebx
call fcn.004804e0
mov eax, edi
jmp 0x480ced