Function at 0x140002560
Capabilities:
Create directory
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x14002e578]
lea rcx, str._s_pg_wal
call fcn.14000cf70
mov rcx, qword [0x14002e5f8]
mov rdi, rax
test rcx, rcx
je 0x140002792
call fcn.140011270
mov rcx, qword [0x14002e5f8]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x1400025f0
cmp al, 0x5c
je 0x1400025f0
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x1400025cd
mov rcx, qword [0x14002e5f8]
cmp byte [rcx + 1], 0x3a
jne 0x1400025cd
movzx eax, byte [rcx + 2]
cmp al, 0x2f
je 0x1400025f0
cmp al, 0x5c
je 0x1400025f0
cmp dword [0x14002f818], 4
jg 0x1400027bc
lea rdx, str.WAL_directory_location_must_be_an_absolute_path
mov ecx, 4
call fcn.14000dcf0
jmp 0x1400027bc
call fcn.1400131c0
mov ebx, eax
test eax, eax
je 0x140002707
cmp eax, 1
je 0x140002693
lea ecx, [rax - 2]
cmp ecx, 2
ja 0x140002673
cmp dword [0x14002f818], 4
jg 0x140002631
mov r8, qword [0x14002e5f8]
lea rdx, str.directory___s__exists_but_is_not_empty
mov ecx, 4
call fcn.14000dcf0
cmp ebx, 4
je 0x140002642
mov ecx, ebx
call fcn.1400027f0
jmp 0x1400027bc
lea rcx, str.If_you_want_to_store_the_WAL_there__either_remove_or_empty_the_directory_n__s_._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14002e5f8]
mov rdx, rbx
mov rcx, rax
call fcn.14000ecc0
jmp 0x1400027bc
cmp dword [0x14002f818], 4
jg 0x1400027bc
mov r8, qword [0x14002e5f8]
lea rdx, str.could_not_access_directory___s_:__m
jmp 0x1400027b2
lea rcx, str.fixing_permissions_on_existing_directory__s_...
call sub.libintl_8.dll_libintl_gettext
mov rdx, qword [0x14002e5f8]
mov rcx, rax
call fcn.14000ed30
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov edx, dword [0x140028478]
mov rcx, qword [0x14002e5f8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chmod]
test eax, eax
je 0x1400026f9
cmp dword [0x14002f818], 4
jg 0x1400027bc
mov r8, qword [0x14002e5f8]
lea rdx, str.could_not_change_permissions_of_directory___s_:__m
jmp 0x1400027b2
call fcn.140005370
mov byte [0x14002e66a], 1
jmp 0x14000276a
lea rcx, str.creating_directory__s_...
call sub.libintl_8.dll_libintl_gettext
mov rdx, qword [0x14002e5f8]
mov rcx, rax
call fcn.14000ed30
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov edx, dword [0x140028478]
mov rcx, qword [0x14002e5f8]
call fcn.1400132c0
test eax, eax
je 0x14000275e
cmp dword [0x14002f818], 4
jg 0x1400027bc
mov r8, qword [0x14002e5f8]
jmp 0x1400027ab
call fcn.140005370
mov byte [0x14002e669], 1
mov rcx, qword [0x14002e5f8]
mov rdx, rdi
call fcn.140010600
test eax, eax
je 0x1400027c8
cmp dword [0x14002f818], 4
jg 0x1400027bc
mov r8, rdi
lea rdx, str.could_not_create_symbolic_link___s_:__m
jmp 0x1400027b2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
jns 0x1400027c8
cmp dword [0x14002f818], 4
jg 0x1400027bc
mov r8, rdi
lea rdx, str.could_not_create_directory___s_:__m
mov ecx, 4
call fcn.14000dcf0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]