Function at 0x140004348
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov rax, qword [0x140084070]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rdx
mov qword [rbp - 1], r8
mov qword [rbp + 7], r9
xor r13d, r13d
mov rcx, r9
cmp qword [r9 + 0x18], 8
jb 0x14000439b
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x1400045c4
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400043ba
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x1400045ba
lea rdx, str.NSS_Init
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b58], rax
lea rdx, str.NSS_Shutdown
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b60], rax
lea rdx, str.PK11_GetInternalKeySlot
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b98], rax
lea rdx, str.PK11_FreeSlot
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b80], rax
lea rdx, str.PK11_CheckUserPassword
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b88], rax
lea rdx, str.PK11_Authenticate
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b78], rax
lea rdx, str.PL_Base64Decode
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b90], rax
lea rdx, str.PK11SDR_Decrypt
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b70], rax
lea rdx, str.SECITEM_ZfreeItem
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140084b68], rax
cmp qword [0x140084b58], r13
je 0x1400045b1
cmp qword [0x140084b60], r13
je 0x1400045b1
cmp qword [0x140084b98], r13
je 0x1400045b1
cmp qword [0x140084b80], r13
je 0x1400045b1
cmp qword [0x140084b88], r13
je 0x1400045b1
cmp qword [0x140084b78], r13
je 0x1400045b1
cmp qword [0x140084b90], r13
je 0x1400045b1
cmp qword [0x140084b70], r13
je 0x1400045b1
test rax, rax
je 0x1400045b1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140004519
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400045c4
lea rax, [rbp - 0x51]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x48], rax
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140005210
mov r13, rax
mov rdx, qword [rbx + 0x10]
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdx
cmp rcx, 2
jb 0x140004607
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x140004571
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
lea rax, [0x1400788b4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x71]
call fcn.1400029e8
nop
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.140005210
nop
mov r8, r13
lea rdx, [rbp - 0x71]
mov rcx, rax
call fcn.140004100
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, rbx
call fcn.140001804
nop
mov rcx, r14
call fcn.140001804
nop
mov rcx, rdi
call fcn.140001804
nop
mov rcx, rsi
call fcn.140001804
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140063d10
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400011a4
nop
int3