Function at 0x438750
Capabilities:
Check if file exists
Delete directory
Get common file path
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48997f
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4ab4ec]
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 eax, dword [ebp + 0x28]
mov esi, ecx
mov dword [ebp - 0x21c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
mov byte [ebp - 4], 1
push esi
lea edx, [ebp - 0x254]
push str.Deleting_directory:
push edx
call fcn.00406340
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.0041d4f0
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
jb 0x4387ee
mov edx, dword [ebp - 0x250]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x43881e
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00456b63
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp byte [esi + 0x1c], bl
je 0x43883d
call fcn.00431bc0
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x438849
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4388fb
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 3
push str._does_not_exist.
lea ecx, [ebp - 0x254]
push esi
push ecx
call fcn.004059f0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x238]
push edx
push eax
call fcn.0041d4f0
add esp, 0x14
mov byte [ebp - 4], 3
cmp dword [ebp - 0x23c], 8
jb 0x4388b1
mov eax, dword [ebp - 0x250]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x4388e1
mov edx, dword [ebp - 0x234]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
jmp 0x4389a2
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x438919
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 0x24]
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.00404f40
mov byte [ebp - 4], 5
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00438350
lea ecx, [ebp - 0x218]
push ecx
call edi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x438977
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43899d
cmp byte [ebp + 0x24], bl
je 0x43899d
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x438993
lea eax, [ebp + 0xc]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 7
cmp byte [esi + 0x1c], bl
je 0x4389ac
call fcn.0042bb90
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x4389c5
mov edx, dword [ebp + 0xc]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov word [ebp + 0xc], ax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov al, 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.0045718a
mov esp, ebp
pop ebp
ret 0x24