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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9dc
mov dword [ebp - 0x9b4], eax
mov dword [ebp - 0x9c4], edx
mov eax, dword [eax]
mov dword [ebp - 0x9bc], eax
mov dword [ebp - 0x1a0], 0
lea edi, [ebp - 0x19c]
xor eax, eax
mov ecx, 0xfc
rep stosb byte es:[edi], al
lea ebx, [ebp - 0xa0]
mov edx, dword [ebp - 0x9bc]
mov esi, dword [edx + 0x304]
mov dword [ebp - 0x20], 0
test esi, esi
je 0x6735c39c
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 1
jbe 0x6735c39c
cmp eax, 0xf
jbe 0x6735c204
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [0x67391014]
mov edi, eax
test eax, eax
je 0x6735c544
cmp byte [esi], 0x3a
je 0x6735c3b8
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov edx, eax
test eax, eax
je 0x6735c550
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [ebp - 0x9c8], edx
call sub.msvcrt.dll_strncpy
mov edx, dword [ebp - 0x9c8]
mov dword [esp + 4], 0x3a
mov dword [esp], edx
call sub.msvcrt.dll_strchr
mov esi, eax
test eax, eax
je 0x6735c210
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
lea eax, [eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.6736a258
mov word [ebp - 0x9be], ax
mov dword [esp + 4], 0x2d
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6735c219
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.6736a258
mov word [ebp - 0x9aa], ax
cmp word [ebp - 0x9be], ax
jbe 0x6735c179
mov word [ebp - 0x9aa], 0
mov word [ebp - 0x9be], 0
cmp byte [edi], 0
jne 0x6735c230
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x9b4]
mov eax, dword [edx + 0xc8]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
je 0x6735c608
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9b4]
mov dword [esp], eax
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [ebp - 0x9bc]
mov dword [esp], edx
call fcn.67346d80
test edi, edi
je 0x6735c68b
mov dword [esp], edi
call dword [0x67391008]
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov ecx, 0x11
jmp 0x6735c07e
mov word [ebp - 0x9be], 0
mov ax, word [ebp - 0x9be]
mov word [ebp - 0x9aa], ax
cmp byte [edi], 0
je 0x6735c182
mov dword [esp + 0xc], 0x401
lea esi, [ebp - 0x9a1]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x9b4]
mov eax, dword [edx + 0x38]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.67353a74
test eax, eax
je 0x6735c631
mov eax, esi
lea esi, [ebp - 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9b4]
mov dword [esp], eax
call fcn.6734750c
dec eax
je 0x6735c488
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6735c480
mov esi, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67347774
test edi, edi
je 0x6735c2b8
mov dword [esp], edi
call dword [0x67391008]
test esi, esi
je 0x6735c4ec
mov dword [ebp - 0x9b8], esi
mov eax, dword [esi + 8]
test eax, eax
jne 0x6735c2d9
mov edx, dword [ebp - 0x9b4]
mov eax, dword [edx + 0x70]
mov dword [esi + 8], eax
mov edx, dword [esi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.WS2_32.dll_socket
sub esp, 0xc
cmp eax, 0xffffffff
je 0x6735c4a0
mov dword [ebp - 0x9b0], eax
mov dword [ebp - 0x9b8], esi
mov eax, esi
mov esi, dword [esi + 0x18]
mov ecx, dword [eax + 0x10]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 0x9be]
cmp word [ebp - 0x9aa], ax
jb 0x6735c510
mov esi, eax
lea edi, [ebp - 0x1c]
jmp 0x6735c382
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x9b0]
mov dword [esp], edx
call sub.WS2_32.dll_bind
sub esp, 0xc
test eax, eax
je 0x6735c56c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2741
je 0x6735c3c0
cmp eax, 0x2740
je 0x6735c374
cmp eax, 0xd
jne 0x6735c5d0
inc esi
cmp si, word [ebp - 0x9aa]
ja 0x6735c510
cmp word [ebx], 2
jne 0x6735c334
movzx eax, si
mov dword [esp], eax
call sub.WS2_32.dll_htons
push edx
mov word [ebx + 2], ax
jmp 0x6735c334
xor edi, edi
mov word [ebp - 0x9aa], 0
mov word [ebp - 0x9be], 0
jmp 0x6735c182
mov edx, esi
jmp 0x6735c0da
mov dword [esp + 4], 0x2741
mov eax, dword [ebp - 0x9b4]
mov dword [esp], eax
call fcn.673534dc
mov dword [esp + 0xc], eax
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.bind_port_hu__failed:__s
mov edx, dword [ebp - 0x9bc]
mov dword [esp], edx
call fcn.67346d80
mov dword [ebp - 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x9b4]
mov eax, dword [edx + 0xc8]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x6735c430
mov si, word [ebp - 0x9be]
jmp 0x6735c382
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9b4]
mov dword [esp], eax
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [ebp - 0x9bc]
mov dword [esp], edx
call fcn.67346d80
mov eax, dword [ebp - 0x9b0]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push ebx
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
xor esi, esi
jmp 0x6735c2ab
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x9b4]
mov dword [esp], edx
call fcn.67353b6c
jmp 0x6735c28c
call sub.WS2_32.dll_WSAGetLastError
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x6735c2c6
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x9b4]
mov dword [esp], edx
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67346d80
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], str.Curl_resolv_failed__we_can_not_recover_
mov edx, dword [ebp - 0x9bc]
mov dword [esp], edx
call fcn.67346d80
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], str.bind___failed__we_ran_out_of_ports_
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67346d80
mov edx, dword [ebp - 0x9b0]
mov dword [esp], edx
call sub.WS2_32.dll_closesocket
push ecx
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, 0x1b
jmp 0x6735c1fa
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov word [ebp - 0x9be], 0
jmp 0x6735c219
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x9b0]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
je 0x6735c638
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x9b4]
mov dword [esp], edx
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67346d80
jmp 0x6735c526
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x9b4]
mov dword [esp], edx
call fcn.673534dc
mov dword [esp + 0xc], eax
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.bind_port_hu__failed:__s
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67346d80
jmp 0x6735c526
mov dword [esp + 0xc], 0x401
lea esi, [ebp - 0x9a1]
mov dword [esp + 8], esi
lea eax, [ebx + 4]
mov dword [esp + 4], eax
movzx eax, word [ebx]
mov dword [esp], eax
call fcn.673518b4
jmp 0x6735c262
mov eax, edi
jmp 0x6735c264
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x9b0]
mov dword [esp], eax
call sub.WS2_32.dll_listen
sub esp, 8
test eax, eax
je 0x6735c695
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x9b4]
mov dword [esp], edx
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov eax, dword [ebp - 0x9bc]
mov dword [esp], eax
call fcn.67346d80
jmp 0x6735c526
mov eax, 0x1e
jmp 0x6735c1fa
mov dword [esp + 8], 0x100
lea edi, [ebp - 0x1a0]
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x9b8]
mov dword [esp], eax
call fcn.6734735c
cmp dword [ebp - 0x9c4], 2
je 0x6735c6e2
mov edx, dword [ebp - 0x9b4]
mov al, byte [edx + 0x13d]
mov esi, dword [ebp - 0x9c4]
test al, al
jne 0x6735c734
test esi, esi
jne 0x6735c734
cmp word [ebx], 2
je 0x6735c7b0
mov eax, 2
mov edx, dword [ebp - 0x9b4]
mov dword [edx + 0x330], eax
mov eax, dword [edx + 0xcc]
cmp eax, 0xffffffff
je 0x6735c707
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push ecx
mov edx, dword [ebp - 0x9b0]
mov eax, dword [ebp - 0x9b4]
mov dword [eax + 0xcc], edx
mov byte [eax + 0x135], 1
mov dword [eax + 0x33c], 0x1c
xor eax, eax
jmp 0x6735c1fa
cmp esi, 1
je 0x6735c6d8
cmp word [ebx], 2
je 0x6735c756
inc esi
cmp esi, 2
je 0x6735c6e2
mov edx, dword [ebp - 0x9b4]
mov al, byte [edx + 0x13d]
jmp 0x6735c6d0
movzx eax, word [ebx + 2]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
push edx
test esi, esi
jne 0x6735c73f
movzx eax, ax
xor edx, edx
cmp word [ebx], 2
setne dl
inc edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.EPRT
mov dword [esp + 4], str._s__d_s_hu
mov eax, dword [ebp - 0x9b4]
add eax, 0x2d8
mov dword [esp], eax
call fcn.6736df08
test eax, eax
je 0x6735c6e7
jmp 0x6735c1fa
movzx eax, word [ebx + 2]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
push edx
mov cl, byte [ebp - 0x1a0]
test cl, cl
je 0x6735c7e9
lea esi, [ebp - 0x5a0]
mov edx, esi
mov ebx, edi
jmp 0x6735c7df
mov byte [edx], cl
inc edx
inc ebx
je 0x6735c7f1
mov cl, byte [ebx]
test cl, cl
je 0x6735c7f1
cmp cl, 0x2e
jne 0x6735c7d3
mov byte [edx], 0x2c
jmp 0x6735c7d5
lea esi, [ebp - 0x5a0]
mov edx, esi
mov byte [edx], 0
movzx ecx, al
mov dword [esp + 0x10], ecx
movzx eax, ah
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.__d__d
mov dword [esp + 4], 0x14
mov dword [esp], edx
call fcn.67343f4c
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.PORT
mov dword [esp + 4], str._s__s
mov eax, dword [ebp - 0x9b4]
add eax, 0x2d8
mov dword [esp], eax
call fcn.6736df08
test eax, eax
jne 0x6735c1fa
mov al, 1
jmp 0x6735c6e7