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

Disassembly:
sub esp, 0x214
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebp, ebp
push 0xff
mov dword [esp + 0x18], ebp
movzx ebx, word [edi + 0x178]
mov esi, dword [edi + 0x38c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x17c]
lea ecx, [esp + 0x125]
push ebp
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x12c], 0
call fcn.10050860
add esp, 0xc
cmp esi, ebp
jne 0x10026ba1
cmp bx, bp
je 0x10026eac
push 0x80
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.10050860
add esp, 0xc
cmp esi, ebp
je 0x10026d93
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026bc1
sub eax, edx
cmp eax, 0xff
jae 0x10026d93
mov edx, dword [0x10081014]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026be0
sub eax, ebp
push eax
push esi
push edx
call fcn.100525da
add esp, 0xc
test eax, eax
jne 0x10026c10
mov eax, dword [0x10081014]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c00
sub eax, edx
add esi, eax
jmp 0x10026d3c
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
jmp 0x10026c20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c20
sub eax, ebp
push eax
push esi
push edx
call fcn.100525da
add esp, 0xc
test eax, eax
jne 0x10026d2b
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026c44
sub eax, edx
add esi, eax
cmp dword [esp + 0x230], 2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x21c]
jne 0x10026c6d
mov dword [eax + 0x21c], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
call fcn.1001cfc0
add esp, 0x10
cmp eax, 1
jne 0x10026c95
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.1001c950
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x21c], ebp
test eax, eax
je 0x10026d7f
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.1001cd80
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x23c]
push edx
lea eax, [esp + 0x130]
push eax
push ecx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.10025340
mov edx, dword [esp + 0x38]
push edx
push edi
call fcn.1001d1b0
mov ebp, dword [esp + 0x25c]
add esp, 0x2c
cmp ebp, 2
jne 0x10026dbb
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x124]
push ecx
push ebp
call fcn.1002a050
add esp, 0xc
test eax, eax
jle 0x10026dbb
mov edx, ebp
mov word [esp + 0x20], dx
jmp 0x10026da7
push esi
call fcn.1001c640
add esp, 4
test eax, eax
je 0x10026c4f
mov ebp, dword [esp + 0x230]
push pe_nt_image_headers32
lea eax, [esp + 0x124]
push eax
push esi
push ebp
call fcn.1001c640
add esp, 0x10
test eax, eax
je 0x10026ed9
push ebp
lea ecx, [esp + 0x124]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.10025340
add esp, 0x14
jmp 0x10026cfb
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.100253d0
add esp, 0xc
jmp 0x10026ed9
cmp dword [esp + 0x230], 2
jne 0x10026dbb
mov eax, 2
mov word [esp + 0x20], ax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x1c], 0x10
mov word [esp + 0x22], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x22c]
mov esi, dword [sym.imp.WS2_32.dll_bind]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call esi
test eax, eax
jge 0x10026e2c
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
nop
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x10026eb0
movzx ecx, bx
push ecx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.10025340
add esp, 0xc
inc ebx
cmp word [esp + 0x20], 2
jne 0x10026e14
push ebx
call ebp
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x22c]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jl 0x10026de0
push 0x80
lea edx, [esp + 0xa4]
push 0
push edx
mov dword [esp + 0x24], 0x80
call fcn.10050860
mov edx, dword [esp + 0x238]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x10026e8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [edi + 0x85cc], esi
call fcn.10029e00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10026ed0
movzx ecx, bx
push ecx
push str.Local_port:__hu_n
push edi
call fcn.10025340
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + 0x1fc], 1
xor eax, eax
jmp 0x10026ede
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [edi + 0x85cc], esi
call fcn.10029e00
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.100253d0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004ea1f
add esp, 0x214
ret