Function at 0x425990
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461d4e
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x472008]
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
mov ebx, ecx
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 8
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb8], eax
mov byte [eax], 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov word [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.0045e549
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
add esp, 4
mov dword [ebp - 0x34], 3
mov word [eax], cx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x64]
push dword [edi]
call fcn.0040e000
test al, al
je 0x42604d
mov eax, dword [ebx + 0x64]
cmp eax, 2
je 0x426188
mov edx, 2
test eax, eax
jne 0x425c56
mov esi, dword [edi + 4]
test esi, esi
jne 0x425a82
or eax, 0xffffffff
jmp 0x425ab6
mov edx, dword [edi]
lea eax, [esi - 1]
movzx ecx, word [edx + eax*2]
lea eax, [edx + eax*2]
cmp ecx, 0x5c
je 0x425aad
cmp cx, 0x2f
je 0x425aad
cmp eax, edx
je 0x425bfc
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
jne 0x425a93
sub eax, edx
sar eax, 1
mov edx, 2
xor ecx, ecx
lea ebx, [eax + 1]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xa0], ebx
cmp ebx, esi
jbe 0x425ad6
mov ebx, esi
mov dword [ebp - 0xa0], esi
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
mov dword [ebp - 0xac], ebx
mov esi, eax
mov dword [ebp - 0xa8], ebx
add ebx, ebx
push ebx
push dword [edi]
mov dword [ebp - 0xb0], esi
push esi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [ebx + esi], ax
mov esi, dword [ebp - 0xa0]
xor ecx, ecx
mov byte [ebp - 4], 1
mov edx, 2
mov edi, dword [ebp - 0x38]
add esi, edi
mov ebx, dword [ebp - 0x3c]
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
mov ecx, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], ecx
lea esi, [eax + eax]
push esi
push dword [ebp - 0xb0]
push ecx
call sub.msvcrt.dll_memcpy
lea ecx, [edi*2 + 2]
mov edi, dword [ebp - 0x1c]
push ecx
push ebx
lea eax, [edi + esi]
push eax
call sub.msvcrt.dll_memcpy
mov byte [ebp - 4], 3
push dword [ebp - 0xb0]
call fcn.0045e2f3
mov ebx, dword [ebp - 0xb4]
add esp, 0x30
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebx + 0x34]
movzx ecx, byte [ebx + 0xe8]
mov dword [ebp - 0x24], eax
neg ecx
mov eax, dword [edx]
sbb ecx, ecx
mov esi, dword [eax + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0xe0]
and ecx, eax
lea eax, [ebx + 0xc0]
push ecx
movzx ecx, byte [ebx + 0xcb]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x64]
push ecx
push dword [ebx + 0x6c]
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push edi
push edx
call dword [0x4642a0]
call esi
mov esi, eax
test esi, esi
jne 0x425d1d
mov eax, dword [ebp - 0x2c]
cmp eax, 5
ja case.default.0x425bf5
jmp dword [eax*4 + 0x4261b8]
or eax, 0xffffffff
jmp 0x425ab1
push edi
mov esi, 0x80004004
call fcn.0045e2f3
add esp, 4
jmp 0x42618a
mov dword [ebx + 0x64], 2
push edi
xor esi, esi
call fcn.0045e2f3
add esp, 4
jmp 0x42618a
mov dword [ebx + 0x64], 1
jmp case.0x425bf5.0
mov dword [ebx + 0x64], 3
push edi
mov byte [ebp - 4], 0
call fcn.0045e2f3
mov edi, dword [ebp - 0xa4]
add esp, 4
mov edx, 2
mov eax, dword [ebx + 0x64]
cmp eax, 3
jne 0x425d37
mov ecx, edi
call fcn.0041cad0
test al, al
jne 0x425d2b
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp byte [str.Cannot_create_file_with_auto_name], al
je 0x425c8f
inc esi
cmp byte [esi + str.Cannot_create_file_with_auto_name], al
jne 0x425c86
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
add esp, 4
mov dword [ebp - 0x18], esi
mov edx, eax
mov dword [ebp - 0x14], esi
xor ecx, ecx
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x425cd0
lea esp, [esp]
movzx eax, byte [ecx + str.Cannot_create_file_with_auto_name]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x425cc0
xor eax, eax
mov word [edx + esi*2], ax
mov edx, edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00425190
mov ecx, dword [ebx + 0x34]
mov edi, dword [ebp - 0x1c]
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4642a0]
call esi
push edi
mov esi, eax
call fcn.0045e2f3
add esp, 4
test esi, esi
jne 0x42618a
mov esi, 0x80004005
jmp 0x42618a
mov esi, 0x80004005
push edi
call fcn.0045e2f3
add esp, 4
jmp 0x42618a
mov byte [ebx + 0x18c], 1
jmp 0x42617f
cmp eax, 4
jne 0x425fbc
mov esi, dword [edi + 4]
xor ecx, ecx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
mov ecx, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea ecx, [ecx*2 + 2]
push ecx
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0041cad0
mov esi, dword [ebp - 0x1c]
test al, al
jne 0x425dff
xor eax, eax
xor esi, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp byte [str.Cannot_create_file_with_auto_name], al
je 0x425da9
mov edi, edi
inc esi
cmp byte [esi + str.Cannot_create_file_with_auto_name], al
jne 0x425da0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
add esp, 4
mov dword [ebp - 0x24], esi
mov edx, eax
mov dword [ebp - 0x20], esi
xor ecx, ecx
mov dword [ebp - 0x28], edx
test esi, esi
je 0x425df0
jmp 0x425de0
movzx eax, byte [ecx + str.Cannot_create_file_with_auto_name]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x425de0
xor eax, eax
mov word [edx + esi*2], ax
mov byte [ebp - 4], 6
jmp 0x425f77
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x425e1a
push esi
call fcn.0045e2f3
add esp, 4
jmp 0x42617f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x425e36
mov dword [ebp - 0xa0], 0x80004005
jmp 0x425e46
jle 0x425e46
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0xa0], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp byte [str.Cannot_rename_existing_file], al
je 0x425e69
jmp 0x425e60
inc esi
cmp byte [esi + str.Cannot_rename_existing_file], al
jne 0x425e60
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
add esp, 4
mov dword [ebp - 0x24], esi
mov edx, eax
mov dword [ebp - 0x20], esi
xor ecx, ecx
mov dword [ebp - 0x28], edx
test esi, esi
je 0x425eb0
jmp 0x425ea0
movzx eax, byte [ecx + str.Cannot_rename_existing_file]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x425ea0
xor eax, eax
mov word [edx + esi*2], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa0], eax
je 0x425f6c
xor esi, esi
jmp 0x425ed0
inc esi
cmp byte [esi + 0x46907c], 0
jne 0x425ed0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b990
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
lea edx, [eax + ecx*2]
xor ecx, ecx
test esi, esi
je 0x425f02
movzx eax, byte [ecx + 0x46907c]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x425ef2
add dword [ebp - 0x24], esi
lea ecx, [ebp - 0xb0]
xor eax, eax
mov word [edx + esi*2], ax
mov edx, dword [ebp - 0xa0]
call fcn.0040d670
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0xac]
call fcn.0040b990
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 0x24]
lea ecx, [eax + esi*2]
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0xb0]
push ecx
call sub.msvcrt.dll_memcpy
add esi, dword [ebp - 0xac]
mov byte [ebp - 4], 7
push dword [ebp - 0xb0]
mov dword [ebp - 0x24], esi
call fcn.0045e2f3
add esp, 0x10
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00425190
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00425190
mov ecx, dword [ebx + 0x34]
mov edi, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4642a0]
call esi
push edi
mov esi, eax
call fcn.0045e2f3
add esp, 4
test esi, esi
jne 0x425fac
mov esi, 0x80004005
push dword [ebp - 0x1c]
call fcn.0045e2f3
add esp, 4
jmp 0x42618a
mov eax, dword [ebp - 0x44]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x425ff3
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42617f
push edi
push str.Cannot_delete_output_folder
mov ecx, ebx
call fcn.00425210
mov esi, eax
test esi, esi
jne 0x42618a
jmp 0x426188
call fcn.0040e960
test al, al
je 0x42617f
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426027
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x426027
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x426036
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42617f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42617f
push edi
push str.Cannot_delete_output_file
jmp 0x425fdd
mov esi, dword [edi]
mov ecx, esi
call fcn.0040f1f0
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x42617f
cmp word [esi + eax*2 + 2], 0
je 0x42617f
mov esi, dword [edi + 4]
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
mov ecx, dword [edi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea ecx, [ecx*2 + 2]
push ecx
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 9
cmp eax, esi
jae 0x4260c4
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebx + eax*2], cx
push 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0045e549
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0
add esp, 4
mov dword [ebp - 0x6c], 3
mov word [eax], cx
push ecx
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.0040e000
test al, al
je 0x42616e
test byte [ebp - 0x7c], 1
je 0x42616e
mov eax, dword [ebp - 0x7c]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x74]
call fcn.0045e2f3
push ebx
call fcn.0045e2f3
add esp, 8
mov eax, dword [ebp - 0xb8]
mov byte [eax], 0
xor esi, esi
push dword [ebp - 0x3c]
call fcn.0045e2f3
add esp, 4
mov eax, esi
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.0045e090
mov esp, ebp
pop ebp
ret 8