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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x140]
push ecx
push edi
push str.localhost
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 2
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x124], edi
call sym.postgres.exe_pg_getaddrinfo_all
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x57d690
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x57d690
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, eax
jmp 0x57d1e0
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
cmp eax, 1
jle 0x57d223
push edi
push 0x734634
push 0x164
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d223
push str.trying_another_address_for_the_statistics_collector
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov edx, dword [ebx + 4]
push edi
push 2
push edx
call sym.postgres.exe_pgwin32_socket
add esp, 0xc
mov dword [sym.postgres.exe_pgStatSock], eax
cmp eax, 0xffffffff
jne 0x57d27f
push edi
push 0x734634
push 0x16d
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d602
push str.could_not_create_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
jmp 0x57d602
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jns 0x57d2d7
push edi
push 0x734634
push 0x179
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.could_not_bind_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [sym.postgres.exe_pgStatSock]
push eax
jmp 0x57d5f2
mov edx, dword [sym.postgres.exe_pgStatSock]
lea ecx, [ebp - 0x114]
push ecx
push 0x836278
push edx
mov dword [ebp - 0x114], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jns 0x57d343
push edi
push 0x734634
push 0x184
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.could_not_get_address_of_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
mov eax, dword [sym.postgres.exe_pgStatSock]
add esp, 8
push eax
jmp 0x57d5f2
mov ecx, dword [ebp - 0x114]
mov edx, dword [sym.postgres.exe_pgStatSock]
push ecx
push 0x836278
push edx
call sym.postgres.exe_pgwin32_connect
add esp, 0xc
test eax, eax
jns 0x57d3ab
push edi
push 0x734634
push 0x194
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.could_not_connect_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
mov eax, dword [sym.postgres.exe_pgStatSock]
add esp, 8
push eax
jmp 0x57d5f2
mov byte [ebp - 0x109], 0xc7
mov edx, dword [sym.postgres.exe_pgStatSock]
push edi
push 1
lea ecx, [ebp - 0x109]
push ecx
push edx
call sym.postgres.exe_pgwin32_send
add esp, 0x10
cmp eax, 1
je 0x57d423
call esi
cmp dword [eax], 0x2714
je 0x57d3b2
push edi
push 0x734634
push 0x1a9
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.could_not_send_test_message_on_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
mov eax, dword [sym.postgres.exe_pgStatSock]
add esp, 8
push eax
jmp 0x57d5f2
mov eax, dword [sym.postgres.exe_pgStatSock]
lea ecx, [ebp - 0x120]
push ecx
push edi
push edi
lea edx, [ebp - 0x108]
mov dword [ebp - 0x104], eax
push edx
inc eax
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], 0x7a120
call sym.postgres.exe_pgwin32_select
add esp, 0x14
cmp eax, edi
jge 0x57d4b9
call esi
cmp dword [eax], 0x2714
je 0x57d423
push edi
push 0x734634
push 0x1c3
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.select___failed_in_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
mov eax, dword [sym.postgres.exe_pgStatSock]
add esp, 8
push eax
jmp 0x57d5f2
je 0x57d5a9
mov edx, dword [sym.postgres.exe_pgStatSock]
lea ecx, [ebp - 0x108]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x57d5a9
inc byte [ebp - 0x109]
mov ecx, dword [sym.postgres.exe_pgStatSock]
push edi
push 1
lea eax, [ebp - 0x109]
push eax
push ecx
call sym.postgres.exe_pgwin32_recv
add esp, 0x10
cmp eax, 1
je 0x57d54e
call esi
cmp dword [eax], 0x2714
je 0x57d4e0
push edi
push 0x734634
push 0x1e1
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d542
push str.could_not_receive_test_message_on_socket_for_statistics_collector:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov edx, dword [sym.postgres.exe_pgStatSock]
push edx
jmp 0x57d5f2
cmp byte [ebp - 0x109], 0xc7
je 0x57d612
push edi
push 0x734634
push 0x1eb
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d2cc
push str.incorrect_test_message_transmission_on_socket_for_statistics_collector
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0xa28
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
mov eax, dword [sym.postgres.exe_pgStatSock]
add esp, 8
push eax
jmp 0x57d5f2
push edi
push 0x734634
push 0x1d2
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d5eb
push str.test_message_did_not_get_through_on_socket_for_statistics_collector
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x6000200
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [sym.postgres.exe_pgStatSock]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [sym.postgres.exe_pgStatSock], 0xffffffff
mov ebx, dword [ebx + 0x1c]
cmp ebx, edi
jne 0x57d1e0
jmp 0x57d6c8
mov eax, dword [sym.postgres.exe_pgStatSock]
cmp eax, 0xffffffff
je 0x57d6c8
push eax
call sym.postgres.exe_pg_set_noblock
add esp, 4
test al, al
jne 0x57d669
push edi
push 0x734634
push 0x202
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d6c8
push str.could_not_set_statistics_collector_socket_to_nonblocking_mode:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_socket_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
jmp 0x57d6c8
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x13c]
push edx
push eax
call sym.postgres.exe_pg_freeaddrinfo_all
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push edi
push 0x734634
push 0x14e
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d6c8
push esi
call sym.postgres.exe_pg_gai_strerror
push eax
push str.could_not_resolve__localhost_:__s
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0x10
push edi
push 0x734634
push 0x20c
push str.src_backendpostmasterpgstat.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57d6f9
push str.disabling_statistics_collector_for_lack_of_working_socket
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x57d713
mov ecx, dword [ebp - 0x13c]
push eax
push ecx
call sym.postgres.exe_pg_freeaddrinfo_all
add esp, 8
mov eax, dword [sym.postgres.exe_pgStatSock]
cmp eax, 0xffffffff
je 0x57d724
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 9
push edi
push 0x6ac2fc
push str.track_counts
mov dword [sym.postgres.exe_pgStatSock], 0xffffffff
call sym.postgres.exe_SetConfigOption
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret