Function at 0x584880
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x15e0
push eax
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x840], eax
push 4
lea eax, [ebp - 0x844]
push eax
mov esi, 1
push 0xffffffffffffffff
mov edi, ecx
mov dword [ebp - 0x844], 0xc
mov dword [ebp - 0x83c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x848], ebx
cmp ebx, 0xffffffff
jne 0x584926
push str.internal_forkexec
push 0xed4
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_create_backend_parameter_file_mapping:_error_code__lu
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0xc
pop edi
pop esi
or eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push 0x15e0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x838], eax
test eax, eax
jne 0x58498a
push str.internal_forkexec
push 0xedc
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_map_backend_parameter_memory:_error_code__lu
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x24]
push 0x735908
push ecx
call sym.postgres.exe_pg_sprintf
push 0x868420
push 0x735900
lea eax, [ebp - 0x824]
lea edx, [ebp - 0x24]
push 0x7ff
push eax
mov dword [edi + 8], edx
mov word [ebp - 0x26], 0
call sym.postgres.exe_pg_snprintf
mov ecx, dword [edi + 4]
add esp, 0x1c
test ecx, ecx
je 0x584a16
lea ebx, [ebx]
lea eax, [ebp - 0x824]
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5849e0
push ecx
sub eax, ebx
mov ecx, 0x7ff
push str.___s_
sub ecx, eax
push ecx
lea edx, [ebp + eax - 0x824]
push edx
call sym.postgres.exe_pg_snprintf
mov ecx, dword [edi + esi*4 + 4]
inc esi
add esp, 0x10
test ecx, ecx
jne 0x5849d0
mov ebx, dword [ebp - 0x848]
cmp byte [ebp - 0x26], 0
je 0x584a53
push str.internal_forkexec
push 0xef6
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
push str.subprocess_command_line_too_long
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x88c]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x834]
push ecx
lea edx, [ebp - 0x88c]
push edx
push 0
push 0
push 4
push 1
push 0
push 0
lea eax, [ebp - 0x824]
push eax
push 0
mov dword [ebp - 0x88c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x584af7
push str.internal_forkexec
push 0xf05
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_call_failed:__m__error_code__lu_
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x82c]
mov edx, dword [ebp - 0x834]
mov esi, dword [ebp - 0x838]
push ecx
push edx
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.005837f0
add esp, 8
test al, al
jne 0x584b96
mov eax, dword [ebp - 0x834]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x584b6a
push eax
push str.internal_forkexec
push 0xf13
push str.src_backendpostmasterpostmaster.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_terminate_unstarted_process:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov ecx, dword [ebp - 0x834]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x830]
push edx
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x584bd0
push str.internal_forkexec
push 0xf1b
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
add esp, 0xc
call edi
push eax
push str.could_not_unmap_view_of_backend_parameter_file:_error_code__lu
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test eax, eax
jne 0x584c06
push str.internal_forkexec
push 0xf1e
push str.src_backendpostmasterpostmaster.c
call sym.postgres.exe_elog_start
add esp, 0xc
call edi
push eax
push str.could_not_close_handle_to_backend_parameter_file:_error_code__lu
push 0xf
call sym.postgres.exe_elog_finish
add esp, 0xc
mov eax, dword [ebp - 0x834]
push eax
call sym.postgres.exe_pgwin32_ReserveSharedMemoryRegion
add esp, 4
test eax, eax
jne 0x584c89
mov ecx, dword [ebp - 0x834]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x584c63
push eax
push str.internal_forkexec
push 0xf2e
push str.src_backendpostmasterpostmaster.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584c63
call edi
push eax
push str.could_not_terminate_process_that_failed_to_reserve_memory:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov edx, dword [ebp - 0x834]
push edx
call ebx
mov eax, dword [ebp - 0x830]
push eax
call ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x584d6a
mov edx, dword [ebp - 0x834]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x584d0f
push eax
push str.internal_forkexec
push 0xf40
push str.src_backendpostmasterpostmaster.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584ce9
call edi
push eax
push str.could_not_terminate_unstartable_process:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov eax, dword [ebp - 0x834]
push eax
call ebx
mov ecx, dword [ebp - 0x830]
push ecx
call ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x834]
push edx
call ebx
mov eax, dword [ebp - 0x830]
push eax
call ebx
push 0
push str.internal_forkexec
push 0xf49
push str.src_backendpostmasterpostmaster.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584d56
call edi
push eax
push str.could_not_resume_thread_of_unstarted_process:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push 0xc
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x584dbd
push eax
push str.internal_forkexec
push 0xf59
push str.src_backendpostmasterpostmaster.c
push 0x15
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584dbd
push str.out_of_memory
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x20c5
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [ebp - 0x834]
push 0xc
push 0xffffffffffffffff
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x82c]
push esi
mov dword [esi + 8], edx
mov eax, dword [ebp - 0x834]
push 0x5827f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x584e1f
push eax
push str.internal_forkexec
push 0xf66
push str.src_backendpostmasterpostmaster.c
push 0x15
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x584e1f
call edi
push eax
push str.could_not_register_process_for_wait:_error_code__lu
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov ecx, dword [ebp - 0x830]
push ecx
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x82c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret