Function at 0x1400010f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140019330]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor r12d, r12d
mov rsi, rcx
mov rcx, qword [0x140019370]
movzx edi, r9b
movzx r14d, r8b
mov rbp, rdx
cmp byte [rsp + 0x120], r12b
jne 0x140001150
test rcx, rcx
je 0x140001146
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, r12
mov qword [0x140019370], rcx
cmp dword [rsi + 0x20], 2
jne 0x140001177
test rcx, rcx
jne 0x140001177
lea edx, [rcx + 0x64]
lea rcx, str.Password:
xor r8d, r8d
call fcn.14000ddc0
mov rcx, rax
mov qword [0x140019370], rax
lea r13, str.host
lea r15, [0x140011624]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x10]
lea r9, str.password
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x18]
lea r8, str.user
mov qword [rsp + 0x40], rax
mov rax, qword [rsi]
lea rdx, str.port
mov qword [rsp + 0x50], rax
lea r10, str.fallback_application_name
mov qword [rsp + 0x70], r13
mov eax, 5
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x90], r15
test rcx, rcx
je 0x14000120b
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x58], rcx
mov eax, 6
mov qword [rsp + rax*8 + 0x70], r10
mov qword [rsp + rax*8 + 0x30], rbp
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + rax*8 + 0x78], r12
mov qword [rsp + rax*8 + 0x38], r12
call sub.LIBPQ.dll_Ordinal_156
mov rbx, rax
test rax, rax
je 0x140001346
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_14
cmp eax, 1
jne 0x14000129b
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_140
test eax, eax
je 0x14000129b
cmp dword [rsi + 0x20], 1
je 0x14000129b
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_4
mov rcx, qword [0x140019370]
test rcx, rcx
je 0x140001279
call qword [sym.imp.MSVCR120.dll_free]
xor r8d, r8d
lea rcx, str.Password:
lea edx, [r8 + 0x64]
call fcn.14000ddc0
mov rcx, rax
mov qword [0x140019370], rax
jmp 0x140001185
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_14
mov rcx, rbx
cmp eax, 1
jne 0x140001323
test dil, dil
je 0x1400012e2
call sub.LIBPQ.dll_Ordinal_4
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000f6c0
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.LIBPQ.dll_Ordinal_15
lea rcx, str._s:_could_not_connect_to_database__s:__s
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, qword [rsi]
lea rcx, [rax + 0x60]
mov r8, rbp
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.14000c790
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rdx, str.SELECT_pg_catalog.set_config_search_path____false_
movzx r9d, r14b
mov r8, rbp
call fcn.140001400
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_48
mov rax, rbx
jmp 0x1400012b7
lea rcx, str._s:_could_not_connect_to_database__s:_out_of_memory_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, qword [rsi]
lea rcx, [rax + 0x60]
mov r8, rbp
mov rdx, rbx
call fcn.14000c790
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3