Function at 0x405620
Capabilities:
Copy file
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b75f
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x435ad8]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435ad8]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x43c]
push 0x3ff
lea eax, [esp + 0x29]
push 0
mov dword [esp + 0x43c], 0
push eax
mov byte [esp + 0x30], 0
call fcn.00418020
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x4056c4
mov dword [esp + 0x434], 0xffffffff
mov eax, dword [esp + 0x444]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405aa4
call fcn.004091c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4056de
push 0x80004005
call fcn.004061d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push str._sRaonSecure
mov ebx, 1
push edx
mov byte [esp + 0x440], bl
call fcn.004068b0
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
push eax
call esi
push 7
push str.FFCert
lea ecx, [esp + 0x20]
call fcn.004060e0
mov ecx, dword [esp + 0x18]
push 0
push ecx
call esi
push str.cert9.db
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00405f10
add esp, 0xc
mov esi, eax
push str.cert9.db
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x440], 2
call fcn.00405f10
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x434], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.key4.db
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00405f10
add esp, 0xc
mov edi, eax
push str.key4.db
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x440], 3
call fcn.00405f10
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push 0
push edi
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x434], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x440]
push ebx
push ecx
push edx
mov edi, ebp
call fcn.00405300
mov eax, dword [esp + 0x440]
mov edi, dword [esp + 0x18]
push ebx
push eax
mov ecx, ebp
call fcn.004050f0
test eax, eax
je 0x4059a0
push str.cert9.db
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00405f10
add esp, 0xc
mov edi, eax
push str.cert9.db
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x440], 4
call fcn.00405f10
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push 0
push edi
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4058ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x434], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.key4.db
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00405f10
add esp, 0xc
mov edi, eax
push str.key4.db
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x440], 5
call fcn.00405f10
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push 0
push edi
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405979
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x434], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.cert9.db
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405f10
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.key4.db
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405f10
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.pkcs11.txt
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405f10
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x434], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x434], 0xffffffff
mov eax, dword [esp + 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004149ab
add esp, 0x424
ret 0xc