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

Disassembly:
sub esp, 0x624
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x620], eax
mov eax, dword [esp + 0x62c]
push ebx
push ebp
mov ebp, dword [esp + 0x630]
mov ecx, dword [ebp + 0xc]
push esi
push edi
push 0x2e
xor edi, edi
lea edx, [esp + 0xbd]
push edi
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xc4], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebp + 0x5ac]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x14], edi
cmp esi, edi
je 0x1019d504
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1019d3b1
sub eax, edx
cmp eax, 1
jbe 0x1019d504
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1019d3c8
sub eax, edx
cmp eax, 0x41
jae 0x1019d3dd
mov eax, 0x41
jmp 0x1019d3eb
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1019d3e2
sub eax, edx
inc eax
push 1
push eax
call dword [0x10263bbc]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1019d40a
mov eax, 0x1b
jmp 0x1019db58
mov al, byte [esi]
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x1019d56c
lea eax, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x3c], eax
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x1019d4b3
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
test edi, edi
je 0x1019d4b3
push 0x3a
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x1019d4b3
mov edi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea eax, [esi + 1]
push 0
push eax
call edi
push eax
call fcn.10181a30
movzx ecx, ax
push 0x2d
push esi
mov dword [esp + 0x38], ecx
call ebx
add esp, 0x18
test eax, eax
je 0x1019d5e1
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.10181a30
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp word [esp + 0x20], ax
jbe 0x1019d4b3
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x14]
cmp byte [ebx], 0
je 0x1019d504
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x50]
push 0x401
lea eax, [esp + 0x230]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.101b1580
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.10060ef0
add esp, 0x18
sub eax, 0
je 0x1019d5ef
dec eax
je 0x1019d562
dec eax
je 0x1019d63d
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], 0x80
mov eax, dword [edx + 0x158]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1019d5f3
push 0x100
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101af230
push eax
push str.getsockname___failed:__s
push ebp
call fcn.1017f190
mov edx, dword [esp + 0x2c]
push edx
call dword [0x10263bb0]
add esp, 0x1c
mov eax, 0x1e
jmp 0x1019db58
cmp al, 0x3a
jne 0x1019d577
mov edi, esi
jmp 0x1019d44b
push 0x3a
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x1019d5ca
lea eax, [esp + 0x38]
push eax
push esi
push 0x17
call fcn.101affc0
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jne 0x1019d5bf
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1019d5b0
jmp 0x1019d4b3
mov ecx, edi
sub ecx, esi
push ecx
push esi
jmp 0x1019d441
mov edx, dword [esp + 0x14]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1019d5d2
jmp 0x1019d4b3
movzx edx, word [esp + 0x20]
mov dword [esp + 0x18], edx
jmp 0x1019d4b3
mov esi, ebx
jmp 0x1019d644
movzx eax, word [esp + 0x38]
push 0x401
cmp eax, 0x17
je 0x1019d612
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
jmp 0x1019d621
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0x17
call fcn.101b19a0
add esp, 0x10
test eax, eax
je 0x1019d562
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], 0
lea esi, [esp + 0x22c]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push esi
push ebp
call fcn.101a9900
add esp, 0x14
cmp eax, 1
jne 0x1019d66a
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.10175460
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1019d682
mov edi, dword [eax]
push eax
push ebp
call fcn.101a9ba0
add esp, 8
test edi, edi
jne 0x1019d6a2
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.1017f190
push ebx
call dword [0x10263bb0]
add esp, 0x10
mov eax, 0x1e
jmp 0x1019db58
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x10263bb0]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
lea edx, [esp + 0x10]
push edx
push 0
push edi
push ebp
call fcn.10185aa0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x1019d6e6
call ebx
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x1019d6c0
jmp 0x1019d6ea
test edi, edi
jne 0x1019d716
push 0x100
lea eax, [esp + 0x130]
push eax
push esi
call fcn.101af230
push eax
push str.socket_failure:__s
push ebp
call fcn.1017f190
add esp, 0x18
mov eax, 0x1e
jmp 0x1019db58
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x10]
mov ebx, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x1c], ecx
movzx esi, ax
cmp ax, word [esp + 0x18]
ja 0x1019d877
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x3a], ax
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1019d870
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x1019d7d9
cmp eax, 0x2741
jne 0x1019d7d9
push 0x100
lea edx, [esp + 0x130]
push edx
push eax
call fcn.101af230
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push ebp
call fcn.1017f0b0
add esp, 0x1c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], 0x80
mov eax, dword [ebx + 0x158]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1019d7f6
movzx esi, word [esp + 0x20]
mov dword [esp + 0x30], eax
jmp 0x1019d7e6
cmp eax, 0x2740
je 0x1019d7e5
cmp eax, 0xd
jne 0x1019d834
inc esi
cmp si, word [esp + 0x18]
jbe 0x1019d748
jmp 0x1019d877
push 0x100
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101af230
push eax
push str.getsockname___failed:__s
push ebp
call fcn.1017f190
mov edx, dword [esp + 0x28]
push edx
push ebx
push ebp
call fcn.10185a20
add esp, 0x24
mov eax, 0x1e
jmp 0x1019db58
push 0x100
lea ecx, [esp + 0x130]
push ecx
push eax
call fcn.101af230
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebp
call fcn.1017f190
mov eax, dword [esp + 0x2c]
push eax
push ebx
push ebp
call fcn.10185a20
add esp, 0x28
mov eax, 0x1e
jmp 0x1019db58
cmp si, word [esp + 0x18]
jbe 0x1019d89b
push str.bind___failed__we_ran_out_of_ports_
push ebp
call fcn.1017f190
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push ebp
call fcn.10185a20
add esp, 0x14
mov eax, 0x1e
jmp 0x1019db58
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1019d8fa
push 0x100
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101af230
push eax
push str.getsockname___failed:__s
push ebp
call fcn.1017f190
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.10185a20
add esp, 0x24
mov eax, 0x1e
jmp 0x1019db58
mov ecx, dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1019d949
push 0x100
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101af230
push eax
push str.socket_failure:__s
push ebp
call fcn.1017f190
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.10185a20
add esp, 0x24
mov eax, 0x1e
jmp 0x1019db58
push 0x2f
lea ecx, [esp + 0xbc]
push ecx
push edi
call fcn.101a8e30
add esp, 0xc
cmp dword [ebx + 0x2c4], 0
jne 0x1019d978
cmp dword [ebx + 0x2a8], 0
je 0x1019d978
mov dword [ebx + 0x2c4], 1
mov esi, dword [esp + 0x24]
cmp esi, 2
je 0x1019d9d8
mov cx, word [esp + 0x38]
cmp dword [ebx + 0x2c4], 0
jne 0x1019d993
test esi, esi
je 0x1019d9d2
cmp esi, 1
jne 0x1019d99e
cmp cx, 2
jne 0x1019d9d2
movzx eax, cx
sub eax, 2
je 0x1019d9b2
sub eax, 0x15
jne 0x1019d9d2
mov edx, dword [esp + 0x3a]
push edx
jmp 0x1019d9b7
mov eax, dword [esp + 0x3a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test esi, esi
je 0x1019d9e1
cmp esi, 1
je 0x1019da5f
mov cx, word [esp + 0x38]
inc esi
cmp esi, 2
jne 0x1019d986
mov edi, dword [esp + 0x14]
jmp 0x1019db01
xor eax, eax
cmp word [esp + 0x38], 2
movzx ecx, di
setne al
push ecx
lea edx, [esp + 0xbc]
push edx
mov dword [esp + 0x2c], esi
lea esi, [ebx + 0x3a0]
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push esi
push ebp
call fcn.101b2b80
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x1019dafd
push edi
call fcn.101ae770
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.1017f190
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push ebp
call fcn.10185a20
mov dword [esi + 0x88], 1
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [edx + 0x434], 0
jmp 0x1019db56
lea ecx, [esp + 0xe8]
lea edx, [esp + 0xb8]
lea ecx, [ecx]
mov al, byte [edx]
test al, al
je 0x1019da85
cmp al, 0x2e
jne 0x1019da7f
mov byte [ecx], 0x2c
jmp 0x1019da81
mov byte [ecx], al
inc ecx
inc edx
jne 0x1019da70
movzx eax, di
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.10188a50
lea eax, [esp + 0xfc]
push eax
push str.PORT
push 0x1023ccec
lea eax, [ebx + 0x3a0]
push eax
push ebp
call fcn.101b2b80
mov edi, eax
add esp, 0x28
test edi, edi
je 0x1019db01
push edi
call fcn.101ae770
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.1017f190
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push ebp
call fcn.10185a20
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [edx + 0x434], 0
jmp 0x1019db56
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x428], esi
mov eax, dword [ebx + 0x15c]
cmp eax, 0xffffffff
je 0x1019db27
push eax
push ebx
push ebp
call fcn.10185a20
add esp, 0xc
mov dword [ebx + 0x15c], 0xffffffff
xor eax, eax
mov dword [ebx + 0x268], eax
mov dword [ebx + 0x270], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x15c], eax
mov dword [ebx + 0x268], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x434], 0x1c
mov eax, edi
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101ce9e2
add esp, 0x624
ret