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

Disassembly:
sub esp, 0x314
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x310], eax
mov eax, dword [esp + 0x318]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
xor ebp, ebp
push 0xff
mov dword [esp + 0x20], ebp
movzx ebx, word [esi + 0x148]
mov edi, dword [esi + 0x344]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14c]
lea ecx, [esp + 0x225]
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
mov byte [esp + 0x22c], 0
call fcn.1013f910
add esp, 0xc
cmp edi, ebp
jne 0x10127941
cmp bx, bp
je 0x10127b3e
push 0x100
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.1013f910
add esp, 0xc
cmp edi, ebp
je 0x10127a53
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10127961
sub eax, edx
cmp eax, 0xff
jae 0x10127a53
mov ecx, dword [esp + 0x330]
push 0x100
lea eax, [esp + 0x224]
push eax
push edi
push ecx
call fcn.10117c90
add esp, 0x10
test eax, eax
jne 0x10127a0e
cmp dword [esp + 0x330], 2
mov ebp, dword [esi + 0x270]
jne 0x101279b1
mov dword [esi + 0x270], 1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call fcn.10126800
add esp, 0x10
cmp eax, 1
jne 0x101279dd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.101298e0
add esp, 8
mov dword [esi + 0x270], ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10127a3f
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x224]
push ecx
push edx
call fcn.10126670
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.101269c0
add esp, 0x14
cmp dword [esp + 0x330], 2
jne 0x10127a7b
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x224]
push edx
push 2
call fcn.10135390
add esp, 0xc
test eax, eax
jle 0x10127a7b
mov eax, 2
mov word [esp + 0x20], ax
jmp 0x10127a67
push edi
push str.Couldnt_bind_to__s
push esi
call fcn.101274f0
add esp, 0xc
jmp 0x10127b6b
cmp dword [esp + 0x330], 2
jne 0x10127a7b
mov ecx, 2
mov word [esp + 0x20], cx
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x18], 0x10
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x32c]
mov edi, dword [sym.imp.WS2_32.dll_bind]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
call edi
test eax, eax
jge 0x10127ad7
lea esp, [esp]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
test eax, eax
jle 0x10127b42
inc ebx
cmp word [esp + 0x20], 2
jne 0x10127ac6
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x22], ax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
call edi
test eax, eax
jl 0x10127aa0
push 0x100
lea eax, [esp + 0x124]
push 0
push eax
mov dword [esp + 0x20], 0x100
call fcn.1013f910
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x124]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x10127b30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [esp + 0x10]
push edi
push eax
mov dword [esi + 0x8554], edi
call fcn.10134b00
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10127b62
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x18c], 1
xor eax, eax
jmp 0x10127b70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov edi, eax
push edi
push edx
mov dword [esi + 0x8554], edi
call fcn.10134b00
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.101274f0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0x314
ret