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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xff
mov esi, dword [edi]
lea eax, [ebp - 0x103]
push 0
push eax
mov dword [ebp - 0x9b4], edi
mov dword [ebp - 0x990], esi
mov dword [ebp - 0x98c], 0xffffffff
mov byte [ebp - 0x104], 0
call fcn.10161890
mov ecx, dword [ebp - 0x990]
mov esi, dword [esi + 0xa44]
mov dword [ebp - 0x9b0], 0
mov ecx, dword [ecx + 0xa44]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x9a0], 0
mov dword [ebp - 0x9a4], 0
mov dword [ebp - 0x9ac], 1
mov dword [ebp - 0x998], eax
test ecx, ecx
je 0x10073d88
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10073b60
sub ecx, edx
cmp ecx, 1
jbe 0x10073d88
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10073b77
sub ecx, edx
cmp ecx, 0x41
jae 0x10073b8c
mov ecx, 0x41
jmp 0x10073b9a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10073b91
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x101f4010]
add esp, 8
mov dword [ebp - 0x998], eax
test eax, eax
jne 0x10073bc9
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016027d
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 0x5b
jne 0x10073c07
lea eax, [esi + 1]
push 0x5d
push esi
mov dword [ebp - 0x9a8], eax
call fcn.10162cd0
mov esi, eax
add esp, 8
test esi, esi
je 0x10073d32
mov eax, dword [ebp - 0x9a8]
mov ecx, esi
sub ecx, eax
push ecx
push eax
mov eax, dword [ebp - 0x998]
push eax
call fcn.10163f10
jmp 0x10073c84
cmp al, 0x3a
je 0x10073c87
push 0x3a
push esi
call fcn.10162cd0
add esp, 8
mov dword [ebp - 0x994], eax
test eax, eax
je 0x10073d1e
lea eax, [ebp - 0x988]
push eax
push esi
push 0x17
call fcn.10065e00
add esp, 0xc
cmp eax, 1
jne 0x10073c68
mov ecx, dword [ebp - 0x998]
mov dword [ebp - 0x9a4], 0
mov dword [ebp - 0x9a0], 0
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x10073c57
jmp 0x10073d32
mov eax, dword [ebp - 0x994]
sub eax, esi
push eax
mov eax, dword [ebp - 0x998]
push esi
push eax
call fcn.10163f10
mov esi, dword [ebp - 0x994]
add esp, 0xc
test esi, esi
je 0x10073d32
push 0x3a
push esi
call fcn.10162cd0
mov esi, eax
add esp, 8
test esi, esi
je 0x10073d32
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.1016375e
push eax
call fcn.10059860
movzx eax, ax
push 0x2d
push esi
mov dword [ebp - 0x9a0], eax
call fcn.10162cd0
add esp, 0x18
test eax, eax
je 0x10073d0d
push 0xa
inc eax
push 0
push eax
call fcn.1016375e
push eax
call fcn.10059860
movzx edx, ax
mov eax, dword [ebp - 0x9a0]
add esp, 0x10
mov dword [ebp - 0x9a4], edx
cmp ax, dx
jbe 0x10073d32
mov dword [ebp - 0x9a4], 0
mov dword [ebp - 0x9a0], 0
jmp 0x10073d32
mov eax, dword [ebp - 0x9a0]
movzx eax, ax
mov dword [ebp - 0x9a4], eax
jmp 0x10073d32
mov ecx, dword [ebp - 0x998]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x10073d26
mov esi, dword [ebp - 0x998]
cmp byte [esi], 0
je 0x10073d8a
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [edi + 0x50]
push esi
push dword [edi + 0x8c]
push dword [eax + 0x18]
call fcn.1007f830
add esp, 4
push eax
mov eax, dword [edi + 0x50]
push dword [eax + 4]
call fcn.100110c0
add esp, 0x18
sub eax, 0
je 0x10073d81
dec eax
je 0x1007436c
dec eax
jne 0x10073d8a
jmp 0x10073e27
mov eax, esi
jmp 0x10073e2d
xor esi, esi
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [edi + 0x1a8]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10073ddf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1007efb0
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x990]
call fcn.100575e0
push esi
call dword [0x101f4004]
add esp, 0x18
jmp 0x1007436c
mov ax, word [ebp - 0x988]
push 0x401
cmp ax, 0x17
je 0x10073e05
lea ecx, [ebp - 0x508]
push ecx
lea ecx, [ebp - 0x984]
movzx eax, ax
push ecx
push eax
jmp 0x10073e15
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x980]
push eax
push 0x17
call fcn.10066890
add esp, 0x10
mov dword [ebp - 0x9ac], 0
lea eax, [ebp - 0x508]
lea ecx, [ebp - 0x9b0]
push ecx
push 0
push eax
push edi
mov dword [ebp - 0x994], eax
call fcn.1004ea60
add esp, 0x10
cmp eax, 1
jne 0x10073e5b
lea eax, [ebp - 0x9b0]
push eax
push edi
call fcn.1004deb0
add esp, 8
mov eax, dword [ebp - 0x9b0]
test eax, eax
je 0x10074346
mov esi, dword [eax]
push eax
push dword [ebp - 0x990]
mov dword [ebp - 0x9a8], esi
call fcn.1004eca0
add esp, 8
test esi, esi
je 0x10074346
mov eax, dword [ebp - 0x998]
push eax
call dword [0x101f4004]
add esp, 4
mov dword [ebp - 0x98c], 0xffffffff
mov dword [ebp - 0x994], 0
lea esp, [esp]
lea eax, [ebp - 0x98c]
push eax
push 0
push esi
push edi
call fcn.10058840
add esp, 0x10
mov dword [ebp - 0x998], eax
test eax, eax
je 0x10073ee8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x994], eax
mov dword [ebp - 0x9a8], esi
test esi, esi
jne 0x10073eb0
jmp 0x10073ef2
test esi, esi
jne 0x10073f12
mov eax, dword [ebp - 0x994]
push eax
push edi
call fcn.1007efb0
push eax
push str.socket_failure:__s
push dword [ebp - 0x990]
call fcn.100575e0
add esp, 0x14
jmp 0x1007436c
push dword [esi + 0x10]
lea eax, [ebp - 0x988]
push dword [esi + 0x18]
push eax
call fcn.10161ee0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x9a4]
mov dword [ebp - 0x99c], eax
mov eax, dword [ebp - 0x9a0]
movzx esi, ax
add esp, 0xc
movzx ecx, cx
movzx eax, ax
mov dword [ebp - 0x994], eax
cmp eax, ecx
jg 0x10074082
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x99c]
mov word [ebp - 0x986], ax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x98c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10074082
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9ac], 0
je 0x10074007
cmp eax, 0x2741
jne 0x10074007
push eax
push edi
call fcn.1007efb0
mov esi, dword [ebp - 0x990]
push eax
push dword [ebp - 0x994]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.100576c0
add esp, 0x18
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [edi + 0x1a8]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10074025
mov eax, dword [ebp - 0x9a0]
mov edx, dword [ebp - 0x9a4]
movzx esi, ax
mov dword [ebp - 0x9ac], 0
movzx eax, si
movzx ecx, dx
jmp 0x10073f45
cmp eax, 0x2740
je 0x10074013
cmp eax, 0xd
jne 0x10074052
mov edx, dword [ebp - 0x9a4]
inc esi
movzx eax, si
movzx ecx, dx
jmp 0x10073f45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1007efb0
push eax
push str.getsockname___failed:__s
push esi
call fcn.100575e0
push dword [ebp - 0x98c]
push edi
call fcn.10057f40
add esp, 0x1c
jmp 0x1007436c
push eax
push edi
call fcn.1007efb0
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x990]
call fcn.100575e0
push dword [ebp - 0x98c]
push edi
call fcn.10057f40
add esp, 0x20
jmp 0x1007436c
cmp si, word [ebp - 0x9a4]
jbe 0x100740ac
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x990]
call fcn.100575e0
push dword [ebp - 0x98c]
push edi
call fcn.10057f40
jmp 0x10074369
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x98c]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100740f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1007efb0
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x990]
jmp 0x10074039
push 1
push dword [ebp - 0x98c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10074122
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1007efb0
push eax
push str.socket_failure:__s
push dword [ebp - 0x990]
jmp 0x10074039
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x9a8]
call fcn.1004ea10
add esp, 0xc
cmp dword [edi + 0x2f0], 0
jne 0x10074158
cmp dword [edi + 0x2c8], 0
je 0x10074158
mov dword [edi + 0x2f0], 1
cmp ebx, 2
je 0x100741c0
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x988]
lea ebx, [ebx]
cmp dword [edi + 0x2f0], 0
jne 0x1007417d
test ebx, ebx
je 0x100741ba
cmp ebx, 1
jne 0x10074188
cmp cx, 2
jne 0x100741ba
movzx eax, cx
sub eax, 2
je 0x10074195
sub eax, 0x15
jne 0x100741ba
push dword [ebp - 0x986]
call esi
movzx eax, ax
mov dword [ebp - 0x9a8], eax
test ebx, ebx
je 0x100742be
cmp ebx, 1
je 0x10074206
mov cx, word [ebp - 0x988]
inc ebx
cmp ebx, 2
jne 0x10074170
mov esi, dword [ebp - 0x998]
push edi
mov dword [edi + 0x5b0], ebx
call fcn.10071780
mov eax, dword [ebp - 0x98c]
push 0x1c
push edi
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x2d4], 1
call fcn.10071760
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016027d
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x908]
lea esi, [ebp - 0x104]
mov edi, 0x2c
mov cl, byte [esi]
test cl, cl
je 0x1007422c
movzx eax, cl
cmp cl, 0x2e
cmove eax, edi
mov byte [edx], al
inc edx
inc esi
jne 0x10074217
mov eax, dword [ebp - 0x9a8]
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.100640a0
mov edi, dword [ebp - 0x9b4]
lea eax, [ebp - 0x908]
push eax
push str.PORT
lea eax, [edi + 0x538]
push 0x10192800
push eax
call fcn.10082660
mov esi, eax
add esp, 0x24
test esi, esi
je 0x100741c6
push esi
call fcn.1007f0b0
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x990]
call fcn.100575e0
push dword [ebp - 0x98c]
push edi
call fcn.10057f40
push 0
push edi
call fcn.10071760
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016027d
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
push eax
xor eax, eax
cmp word [ebp - 0x988], 2
setne al
inc eax
push eax
push str.EPRT
lea eax, [edi + 0x538]
push str._s__d_s_hu
push eax
call fcn.10082660
mov esi, eax
add esp, 0x18
test esi, esi
je 0x100741c6
push esi
call fcn.1007f0b0
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x990]
call fcn.100575e0
push dword [ebp - 0x98c]
push edi
call fcn.10057f40
push 0
push edi
mov dword [edi + 0x5b0], 1
call fcn.10071760
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016027d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x994]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0x990]
call fcn.100575e0
mov eax, dword [ebp - 0x998]
push eax
call dword [0x101f4004]
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x1e
pop ebx
call fcn.1016027d
mov esp, ebp
pop ebp
ret