Function at 0x576d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x822b4c]
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x576dc5
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x822b4c], eax
cmp eax, 0xffffffff
jne 0x576e08
push 0
push 0x732d7c
push 0x93
push str.src_backendportwin32_socket.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x576e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_create_socket_waiting_event:_error_code__lu
jmp 0x576dfa
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x576e08
push eax
push 0x732d7c
push 0x97
push str.src_backendportwin32_socket.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x576e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_reset_socket_waiting_event:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [0x822b50], ebx
je 0x576e4d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1008
push 0xffff
push ebx
mov dword [ebp + 8], 4
call dword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
je 0x576e3f
mov eax, 1
jmp 0x576e48
xor eax, eax
cmp dword [ebp - 4], 2
sete al
mov dword [0x836174], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x822b4c]
push edx
push eax
push ebx
mov dword [0x822b50], ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x576e74
call fcn.00576b70
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0xc], 2
mov ecx, dword [0x869244]
mov edx, dword [0x822b4c]
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
je 0x576f40
cmp dword [0x836174], 0
je 0x576f40
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
push 1
push 0x64
push 0
lea eax, [ebp - 0xc]
push eax
push 2
call edi
mov esi, eax
cmp esi, 0x102
jne 0x576f56
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xb]
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x576f10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x576f27
push 1
push 0x64
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
call edi
mov esi, eax
cmp esi, 0x102
je 0x576ec1
jmp 0x576f56
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00576b70
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push 1
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov esi, eax
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, esi
je 0x576fd2
cmp esi, 0xc0
je 0x576fd2
cmp esi, 1
je 0x576f1b
cmp esi, 0x102
jne 0x576f8f
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
pop esi
mov dword [eax], 0x2733
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x732d7c
push 0xea
push str.src_backendportwin32_socket.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x576fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.unrecognized_return_value_from_WaitForMultipleObjects:__d__error_code__lu_
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call sym.postgres.exe_pgwin32_dispatch_queued_signals
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x2714
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret