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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x108], 0
push 0xff
lea eax, [ebp - 0x107]
mov dword [ebp - 0xa44], edi
push 0
mov esi, dword [edi]
mov ebx, edx
push eax
mov dword [ebp - 0xa30], esi
call fcn.1003f210
mov esi, dword [esi + 0x324]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xa24], 0
mov dword [ebp - 0xa3c], 0
mov cl, 1
mov dword [ebp - 0xa38], 0
mov byte [ebp - 0xa25], cl
mov dword [ebp - 0xa2c], eax
test esi, esi
je 0x10028656
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100284f6
sub ecx, edx
cmp ecx, 1
jbe 0x10028656
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028510
sub ecx, edx
cmp ecx, 0x16
jae 0x10028525
mov ecx, 0x16
jmp 0x10028539
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028530
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x1005f674]
add esp, 8
mov dword [ebp - 0xa2c], eax
test eax, eax
jne 0x10028568
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x3a
je 0x100285a1
push 0x3a
push esi
call fcn.10039a10
add esp, 8
mov dword [ebp - 0xa40], eax
test eax, eax
je 0x1002862f
mov ecx, eax
mov eax, dword [ebp - 0xa2c]
sub ecx, esi
push ecx
push esi
push eax
call fcn.10046230
mov esi, dword [ebp - 0xa40]
add esp, 0xc
test esi, esi
je 0x10028644
push 0x3a
push esi
call fcn.10039a10
mov esi, eax
add esp, 8
test esi, esi
je 0x10028644
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.1004221f
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0xa3c], eax
push 0x2d
push esi
call fcn.10039a10
add esp, 8
test eax, eax
je 0x1002861e
push 0xa
inc eax
push 0
push eax
call fcn.1004221f
mov ecx, dword [ebp - 0xa3c]
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0xa38], eax
cmp cx, ax
jbe 0x10028644
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa3c], 0
jmp 0x10028644
mov ecx, dword [ebp - 0xa3c]
movzx eax, cx
mov dword [ebp - 0xa38], eax
jmp 0x10028644
mov ecx, dword [ebp - 0xa2c]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10028637
mov esi, dword [ebp - 0xa2c]
cmp byte [esi], 0
je 0x10028658
mov eax, esi
jmp 0x100286f1
xor esi, esi
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xa34], 0x80
push eax
lea eax, [ebp - 0x990]
push eax
push dword [edi + 0x154]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100286b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa30]
call fcn.10010d80
add esp, 0xc
test esi, esi
je 0x10028c7d
push esi
jmp 0x10028c74
movzx eax, word [ebp - 0x990]
sub eax, 2
je 0x100286ca
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100286e3
push 0x401
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x98c]
call fcn.10031970
add esp, 4
xor cl, cl
lea eax, [ebp - 0x510]
mov byte [ebp - 0xa25], cl
lea ecx, [ebp - 0xa24]
mov dword [ebp - 0xa40], eax
push ecx
push 0
mov edx, eax
mov ecx, edi
call fcn.1000f890
add esp, 8
cmp eax, 1
jne 0x1002871e
lea edx, [ebp - 0xa24]
mov ecx, edi
call fcn.10010130
mov edx, dword [ebp - 0xa24]
test edx, edx
je 0x10028c50
mov ecx, dword [ebp - 0xa30]
mov esi, dword [edx]
call fcn.1000fa20
test esi, esi
je 0x10028c50
mov eax, dword [ebp - 0xa2c]
test eax, eax
je 0x10028755
push eax
call dword [0x1005f678]
add esp, 4
mov ecx, 0x80
lea ebx, [ebx]
mov eax, dword [esi + 4]
mov dword [ebp - 0xa20], eax
mov eax, dword [edi + 0x8c]
cmp eax, 2
mov dword [ebp - 0xa1c], eax
mov eax, 0x11
je 0x10028782
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xa18], eax
mov eax, dword [esi + 0x10]
cmp eax, 0x80
cmova eax, ecx
push eax
push dword [esi + 0x18]
mov dword [ebp - 0xa14], eax
lea eax, [ebp - 0xa10]
push eax
call fcn.1003f7f0
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
je 0x100287ce
lea edx, [ebp - 0xa20]
push edx
push 0
push dword [eax + 0x1a4]
call ecx
add esp, 0xc
jmp 0x100287e6
push dword [ebp - 0xa18]
push dword [ebp - 0xa1c]
push dword [ebp - 0xa20]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xa24], eax
cmp eax, 0xffffffff
jne 0x10028829
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov ecx, 0x80
test esi, esi
jne 0x10028760
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
push str.socket_failure:__s
push dword [ebp - 0xa30]
call fcn.10010d80
add esp, 0xc
jmp 0x10028c7d
push dword [esi + 0x10]
lea eax, [ebp - 0x990]
push dword [esi + 0x18]
push eax
call fcn.1003f7f0
mov eax, dword [esi + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0xa3c]
mov dword [ebp - 0xa34], eax
movzx eax, cx
mov dword [ebp - 0xa2c], eax
cmp cx, word [ebp - 0xa38]
ja 0x1002893a
cmp word [ebp - 0x990], 2
jne 0x1002887b
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x98e], ax
push dword [ebp - 0xa34]
lea eax, [ebp - 0x990]
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100289cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0xa25], 0
je 0x10028914
cmp eax, 0x2741
jne 0x10028914
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
mov eax, dword [ebp - 0xa2c]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0xa30]
call fcn.10010cc0
add esp, 0x10
mov dword [ebp - 0xa34], 0x80
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x990]
push eax
push dword [edi + 0x154]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002895f
mov eax, dword [ebp - 0xa3c]
xor cl, cl
movzx eax, ax
mov byte [ebp - 0xa25], cl
jmp 0x10028927
cmp eax, 0x2740
je 0x10028920
cmp eax, 0xd
jne 0x10028994
mov eax, dword [ebp - 0xa2c]
inc eax
mov dword [ebp - 0xa2c], eax
cmp ax, word [ebp - 0xa38]
jbe 0x10028863
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0xa30]
call fcn.10010d80
mov edx, dword [ebp - 0xa24]
add esp, 8
mov ecx, edi
call fcn.1000f420
jmp 0x10028c7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa30]
call fcn.10010d80
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.1000f420
jmp 0x10028c7d
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
mov eax, dword [ebp - 0xa2c]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0xa30]
call fcn.10010d80
mov edx, dword [ebp - 0xa24]
add esp, 0x10
mov ecx, edi
call fcn.1000f420
jmp 0x10028c7d
mov eax, dword [ebp - 0xa2c]
cmp ax, word [ebp - 0xa38]
ja 0x1002893a
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xa34], 0x80
push eax
lea eax, [ebp - 0x990]
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002895f
push 1
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10028a38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
push str.socket_failure:__s
jmp 0x10028974
mov eax, dword [esi + 4]
sub eax, 2
jne 0x10028a59
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x108]
add ecx, 4
push pe_nt_image_headers32
call fcn.10031970
add esp, 4
cmp ebx, 2
je 0x10028abb
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x990]
jmp 0x10028a70
cmp byte [edi + 0x1d1], 0
jne 0x10028a7d
test ebx, ebx
je 0x10028ab5
cmp ebx, 1
jne 0x10028a88
cmp cx, 2
jne 0x10028ab5
movzx eax, cx
sub eax, 2
jne 0x10028ab5
push dword [ebp - 0x98e]
call esi
movzx eax, ax
mov dword [ebp - 0xa40], eax
test ebx, ebx
je 0x10028bc4
cmp ebx, 1
je 0x10028b05
mov cx, word [ebp - 0x990]
inc ebx
cmp ebx, 2
jne 0x10028a70
xor esi, esi
mov dword [edi + 0x3d4], ebx
mov edx, dword [edi + 0x158]
cmp edx, 0xffffffff
je 0x10028ad5
mov ecx, edi
call fcn.1000f420
mov eax, dword [ebp - 0xa24]
mov dword [edi + 0x158], eax
mov eax, esi
mov byte [edi + 0x1ca], 1
mov dword [edi + 0x3e0], 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x910]
mov edi, 0x2c
lea esi, [ebp - 0x108]
mov cl, byte [esi]
test cl, cl
je 0x10028b2b
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
inc esi
jne 0x10028b16
mov eax, dword [ebp - 0xa40]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.1001e160
mov edi, dword [ebp - 0xa44]
lea eax, [ebp - 0x910]
add esp, 0x14
push eax
push str.PORT
lea eax, [edi + 0x378]
push 0x100593b0
push eax
call fcn.10035350
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028abd
mov ecx, esi
call fcn.10031a10
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0xa30]
call fcn.10010d80
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.1000f420
mov dword [edi + 0x3e0], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
lea eax, [ebp - 0x108]
push eax
xor eax, eax
cmp word [ebp - 0x990], 2
setne al
inc eax
push eax
push str.EPRT
lea eax, [edi + 0x378]
push str._s__d_s_hu
push eax
call fcn.10035350
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10028abd
mov ecx, esi
call fcn.10031a10
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0xa30]
call fcn.10010d80
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.1000f420
mov dword [edi + 0x3d4], 1
mov eax, esi
mov dword [edi + 0x3e0], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa40]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0xa30]
call fcn.10010d80
mov eax, dword [ebp - 0xa2c]
add esp, 0xc
test eax, eax
je 0x10028c7d
push eax
call dword [0x1005f678]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret