Function at 0x422db0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a25fb
mov eax, dword fs:[0]
push eax
sub esp, 0xf10
mov eax, dword [0x4d61d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0xe80], 0
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xe79]
call fcn.00422060
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea eax, [ebp - 0x218]
push eax
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x422fbf
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x422fbf
push 0x6b
mov dword [ebp - 0xe68], eax
lea ecx, [ebp - 0xe78]
mov dword [ebp - 0xe64], eax
push 0x4ac3b0
mov dword [ebp - 0xe68], eax
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], al
call fcn.004076f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe60]
push 3
mov dword [ebp - 0xe50], 0
mov dword [ebp - 0xe4c], 0
push 0x4a9c6c
mov dword [ebp - 0xe50], 0
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], 0
call fcn.004076f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xe78]
push 0x8c
push eax
lea eax, [ebp - 0xe60]
push eax
lea ecx, [ebp - 0xf1c]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push eax
push str.Create_directory_:__s
lea eax, [ebp - 0xe84]
push 1
push eax
call fcn.00438c80
mov ecx, 0x4a9a78
mov dword [ebp - 0xe80], 1
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402c30
add esp, 0x18
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, 1
mov dword [ebp - 0xe80], eax
and eax, 0xfffffffe
mov dword [ebp - 0xe80], eax
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xe84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422f8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf1c]
call fcn.00404eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe60]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe78]
call fcn.004041a0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea ecx, [ebp - 0xe79]
call fcn.00422c00
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call edi
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004693b0
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.004263e0
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.004693b0
add esp, 0x20
lea ecx, [ebp - 0xe79]
call fcn.00422240
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xe48]
push eax
call edi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea ecx, [ebp - 0xe79]
call fcn.00422b40
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x4230b7
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004693b0
add esp, 0xc
lea ecx, [ebp - 0xe79]
call fcn.00422aa0
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
je 0x423242
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x423242
push 0x6b
mov dword [ebp - 0xe50], eax
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe4c], eax
push 0x4ac3b0
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.004076f0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xe78]
push 3
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0
push 0x4a9c6c
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], 0
call fcn.004076f0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xe60]
push 0xa3
push eax
lea eax, [ebp - 0xe78]
push eax
lea ecx, [ebp - 0xf1c]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x628]
push eax
push str.Delete__s
lea eax, [ebp - 0xe84]
push 1
push eax
call fcn.00438c80
mov ecx, 0x4a9a78
mov dword [ebp - 0xe80], 2
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402c30
add esp, 0x18
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, 2
mov dword [ebp - 0xe80], eax
and eax, 0xfffffffd
mov dword [ebp - 0xe80], eax
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0xe84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423212
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf1c]
call fcn.00404eb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe78]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.004041a0
mov esi, dword [str._ShowExaminePage]
lea ecx, [ebp - 0xe79]
call fcn.00421f80
push 0
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x628]
push ecx
push esi
lea ecx, [ebp - 0xe48]
push ecx
push eax
call fcn.00423fc0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004693b0
add esp, 0x24
lea ecx, [ebp - 0xe79]
call fcn.00421dc0
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xc40]
push eax
call edi
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea ecx, [ebp - 0xe79]
call fcn.00422850
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push eax
call edi
lea eax, [ebp - 0xa38]
push eax
call ebx
test eax, eax
je 0x423460
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x423460
push 0x6b
mov dword [ebp - 0xe50], eax
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe4c], eax
push 0x4ac3b0
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.004076f0
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0xe78]
push 3
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0
push 0x4a9c6c
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], 0
call fcn.004076f0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xe60]
push 0xb2
push eax
lea eax, [ebp - 0xe78]
push eax
lea ecx, [ebp - 0xf1c]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xa38]
push eax
push str.Delete__s
lea eax, [ebp - 0xe84]
push 1
push eax
call fcn.00438c80
mov ecx, 0x4a9a78
mov dword [ebp - 0xe80], 4
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402c30
add esp, 0x18
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, 4
mov dword [ebp - 0xe80], eax
and eax, 0xfffffffb
mov dword [ebp - 0xe80], eax
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov edx, dword [ebp - 0xe84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423430
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf1c]
call fcn.00404eb0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe78]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.004041a0
push 0
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xe79]
call fcn.00422c80
push eax
call fcn.00423fc0
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a373
mov esp, ebp
pop ebp
ret