Function at 0x140004010
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push r13
push r15
lea rbp, [r11 - 0x57]
sub rsp, 0xd0
movzx eax, byte [0x1400193b0]
mov r13, rdx
mov r15, rcx
test al, al
jne 0x1400043d7
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r14
call sub.LIBPQ.dll_Ordinal_34
mov rcx, r15
mov r14d, eax
mov dword [rbp - 0x69], eax
call sub.LIBPQ.dll_Ordinal_35
mov rdx, qword [r13 + 0x70]
mov qword [rbp - 0x51], r13
lea ecx, [rax + 1]
mov esi, eax
mov dword [rbp - 0x6d], eax
movsxd rbx, ecx
mov qword [rbp - 0x49], rdx
mov dword [rbp - 0x41], eax
lea rcx, [rbx*8]
mov dword [rbp - 0x3d], r14d
call fcn.140009d70
mov rdi, rax
mov qword [rbp - 0x39], rax
mov eax, esi
imul eax, r14d
mov dword [rbp - 0x65], eax
inc eax
cdqe
mov qword [rbp - 0x59], rax
lea rcx, [rax*8]
call fcn.140009d70
mov rcx, rbx
mov r14, rax
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x11], xmm0
call fcn.140009d70
xor ecx, ecx
mov qword [rbp + 7], rax
mov r12, rax
mov qword [rbp + 0xf], rax
movsxd rax, dword [rbp - 0x6d]
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x21], r14
mov qword [rbp - 1], rcx
mov esi, ecx
mov dword [rbp - 0x19], ecx
mov ebx, ecx
test eax, eax
jle 0x1400041ad
lea rax, [rdi + rax*8]
mov qword [rbp - 0x61], rax
jmp 0x140004114
mov r15, qword [rbp + 0x5f]
mov edx, ebx
mov rcx, r15
call sub.LIBPQ.dll_Ordinal_39
cmp eax, 0x1d
ja 0x14000412d
mov ecx, 0x34b00000
bt ecx, eax
jb 0x140004149
lea ecx, [rax - 0x2bc]
cmp ecx, 1
jbe 0x140004149
cmp eax, 0x316
je 0x140004149
mov r15b, 0x6c
cmp eax, 0x6a4
jne 0x14000414c
mov r15b, Ordinal_115
movzx eax, byte [r13 + 0x80]
mov rcx, qword [rbp + 0x5f]
mov edx, ebx
mov byte [rbp - 0x71], al
call sub.LIBPQ.dll_Ordinal_37
cmp rdi, qword [rbp - 0x61]
jae 0x14000420a
mov edx, dword [r13 + 0x50]
mov rcx, rax
call fcn.1400094a0
mov qword [rdi], rax
cmp byte [rbp - 0x71], sil
je 0x14000418d
mov rcx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov qword [rdi], rax
mov eax, dword [rbp - 0x6d]
add rdi, 8
mov byte [r12], r15b
inc r12
inc ebx
mov qword [rbp - 0x31], rdi
mov qword [rbp + 0xf], r12
cmp ebx, eax
jl 0x140004110
mov ecx, dword [rbp - 0x69]
xor r15d, r15d
mov edi, r15d
mov dword [rbp - 0x61], r15d
test ecx, ecx
jle 0x140004302
mov r12, qword [rbp - 0x11]
nop word [rax + rax]
mov ebx, r15d
test eax, eax
jle 0x1400042f2
nop dword [rax + rax]
mov rcx, qword [rbp + 0x5f]
mov r8d, ebx
mov edx, edi
mov byte [rbp - 0x71], 0
call sub.LIBPQ.dll_Ordinal_47
test eax, eax
je 0x14000423c
mov rcx, qword [r13 + 0x68]
lea rax, [0x140011fe4]
test rcx, rcx
cmovne rax, rcx
jmp 0x140004268
lea rcx, str.Cannot_add_header_to_table_content:_column_count_of__d_exceeded._n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8d, dword [rbp - 0x6d]
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.14000c790
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rbp + 0x5f]
mov r8d, ebx
mov edx, edi
call sub.LIBPQ.dll_Ordinal_45
mov rcx, qword [rbp + 7]
cmp byte [r15 + rcx], 0x72
jne 0x140004268
cmp byte [r13 + 0x40], 0
je 0x140004268
mov rcx, rax
call fcn.1400054b0
mov byte [rbp - 0x71], 1
mov rcx, qword [r13 + 0x88]
test rcx, rcx
je 0x140004280
cmp byte [rcx + r15], 0
je 0x140004280
mov dil, 1
jmp 0x140004283
xor dil, dil
cmp esi, dword [rbp - 0x65]
jge 0x140004342
mov edx, dword [r13 + 0x50]
mov rcx, rax
call fcn.1400094a0
mov qword [r14], rax
test dil, dil
je 0x1400042ac
mov rcx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov qword [r14], rax
cmp byte [rbp - 0x71], 0
je 0x1400042cf
test r12, r12
jne 0x1400042c7
mov rcx, qword [rbp - 0x59]
call fcn.140009d70
mov r12, rax
mov qword [rbp - 0x11], rax
movsxd rcx, esi
mov byte [rcx + r12], 1
mov eax, dword [rbp - 0x6d]
mov edi, dword [rbp - 0x61]
add r14, 8
inc esi
inc ebx
inc r15
mov qword [rbp - 0x21], r14
mov dword [rbp - 0x19], esi
cmp ebx, eax
jl 0x1400041e0
mov ecx, dword [rbp - 0x69]
inc edi
xor r15d, r15d
mov dword [rbp - 0x61], edi
cmp edi, ecx
jl 0x1400041d0
mov rdi, qword [r13 + 0x78]
test rdi, rdi
je 0x140004390
mov rsi, qword [rdi]
test rsi, rsi
je 0x140004390
mov r14, qword [rbp - 9]
nop
mov ecx, 0x10
call fcn.140009d70
mov rcx, rsi
mov rbx, rax
call fcn.140009ce0
mov qword [rbx], rax
test r14, r14
jne 0x140004374
mov r14, rbx
jmp 0x140004378
lea rcx, str.Cannot_add_cell_to_table_content:_total_cell_count_of__d_exceeded._n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8d, dword [rbp - 0x65]
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.14000c790
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov qword [r15 + 8], rbx
mov rsi, qword [rdi + 8]
add rdi, 8
mov r15, rbx
test rsi, rsi
jne 0x140004320
mov qword [rbp - 9], r14
mov qword [rbp - 1], rbx
mov r9, qword [rbp + 0x7f]
movzx r8d, byte [rbp + 0x77]
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x51]
call fcn.140003de0
lea rcx, [rbp - 0x51]
call fcn.140003cd0
mov r12, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xf8]
mov r14, qword [rsp + 0xb0]
add rsp, 0xd0
pop r15
pop r13
pop rbp
ret