Function at 0x5824a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov ebx, eax
push edi
mov ecx, 0x62
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x188]
cmp eax, 0xffffffff
je 0x582511
test eax, eax
je 0x582511
push 0
push 0
lea eax, [ebx + 0x18c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
jne 0x5824fd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.could_not_create_inherited_socket:_error_code__d_n
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebx + 0x188]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x582513
mov dword [edx], eax
lea eax, [ebx + 0x300]
push eax
call sym.postgres.exe_SetDataDir
lea esi, [ebx + 0x700]
mov ecx, 0x40
mov edi, 0x8363f0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x800]
mov dword [0x868828], ecx
mov edx, dword [ebx + 0x804]
mov dword [0x868824], edx
mov eax, dword [ebx + 0x808]
mov dword [sym.postgres.exe_UsedShmemSegID], eax
mov ecx, dword [ebx + 0x80c]
mov dword [sym.postgres.exe_UsedShmemSegAddr], ecx
mov edx, dword [ebx + 0x810]
mov dword [0x869150], edx
mov eax, dword [ebx + 0x814]
mov dword [sym.postgres.exe_ShmemVariableCache], eax
mov ecx, dword [ebx + 0x818]
mov edx, dword [ebx + 0x81c]
mov dword [sym.postgres.exe_LWLockArray], edx
mov eax, dword [ebx + 0x820]
mov dword [sym.postgres.exe_ProcStructLock], eax
mov dword [0x836900], ecx
mov ecx, dword [ebx + 0x824]
mov dword [sym.postgres.exe_ProcGlobal], ecx
mov edx, dword [ebx + 0x828]
mov dword [sym.postgres.exe_AuxiliaryProcs], edx
mov eax, dword [ebx + 0x82c]
mov dword [sym.postgres.exe_PreparedXactProcs], eax
mov ecx, dword [ebx + 0x830]
mov dword [sym.postgres.exe_PMSignalState], ecx
mov eax, dword [ebx + 0x834]
add esp, 4
cmp eax, 0xffffffff
je 0x582627
test eax, eax
je 0x582627
push 0
push 0
lea edx, [ebx + 0x838]
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
jne 0x582613
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.could_not_create_inherited_socket:_error_code__d_n
call sym.postgres.exe_write_stderr
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov dword [sym.postgres.exe_pgStatSock], eax
mov eax, dword [ebx + 0x834]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x58262c
mov dword [sym.postgres.exe_pgStatSock], eax
mov ecx, dword [ebx + 0x9ac]
mov dword [sym.postgres.exe_PostmasterPid], ecx
mov edx, dword [ebx + 0x9b0]
mov dword [0x869050], edx
mov eax, dword [ebx + 0x9b4]
mov dword [0x869054], eax
mov ecx, dword [ebx + 0x9b8]
mov dword [0x869058], ecx
mov edx, dword [ebx + 0x9bc]
mov dword [0x86905c], edx
mov eax, dword [ebx + 0x9c0]
mov dword [sym.postgres.exe_first_syslogger_file_time], eax
mov ecx, dword [ebx + 0x9c4]
mov dword [0x836dac], ecx
mov dl, byte [ebx + 0x9c8]
mov byte [sym.postgres.exe_redirection_done], dl
mov al, byte [ebx + 0x9c9]
mov byte [sym.postgres.exe_IsBinaryUpgrade], al
mov ecx, dword [ebx + 0x9cc]
mov dword [sym.postgres.exe_max_safe_fds], ecx
mov edx, dword [ebx + 0x9d0]
mov dword [0x869198], edx
mov eax, dword [ebx + 0x9d4]
mov dword [sym.postgres.exe_pgwin32_initial_signal_pipe], eax
mov ecx, dword [ebx + 0x9d8]
push 0x400
lea eax, [ebx + 0x9e0]
mov dword [sym.postgres.exe_syslogPipe], ecx
mov edx, dword [ebx + 0x9dc]
push eax
push sym.postgres.exe_my_exec_path
mov dword [0x836dbc], edx
call sym.postgres.exe_strlcpy
push 0x400
lea ecx, [ebx + 0xde0]
push ecx
push 0x868840
call sym.postgres.exe_strlcpy
push 0x400
add ebx, 0x11e0
push ebx
push 0x836500
call sym.postgres.exe_strlcpy
add esp, 0x24
pop edi
pop esi
pop ebx
pop ebp
ret