Function at 0x450690
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c86bd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
cmp dword [eax + 0x14], 0xf
mov ecx, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], esi
jbe 0x4506d4
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4506fe
xorps xmm0, xmm0
mov ecx, esi
push 0x1f
movups xmmword [esi], xmm0
push str.Source_directory_does_not_exist
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00454080
jmp 0x4508b5
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x450708
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x450749
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x45071d
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x450749
xorps xmm0, xmm0
mov ecx, esi
push 0x26
movups xmmword [esi], xmm0
push str.Failed_to_create_destination_directory
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00454080
jmp 0x4508b5
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 4
cmp dword [eax + 0x14], 0xf
jbe 0x450762
mov eax, dword [eax]
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x40], eax
jbe 0x45076d
mov edi, dword [edi]
mov eax, 0x614
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x36], 0
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4507c0
xorps xmm0, xmm0
mov ecx, esi
push 0x1f
movups xmmword [esi], xmm0
push str.OK:_Rename_directory_successful
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00454080
jmp 0x4508b5
cmp ecx, 2
jne 0x4507ec
xorps xmm0, xmm0
mov ecx, esi
push 0x2a
movups xmmword [esi], xmm0
push str.Failed_to_rename_directory:_File_not_found
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00454080
jmp 0x4508b5
lea edi, [ebp - 0x13]
test ecx, ecx
jns 0x450830
neg ecx
mov dword [ebp - 0x4c], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x4c]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x4c], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4507f8
dec edi
mov byte [edi], 0x2d
jmp 0x45085d
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x4c]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x4c], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x450830
push ecx
lea eax, [ebp - 0x13]
push eax
push edi
lea ecx, [ebp - 0x6c]
call fcn.00455520
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
mov edx, str.Failed_to_rename_directory:_Error_code
mov ecx, esi
call fcn.00453ba0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 0xf
jbe 0x4508b5
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4508ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4508d2
push ecx
push edx
call fcn.0059e516
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
call fcn.005a920f
int3