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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x9dc
mov eax, dword [eax]
lea edi, [ebp - 0x914]
test edi, 2
mov dword [ebp - 0x9d0], edx
mov edx, 0xfb
mov dword [ebp - 0x9bc], eax
mov dword [ebp - 0x9ac], 0xffffffff
mov dword [ebp - 0x919], 0
mov byte [ebp - 0x915], 0
jne 0x6b24d547
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x6b24d1d5
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and edx, 1
je 0x6b24d1dd
mov byte [edi], 0
mov eax, dword [ebp - 0x9bc]
mov dword [ebp - 0x9a4], 0
mov edi, dword [eax + 0x3dc]
test edi, edi
je 0x6b24d520
mov dword [esp], edi
call sub.msvcrt.dll_strlen
cmp eax, 1
jbe 0x6b24d520
cmp eax, 0x10
mov edx, 0x11
lea ecx, [eax + 1]
cmovae edx, ecx
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [0x6b286040]
mov ebx, eax
mov eax, 0x1b
test ebx, ebx
je 0x6b24d480
cmp byte [edi], 0x3a
je 0x6b24d540
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call sub.msvcrt.dll_strchr
test eax, eax
mov edx, eax
je 0x6b24d838
sub eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x9c0], edx
call sub.msvcrt.dll_strncpy
mov edx, dword [ebp - 0x9c0]
mov dword [esp + 4], 0x3a
mov dword [esp], edx
call sub.msvcrt.dll_strchr
test eax, eax
mov edi, eax
je 0x6b24d488
lea eax, [edi + 1]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.6b278350
mov dword [esp + 4], 0x2d
mov dword [esp], edi
mov word [ebp - 0x9c0], ax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6b24d491
add eax, 1
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.6b278350
cmp word [ebp - 0x9c0], ax
jbe 0x6b24d935
xor ecx, ecx
xor edi, edi
cmp byte [ebx], 0
mov word [ebp - 0x9c0], cx
mov word [ebp - 0x9c2], di
je 0x6b24d4a8
mov eax, dword [esi + 0x70]
lea edi, [ebp - 0x419]
mov dword [esp + 0x10], 0x401
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.6b258920
mov edx, eax
mov eax, 0x1e
cmp edx, 1
je 0x6b24d480
jb 0x6b24d920
cmp edx, 2
jne 0x6b24d4a8
mov dword [ebp - 0x9cc], edi
mov dword [ebp - 0x9c8], 1
jmp 0x6b24d593
lea eax, [ebp - 0x919]
mov dword [esp], edi
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
call fcn.6b2424a0
mov edi, dword [ebp - 0x9d0]
cmp dword [ebp - 0x9d0], 2
jne 0x6b24d3bc
jmp 0x6b24d92b
add edi, 1
cmp edi, 2
je 0x6b24d92b
mov eax, edi
or eax, dword [esi + 0x26c]
je 0x6b24d3b0
cmp edi, 1
je 0x6b24d99e
cmp word [ebp - 0x9a0], 2
jne 0x6b24d3b0
movzx eax, word [ebp - 0x99e]
mov dword [esp], eax
call sub.ws2_32.dll_ntohs
sub esp, 4
test edi, edi
jne 0x6b24d3b0
xor edx, edx
movzx eax, ax
cmp word [ebp - 0x9a0], 2
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x919]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x4b0]
setne dl
add edx, 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.EPRT
mov dword [esp + 4], str._s__d_s_hu
mov dword [esp], eax
call fcn.6b276c40
test eax, eax
mov edi, eax
jne 0x6b24d94f
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x518], ebx
cmp eax, 0xffffffff
je 0x6b24d459
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6b262a20
mov eax, dword [ebp - 0x9ac]
mov dword [esi + 0x250], 1
mov dword [esi + 0x524], 0x1c
mov dword [esi + 0x13c], eax
xor eax, eax
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov word [ebp - 0x9c0], ax
movzx eax, word [ebp - 0x9c0]
mov word [ebp - 0x9c2], ax
cmp byte [ebx], 0
jne 0x6b24d322
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a0]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x138]
mov dword [ebp - 0x9a8], pe_nt_image_headers32
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
test eax, eax
je 0x6b24d558
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b268f00
mov dword [esp + 4], str.getsockname___failed:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
test ebx, ebx
je 0x6b24d513
mov dword [esp], ebx
call dword [0x6b28604c]
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x9c0], di
mov word [ebp - 0x9c2], ax
jmp 0x6b24d4a8
mov edx, edi
jmp 0x6b24d27b
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x6b24d1be
lea eax, [ebp - 0x99c]
mov dword [esp + 4], eax
movzx eax, word [ebp - 0x9a0]
lea edi, [ebp - 0x419]
mov dword [esp + 0xc], 0x401
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.6b26a170
mov dword [ebp - 0x9c8], 0
mov dword [ebp - 0x9cc], edi
mov eax, dword [ebp - 0x9cc]
lea edi, [ebp - 0x9a4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b242650
cmp eax, 1
je 0x6b24d827
mov eax, dword [ebp - 0x9a4]
test eax, eax
je 0x6b24d810
mov edi, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b2428b0
test edi, edi
je 0x6b24d810
test ebx, ebx
je 0x6b24d5f7
mov dword [esp], ebx
call dword [0x6b28604c]
mov dword [ebp - 0x9ac], 0xffffffff
lea ebx, [ebp - 0x9ac]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.6b262aa0
test eax, eax
jne 0x6b24d7d0
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x9a0]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x9a8], eax
movzx eax, word [ebp - 0x9c2]
cmp word [ebp - 0x9c0], ax
jb 0x6b24d6ba
mov ebx, eax
cmp word [ebp - 0x9a0], 2
je 0x6b24d780
mov eax, dword [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9ac]
mov dword [esp], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
test eax, eax
je 0x6b24d890
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2741
je 0x6b24d6f0
cmp eax, 0xd
jne 0x6b24d852
add ebx, 1
cmp bx, word [ebp - 0x9c0]
jbe 0x6b24d65e
mov eax, dword [ebp - 0x9bc]
mov dword [esp + 4], str.bind___failed__we_ran_out_of_ports_
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x9ac]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b262a20
mov eax, 0x1e
jmp 0x6b24d518
mov edx, dword [ebp - 0x9c8]
test edx, edx
je 0x6b24d6a5
mov dword [esp + 4], 0x2741
movzx ebx, bx
mov dword [esp], esi
call fcn.6b268f00
mov dword [esp + 8], ebx
mov dword [esp + 4], str.bind_port_hu__on_non_local_address_failed:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c140
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a0]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x138]
mov dword [ebp - 0x9a8], pe_nt_image_headers32
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x6b24d7a0
cmp word [ebp - 0x9a0], 2
movzx ebx, word [ebp - 0x9c2]
mov dword [ebp - 0x9c8], 0
jne 0x6b24d66c
lea esi, [esi]
movzx eax, bx
mov dword [esp], eax
call sub.ws2_32.dll_htons
sub esp, 4
mov word [ebp - 0x99e], ax
jmp 0x6b24d66c
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b268f00
mov dword [esp + 4], str.getsockname___failed:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
jmp 0x6b24d6d0
call sub.ws2_32.dll_WSAGetLastError
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x6b24d607
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6b268f00
mov dword [esp + 4], str.socket_failure:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, 0x1e
jmp 0x6b24d480
mov eax, dword [ebp - 0x9cc]
mov dword [esp + 4], str.failed_to_resolve_the_address_provided_to_PORT:__s
mov dword [esp + 8], eax
jmp 0x6b24d4f8
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.6b279ea0
jmp 0x6b24d5c0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
xor eax, eax
mov word [ebp - 0x9c0], ax
jmp 0x6b24d491
cmp eax, 0x2740
je 0x6b24d6ae
mov dword [esp + 4], eax
movzx ebx, bx
mov dword [esp], esi
call fcn.6b268f00
mov dword [esp + 8], ebx
mov dword [esp + 4], str.bind_port_hu__failed:__s
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
jmp 0x6b24d6d0
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9ac]
mov dword [ebp - 0x9a8], pe_nt_image_headers32
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x6b24d7a0
mov eax, dword [ebp - 0x9ac]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.ws2_32.dll_listen
sub esp, 8
test eax, eax
mov ebx, eax
je 0x6b24d381
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b268f00
mov dword [esp + 4], str.socket_failure:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
jmp 0x6b24d6d0
mov dword [ebp - 0x9cc], ebx
jmp 0x6b24d372
mov ebx, 2
jmp 0x6b24d43c
movzx ecx, word [ebp - 0x9c0]
mov word [ebp - 0x9c0], ax
mov word [ebp - 0x9c2], cx
jmp 0x6b24d49f
mov dword [esp], eax
call sym.libcurl.dll_curl_easy_strerror
mov dword [esp + 4], str.Failure_sending_EPRT_command:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x9ac]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b262a20
mov eax, edi
mov dword [esi + 0x518], 1
mov dword [esi + 0x524], 0
jmp 0x6b24d480
cmp word [ebp - 0x9a0], 2
jne 0x6b24d92b
movzx eax, word [ebp - 0x99e]
lea edi, [ebp - 0x919]
mov dword [esp], eax
call sub.ws2_32.dll_ntohs
push ebx
lea ebx, [ebp - 0x819]
mov edx, ebx
mov word [ebp - 0x9c0], ax
jmp 0x6b24d9e6
cmp cl, 0x2e
mov eax, 0x2c
cmove ecx, eax
add edx, 1
mov byte [edx - 1], cl
add edi, 1
je 0x6b24d9ed
movzx ecx, byte [edi]
test cl, cl
jne 0x6b24d9d0
movzx eax, word [ebp - 0x9c0]
mov byte [edx], 0
mov dword [esp], edx
mov dword [esp + 8], str.__d__d
movzx ecx, al
movzx eax, ah
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x14
call sym.libcurl.dll_curl_msnprintf
lea eax, [esi + 0x4b0]
mov dword [esp + 0xc], ebx
mov ebx, 1
mov dword [esp + 8], str.PORT
mov dword [esp + 4], 0x6b288700
mov dword [esp], eax
call fcn.6b276c40
test eax, eax
mov edi, eax
je 0x6b24d43c
mov dword [esp], eax
call sym.libcurl.dll_curl_easy_strerror
mov dword [esp + 4], str.Failure_sending_PORT_command:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x9ac]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b262a20
mov eax, edi
mov dword [esi + 0x524], 0
jmp 0x6b24d480