Function at 0x140003cc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rcx, qword [0x140017b90]
lea rbp, str.dbname
xor r12d, r12d
xor edi, edi
mov qword [rsp + 0x78], r12
mov ebx, 7
test rcx, rcx
je 0x140003e03
lea rdx, [rsp + 0x78]
call sub.LIBPQ.dll_Ordinal_152
mov r12, rax
test rax, rax
jne 0x140003d32
cmp dword [0x140019bf8], 4
jg 0x1400042f8
mov r8, qword [rsp + 0x78]
lea rdx, [0x140011e7c]
lea ecx, [rbx - 3]
call fcn.140007aa0
jmp 0x1400042f8
mov rdx, r12
cmp qword [rax], rdi
je 0x140003d81
nop word [rax + rax]
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x140003d78
cmp byte [rax], dil
je 0x140003d78
mov r8, qword [rdx]
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [rax + rbp - 1]
jne 0x140003d76
cmp rax, 7
jne 0x140003d60
jmp 0x140003d78
inc ebx
add rdx, 0x38
cmp qword [rdx], rdi
jne 0x140003d40
lea eax, [rbx + 1]
movsxd rbx, eax
shl rbx, 3
mov rcx, rbx
call fcn.1400074d0
mov rcx, rbx
mov r14, rax
call fcn.1400074d0
mov rsi, rax
mov rdx, r12
cmp qword [r12], rdi
je 0x140003e1d
mov r10, r14
mov r9, rax
sub r10, rax
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x140003df7
cmp byte [rcx], 0
je 0x140003df7
mov r8, qword [rdx]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rcx + rbp - 1]
jne 0x140003de6
cmp rcx, 7
jne 0x140003dd0
jmp 0x140003df7
mov qword [r10 + r9], r8
inc edi
mov rax, qword [rdx + 0x18]
mov qword [r9], rax
add r9, 8
add rdx, 0x38
cmp qword [rdx], 0
jne 0x140003db3
jmp 0x140003e1d
mov ecx, Ordinal_65
call fcn.1400074d0
mov ecx, Ordinal_65
mov r14, rax
call fcn.1400074d0
mov rsi, rax
movsxd rax, edi
lea rdx, str.replication
lea rcx, [rax*8]
mov qword [rcx + r14], rbp
mov rax, qword [0x140017bb0]
test rax, rax
cmove rax, rdx
inc edi
mov qword [rcx + rsi], rax
movsxd rax, edi
lea rcx, [rax*8]
mov qword [rcx + r14], rdx
lea rax, str.database
cmp qword [0x140017bb0], 0
lea rdx, str.true
cmove rax, rdx
inc edi
mov qword [rcx + rsi], rax
movsxd rax, edi
inc edi
lea rcx, [rax*8]
lea rax, str.fallback_application_name
mov qword [rcx + r14], rax
mov rax, qword [0x140019be8]
mov qword [rcx + rsi], rax
cmp qword [0x140017b98], 0
je 0x140003ec6
movsxd rax, edi
inc edi
lea rcx, [rax*8]
lea rax, str.host
mov qword [rcx + r14], rax
mov rax, qword [0x140017b98]
mov qword [rcx + rsi], rax
cmp qword [0x140017ba0], 0
je 0x140003ef3
movsxd rax, edi
inc edi
lea rcx, [rax*8]
lea rax, str.user
mov qword [rcx + r14], rax
mov rax, qword [0x140017ba0]
mov qword [rcx + rsi], rax
cmp qword [0x140017ba8], 0
je 0x140003f20
movsxd rax, edi
inc edi
lea rcx, [rax*8]
lea rax, str.port
mov qword [rcx + r14], rax
mov rax, qword [0x140017ba8]
mov qword [rcx + rsi], rax
cmp dword [0x140017bb8], 1
jne 0x140003f36
cmp byte [0x140017bc8], 0
jne 0x140003f36
mov bl, 1
jmp 0x140003f38
xor bl, bl
movsxd rax, edi
lea r13, [0x140017bd0]
lea r15, [r14 + rax*8]
lea rbp, [rsi + rax*8]
nop word [rax + rax]
test bl, bl
je 0x140003f7f
xor r9d, r9d
lea rcx, str.Password:
mov rdx, r13
lea r8d, [r9 + 0x64]
call fcn.14000c320
xor bl, bl
mov byte [0x140017bc8], 1
mov rax, r13
lea rcx, str.password
jmp 0x140003f98
cmp byte [0x140017bc8], 0
je 0x140003f94
mov rax, r13
lea rcx, str.password
jmp 0x140003f98
xor eax, eax
xor ecx, ecx
mov qword [r15], rcx
mov r8d, 1
mov rcx, r14
mov qword [rbp], rax
mov rdx, rsi
call sub.LIBPQ.dll_Ordinal_156
mov rdi, rax
test rax, rax
je 0x1400042de
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_14
cmp eax, 1
jne 0x140003fed
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_140
test eax, eax
je 0x140003fed
cmp dword [0x140017bb8], 0xffffffff
je 0x140003fed
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_4
mov bl, 1
jmp 0x140003f50
test bl, bl
jne 0x140003f54
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_14
test eax, eax
je 0x140004067
cmp dword [0x140019bf8], 4
jg 0x140004026
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_15
mov r8, rax
lea rdx, str.could_not_connect_to_server:__s
mov ecx, 4
call fcn.140007aa0
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_4
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x14000404d
mov rcx, r12
call sub.LIBPQ.dll_Ordinal_78
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x140004086
mov rcx, r12
call sub.LIBPQ.dll_Ordinal_78
cmp qword [0x140017bb0], 0
je 0x140004107
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_113
cmp eax, 0x186a0
jl 0x140004107
lea rdx, str.SELECT_pg_catalog.set_config_search_path____false__
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_21
mov rcx, rax
mov rbx, rax
call sub.LIBPQ.dll_Ordinal_33
cmp eax, 2
je 0x1400040ff
cmp dword [0x140019bf8], 4
jg 0x1400040e3
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_15
mov r8, rax
lea rdx, str.could_not_clear_search_path:__s
mov ecx, 4
call fcn.140007aa0
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_48
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_48
lea rdx, str.integer_datetimes
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_97
mov rcx, rax
test rax, rax
jne 0x140004137
cmp dword [0x140019bf8], 4
jg 0x1400042ca
lea rdx, str.could_not_determine_server_setting_for_integer_datetimes
jmp 0x1400042c0
movzx eax, byte [rax]
cmp al, byte [0x140011fcc]
jne 0x1400042b0
movzx eax, byte [rcx + 1]
cmp al, byte [0x140011fcd]
jne 0x1400042b0
movzx eax, byte [rcx + 2]
cmp al, byte [0x140011fce]
jne 0x1400042b0
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_113
cmp eax, 0x1adb0
jl 0x14000424a
lea rdx, str.SHOW_data_directory_mode
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_21
mov rcx, rax
mov rsi, rax
call sub.LIBPQ.dll_Ordinal_33
cmp eax, 2
je 0x1400041cd
cmp dword [0x140019bf8], 4
jg 0x140004294
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_15
mov r9, rax
lea r8, str.SHOW_data_directory_mode
lea rdx, str.could_not_send_replication_command___s_:__s
mov ecx, 4
call fcn.140007aa0
jmp 0x140004294
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_34
cmp eax, 1
jne 0x140004252
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_35
cmp eax, 1
jl 0x140004252
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_45
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [0x140012248]
call fcn.140002170
cmp eax, 1
je 0x140004239
cmp dword [0x140019bf8], 4
jg 0x140004294
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_45
mov r8, rax
lea rdx, str.group_access_flag_could_not_be_parsed:__s
mov ecx, 4
call fcn.140007aa0
jmp 0x140004294
mov ecx, dword [rsp + 0x70]
call fcn.140007e10
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_48
mov rax, rdi
jmp 0x14000404f
cmp dword [0x140019bf8], 4
jg 0x140004294
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_35
mov rcx, rsi
mov ebx, eax
call sub.LIBPQ.dll_Ordinal_34
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, ebx
mov dword [rsp + 0x20], 1
lea rdx, str.could_not_fetch_group_access_flag:_got__d_rows_and__d_fields__expected__d_rows_and__d_or_more_fields
mov ecx, 4
call fcn.140007aa0
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_48
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140019bf8], 4
jg 0x1400042ca
lea rdx, str.integer_datetimes_compile_flag_does_not_match_server
mov ecx, 4
call fcn.140007aa0
mov rcx, rdi
call sub.LIBPQ.dll_Ordinal_4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140019bf8], 4
jg 0x1400042f8
lea rdx, str.could_not_connect_to_server
mov ecx, 4
call fcn.140007aa0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3