Function at 0x1400bcb20
Capabilities:
Clear file content

Disassembly:
push rbp
mov eax, 0x80d0
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
call fcn.140035990
sub rsp, rax
test rcx, rcx
je 0x1400bd0c8
mov dword [rsp + 0x7c], 0
mov rsi, qword [rcx + 0x50]
mov rdi, rcx
mov rbx, rdx
mov dword [rsp + 0x80], 0xedb88320
mov dword [rsp + 0x84], 0
test rdx, rdx
je 0x1400bcef8
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400cd920
mov r13, rax
test rax, rax
je 0x1400bd112
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400bcf00
mov rcx, rax
lea r14, str.DefaultWalletName
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [rdi], 0
movabs rax, 0x1a167bef15feea18
mov qword [rsp + 0x9d], 0
cmovne r14, rdi
test rbx, rbx
mov qword [rsp + 0x90], rax
setne al
setne dl
movzx eax, al
mov byte [rsp + 0x9c], dl
mov rcx, r14
mov edx, 0x40
add eax, 1
mov dword [rsp + 0x98], eax
call fcn.140037330
lea rdx, [rsp + 0x90]
mov rcx, r12
lea r8, [rsp + 0xb0]
mov word [rsp + 0xa5], ax
mov r9d, 2
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xb0], rdx
mov rdx, r14
mov qword [rsp + 0xb8], 0x17
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rax
call fcn.140109900
mov ecx, dword [rsp + 0x84]
test ecx, ecx
jne 0x1400bccca
movzx edx, word [rsp + 0xa5]
add edx, 0x17
mov dword [rsp + 0x7c], edx
cmp rdx, rax
je 0x1400bcd20
lea rax, str.Error_write_Wallet_header_to_file__s__err__lu
mov dword [rsp + 0x30], ecx
xor edx, edx
mov r9d, 7
mov qword [rsp + 0x20], rax
lea r8, str.dap_chain_wallet
xor ecx, ecx
mov qword [rsp + 0x28], rsi
call fcn.14005a160
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x84]
neg eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
xor ebx, ebx
mov ecx, dword [rsp + 0x80]
call fcn.140071560
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov ecx, eax
mov dword [rsp + 0x80], eax
call fcn.140071560
cmp qword [rsi + 0x108], 0
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x7c]
mov rcx, rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
je 0x1400bcfa9
mov qword [rsp + 0x58], r14
mov r15, rcx
mov qword [rbp + 0x10], rdi
jmp 0x1400bce6c
mov rdi, qword [rsp + 0x48]
mov rdx, r14
mov r8d, dword [rsp + 0x7c]
mov rcx, r13
mov qword [rsp + 0x20], 0x8000
mov r9, rdi
call qword [r13 + 0x40]
mov rdx, rdi
mov dword [rsp + 0x88], 1
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x8c], eax
mov rcx, r12
mov r9d, 2
mov qword [rsp + 0xc0], rdx
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rdi
mov edi, eax
add eax, 8
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xb8], 8
call fcn.140109900
mov rcx, r14
mov rdi, rax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x84]
test eax, eax
jne 0x1400bcf50
mov ecx, dword [rsp + 0x7c]
mov rdx, rcx
cmp rcx, rdi
jne 0x1400bcf54
add rbx, 1
cmp qword [rsi + 0x108], rbx
jbe 0x1400bcfa0
mov rax, qword [rsi + 0x110]
mov rdx, r15
mov rcx, qword [rax + rbx*8]
call fcn.140077f60
mov r14, rax
test rax, rax
je 0x1400bcec8
mov r8d, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x80]
mov rdx, rax
call fcn.140071560
mov dword [rsp + 0x80], eax
test r13, r13
jne 0x1400bcda8
mov dword [rsp + 0x88], 1
mov eax, dword [rsp + 0x7c]
mov rdx, r14
jmp 0x1400bcdd6
lea rax, str.Certificate__zu_cannot_be_obtained__go_next_...
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, str.dap_chain_wallet
call fcn.14005a160
jmp 0x1400bce5b
xor r13d, r13d
jmp 0x1400bcbae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x28], rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x84], eax
mov r9d, 7
lea r8, str.dap_chain_wallet
mov dword [rsp + 0x30], eax
lea rax, str.Cant_open_file__s_for_writing__errno_lu
mov qword [rsp + 0x20], rax
call fcn.14005a160
mov eax, dword [rsp + 0x84]
neg eax
jmp 0x1400bcd07
mov edx, dword [rsp + 0x7c]
mov dword [rsp + 0x38], eax
lea rax, str.Error_writing__d_octets_of_cert_to_file__s__err__lu
mov r9d, 7
xor ecx, ecx
mov dword [rsp + 0x28], edx
lea r8, str.dap_chain_wallet
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rsi
call fcn.14005a160
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x84]
neg eax
jmp 0x1400bcd07
mov r14, qword [rsp + 0x58]
mov rdi, qword [rbp + 0x10]
cmp dword [rsp + 0x98], 2
je 0x1400bd001
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x1400bcfc9
mov rcx, r13
call fcn.1400cd120
lea rax, str.Wallet__s_has_been_saved_into_the__s
mov qword [rsp + 0x30], rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.dap_chain_wallet
mov qword [rsp + 0x28], rdi
call fcn.14005a160
mov eax, dword [rsp + 0x84]
jmp 0x1400bcd07
mov rax, qword [0x140281210]
mov r8, qword [rsp + 0x60]
mov rdx, r14
mov rcx, r12
mov r9d, 2
mov dword [rsp + 0x7c], 0xc
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb8], 8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xc8], 4
call fcn.140109900
mov edx, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x7c]
test edx, edx
jne 0x1400bd090
mov r8d, dword [rsp + 0x7c]
mov rcx, r8
cmp r8, rax
je 0x1400bcfb3
lea rax, str.Error_writing__d_octets_of_cert_to_file__s__err__lu
mov dword [rsp + 0x38], edx
xor edx, edx
mov r9d, 7
mov dword [rsp + 0x28], ecx
lea r8, str.dap_chain_wallet
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400bcfb3
mov dword [rsp + 0x7c], 0
lea rax, str.Wallet_is_null__cant_save_it_to_file_
mov dword [rsp + 0x80], 0xedb88320
mov dword [rsp + 0x84], 0
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.dap_chain_wallet
call fcn.14005a160
mov eax, 0xffffffea
jmp 0x1400bcd07
lea rax, str.Error_create_key_context
jmp 0x1400bd0ed