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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x990], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi]
push 0xff
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov dword [ebp - 0x994], ebx
mov byte [ebp - 0x104], 0
call fcn.10073290
mov edi, dword [ebx + 0x484]
xor eax, eax
mov dword [ebp - 0x9b4], eax
mov ecx, dword [ebx + 0x484]
add esp, 0xc
mov dword [ebp - 0x9a0], eax
mov dword [ebp - 0x9a8], eax
mov dword [ebp - 0x9b0], 1
mov dword [ebp - 0x98c], eax
test ecx, ecx
je 0x10061a0f
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10061886
sub ecx, edx
cmp ecx, 1
jbe 0x10061a07
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1006189d
sub edx, ecx
push 0x16
pop ecx
cmp edx, ecx
jb 0x100618bb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100618b2
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x100b5010]
pop ecx
pop ecx
mov dword [ebp - 0x98c], eax
test eax, eax
jne 0x100618db
push 0x1b
pop eax
jmp 0x10061e54
cmp byte [edi], 0x3a
jne 0x100618e4
mov ecx, edi
jmp 0x10061927
push 0x3a
push edi
call fcn.10074090
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x998], ecx
test ecx, ecx
je 0x10061915
sub ecx, edi
push ecx
push edi
mov edi, dword [ebp - 0x98c]
push edi
call fcn.100760c0
mov ecx, dword [ebp - 0x998]
add esp, 0xc
jmp 0x1006192d
mov edx, dword [ebp - 0x98c]
sub edx, edi
mov al, byte [edi]
mov byte [edx + edi], al
inc edi
test al, al
jne 0x1006191d
mov edi, dword [ebp - 0x98c]
test ecx, ecx
je 0x100619ba
push 0x3a
push ecx
call fcn.10074090
pop ecx
pop ecx
mov dword [ebp - 0x998], eax
test eax, eax
je 0x100619ba
push 0xa
lea ecx, [eax + 1]
push 0
push ecx
call fcn.10076e8e
push eax
call fcn.100501dd
movzx eax, ax
push 0x2d
push dword [ebp - 0x998]
mov dword [ebp - 0x9a0], eax
call fcn.10074090
add esp, 0x18
test eax, eax
je 0x10061998
push 0xa
inc eax
push 0
push eax
call fcn.10076e8e
push eax
call fcn.100501dd
mov ecx, dword [ebp - 0x9a0]
add esp, 0x10
movzx eax, ax
jmp 0x100619a1
mov ecx, dword [ebp - 0x9a0]
movzx eax, cx
mov dword [ebp - 0x9a8], eax
cmp cx, ax
jbe 0x100619ba
and dword [ebp - 0x9a8], 0
and dword [ebp - 0x9a0], 0
cmp byte [edi], 0
je 0x100619fd
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x54]
push edi
push dword [esi + 0x90]
push dword [eax + 0x18]
call fcn.1006503c
pop ecx
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call fcn.1006503c
add esp, 0x18
sub eax, 0
je 0x100619ff
dec eax
je 0x10061a5c
dec eax
jne 0x10061a11
jmp 0x10061a8d
xor edi, edi
test edi, edi
jne 0x10061a93
mov edi, dword [ebp - 0x98c]
jmp 0x10061a11
mov edi, eax
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x1a8]
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10061a63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.10052f6d
push eax
push str.getsockname___failed:__s
push ebx
call fcn.10046801
push edi
call dword [0x100b5004]
add esp, 0x18
push 0x1e
jmp 0x100618d5
push 0x401
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x984]
push eax
movzx eax, word [ebp - 0x988]
push eax
call fcn.10053857
add esp, 0x10
and dword [ebp - 0x9b0], 0
lea edi, [ebp - 0x508]
lea eax, [ebp - 0x9b4]
push eax
push 0
push edi
push esi
call fcn.1003e7bf
add esp, 0x10
cmp eax, 1
jne 0x10061aba
lea eax, [ebp - 0x9b4]
push eax
push esi
call fcn.1003dfa4
pop ecx
pop ecx
mov eax, dword [ebp - 0x9b4]
test eax, eax
je 0x10061ad6
mov ebx, dword [eax]
push eax
push dword [ebp - 0x994]
call fcn.1003e90a
pop ecx
pop ecx
jmp 0x10061ad8
xor ebx, ebx
test ebx, ebx
jne 0x10061b02
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x994]
call fcn.10046801
mov eax, dword [ebp - 0x98c]
push eax
call dword [0x100b5004]
add esp, 0x10
jmp 0x10061a5c
mov eax, dword [ebp - 0x98c]
push eax
call dword [0x100b5004]
or dword [ebp - 0x990], 0xffffffff
and dword [ebp - 0x99c], 0
pop ecx
lea eax, [ebp - 0x990]
push eax
push 0
push ebx
push esi
call fcn.1004762f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10061b4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x99c], eax
test ebx, ebx
jne 0x10061b1e
jmp 0x10061b52
mov eax, dword [ebp - 0x99c]
test ebx, ebx
jne 0x10061b76
push eax
push esi
call fcn.10052f6d
push eax
push str.socket_failure:__s
push dword [ebp - 0x994]
call fcn.10046801
add esp, 0x14
jmp 0x10061a5c
push dword [ebx + 0x10]
lea eax, [ebp - 0x988]
push dword [ebx + 0x18]
push eax
call fcn.10073400
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x9a8]
mov dword [ebp - 0x9a4], eax
mov eax, dword [ebp - 0x9a0]
movzx eax, ax
movzx edx, cx
mov ecx, dword [ebp - 0x9a0]
add esp, 0xc
mov dword [ebp - 0x98c], eax
movzx ecx, cx
mov dword [ebp - 0x99c], 2
jmp 0x10061ca0
mov ecx, dword [ebp - 0x99c]
cmp word [ebp - 0x988], cx
jne 0x10061be1
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x986], ax
push dword [ebp - 0x9a4]
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10061d18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9b0], 0
je 0x10061c75
mov ecx, 0x2741
cmp eax, ecx
jne 0x10061c75
push ecx
push esi
call fcn.10052f6d
push eax
push dword [ebp - 0x998]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0x994]
call fcn.100468bd
add esp, 0x18
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x1a8]
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10061cb0
mov eax, dword [ebp - 0x9a0]
and dword [ebp - 0x9b0], 0
movzx eax, ax
jmp 0x10061c88
cmp eax, 0x2740
je 0x10061c81
cmp eax, 0xd
jne 0x10061ce2
mov eax, dword [ebp - 0x98c]
inc eax
mov dword [ebp - 0x98c], eax
movzx ecx, ax
mov eax, dword [ebp - 0x9a8]
movzx edx, ax
mov eax, dword [ebp - 0x98c]
mov dword [ebp - 0x998], ecx
cmp ecx, edx
jle 0x10061bc4
jmp 0x10061d1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.10052f6d
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x994]
call fcn.10046801
push dword [ebp - 0x990]
push esi
call fcn.10046f2d
add esp, 0x1c
jmp 0x10061a5c
push eax
push esi
call fcn.10052f6d
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x994]
call fcn.10046801
push dword [ebp - 0x990]
push esi
call fcn.10046f2d
add esp, 0x20
jmp 0x10061a5c
mov eax, dword [ebp - 0x98c]
cmp ax, word [ebp - 0x9a8]
jbe 0x10061d48
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x994]
call fcn.10046801
push dword [ebp - 0x990]
push esi
call fcn.10046f2d
jmp 0x10061afa
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
mov dword [ebp - 0x9a4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10061cb0
push 1
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10061d9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.10052f6d
push eax
push str.socket_failure:__s
jmp 0x10061cc3
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.1003e795
mov edx, dword [ebp - 0x9ac]
mov ebx, dword [ebp - 0x99c]
add esp, 0xc
cmp edx, ebx
je 0x10061e22
mov cx, word [ebp - 0x988]
cmp dword [esi + 0x414], 0
jne 0x10061dd7
test edx, edx
je 0x10061e17
cmp edx, 1
jne 0x10061de1
cmp cx, bx
jne 0x10061e17
movzx eax, cx
sub eax, ebx
jne 0x10061e17
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x9ac]
movzx ebx, ax
test edx, edx
je 0x10061f09
cmp edx, 1
je 0x10061e63
mov cx, word [ebp - 0x988]
mov ebx, dword [ebp - 0x99c]
inc edx
mov dword [ebp - 0x9ac], edx
cmp edx, ebx
jne 0x10061dca
lea ebx, [esi + 0x6b8]
push esi
mov dword [ebx + 0x74], edx
call fcn.1005f8cd
mov eax, dword [ebp - 0x990]
push 0x1c
push esi
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x3f8], 1
call fcn.1005f8bc
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
leave
ret
lea edx, [ebp - 0x908]
lea edi, [ebp - 0x104]
mov cl, byte [edi]
test cl, cl
je 0x10061e92
movzx eax, cl
cmp cl, 0x2e
mov dword [ebp - 0x998], 0x2c
cmove eax, dword [ebp - 0x998]
mov byte [edx], al
inc edx
inc edi
jne 0x10061e6f
mov ecx, ebx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.100511fb
lea eax, [ebp - 0x908]
push eax
push str.PORT
push 0x1009d890
lea ebx, [esi + 0x6b8]
push ebx
call fcn.10068a06
mov edi, eax
add esp, 0x24
test edi, edi
je 0x10061f70
push edi
call fcn.10053061
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x994]
call fcn.10046801
push dword [ebp - 0x990]
push esi
call fcn.10046f2d
push 0
push esi
call fcn.1005f8bc
add esp, 0x20
jmp 0x10061e52
mov ecx, dword [ebp - 0x99c]
push ebx
lea eax, [ebp - 0x104]
push eax
xor eax, eax
cmp word [ebp - 0x988], cx
lea ebx, [esi + 0x6b8]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
call fcn.10068a06
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10061f70
push edi
call fcn.10053061
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x994]
call fcn.10046801
push dword [ebp - 0x990]
push esi
call fcn.10046f2d
mov dword [ebx + 0x74], 1
jmp 0x10061ef9
mov edx, dword [ebp - 0x9ac]
jmp 0x10061e28