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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x3a0], eax
xor ebx, ebx
mov eax, dword [edx + 4]
push esi
push edi
add eax, 0xfffffffe
mov dword [ebp - 0x3a4], edx
xor edi, edi
mov dword [ebp - 0x39c], ebx
cmp eax, 0xa
ja case.0x4613a8.9
movzx eax, byte [eax + 0x4616bc]
jmp dword [eax*4 + 0x4616ac]
mov ecx, dword [0x55f77c]
jmp 0x4613d6
mov ecx, dword [0x55f780]
jmp 0x4613d6
mov eax, dword [0x55f430]
mov ecx, dword [0x55f778]
mov ebx, dword [0x55f42c]
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x398], ecx
test ecx, ecx
je case.0x4613a8.9
lea eax, [ebp - 0x3ac]
push eax
push 7
push edx
call fcn.00468180
add esp, 0xc
test eax, eax
jne 0x461412
mov edi, 0xffffff89
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov esi, 0xff
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x3a8], esi
cmovb esi, dword [ebp - 0x3a8]
push esi
push dword [ebp - 0x3ac]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x100
jae 0x4616a6
lea ecx, [ebp - 0x104]
add ecx, esi
lea eax, [ebp - 0x104]
mov byte [ecx], 0
test ebx, ebx
je 0x46149d
push dword [ebp - 0x39c]
push eax
call ebx
mov edi, eax
add esp, 8
cmp edi, 0xffffff89
je 0x461693
mov esi, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x3a4]
push esi
push eax
push eax
call dword [ebp - 0x398]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
lea esi, [ecx - 1]
cmp esi, eax
je 0x4614b9
mov al, byte [esi]
cmp al, 0x5d
je 0x4614b9
cmp al, 0x3a
je 0x4614be
dec esi
lea eax, [ebp - 0x104]
cmp esi, eax
jne 0x4614a4
cmp byte [esi], 0x3a
jne 0x4614c3
mov byte [esi], 0
jmp 0x4614c5
mov esi, ecx
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call ebx
cmp eax, 1
je 0x461528
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4614f0
sub ecx, edx
cmp ecx, 3
jb 0x461530
cmp byte [ebp - 0x104], 0x5b
jne 0x461530
cmp byte [esi - 1], 0x5d
jne 0x461530
mov byte [esi - 1], al
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x103]
push eax
push 0x17
call ebx
dec eax
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x461472
cmp dword [0x55f434], edi
je 0x4613fa
mov esi, dword [ebp - 0x3a0]
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x394]
mov dword [ebp - 0x398], 0x1e
push eax
push dword [esi]
mov dword [ebp - 0x39c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46160f
movzx eax, word [ebp - 0x394]
sub eax, 2
je 0x4615c1
sub eax, 0x15
jne 0x4615c1
push 0x100
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x46160f
push dword [ebp - 0x392]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
lea eax, [ebp - 0x204]
push eax
push str.__s_:_d
jmp 0x4615fb
push 0x100
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x390]
push eax
push 2
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x46160f
push dword [ebp - 0x392]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
lea eax, [ebp - 0x204]
push eax
push str._s:_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040f470
add esp, 0x14
lea eax, [ebp - 0x314]
push eax
call fcn.0045d5e0
lea eax, [ebp - 0x104]
push eax
push dword [0x55c270]
lea eax, [ebp - 0x304]
push 0x100
push eax
call fcn.0040f470
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0045d350
push dword [ebp - 0x310]
lea eax, [ebp - 0x398]
push dword [ebp - 0x314]
push 0x51b904
push eax
push esi
call fcn.0045e6d0
mov edi, eax
lea eax, [ebp - 0x314]
push eax
call fcn.0045d580
add esp, 0x34
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov edi, 0x1f4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret
call fcn.00509d14
nop
mov edi, 0xaf004613
adc eax, dword [esi]
mov bh, 0x13
inc esi
add byte [esi + 0x4616], cl
add byte [eax], al
add dword [edx], eax
add al, byte [edx]
add eax, dword [ebx]
add dword [eax], eax
int3