Function at 0x431810
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 0x4d578a
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x50f52c]
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 esi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
push ebx
xor eax, eax
mov edi, 7
push 0x4e25d8
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.00401860
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x250]
push str.Deleting_directory:
push ecx
call fcn.00401a30
add esp, 0xc
mov byte [ebp - 4], 3
lea edx, [ebp - 0x234]
push edx
push eax
call fcn.00419d40
mov byte [ebp - 4], 2
cmp dword [ebp - 0x238], 8
jb 0x4318ba
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
jb 0x4318eb
mov edx, dword [ebp - 0x230]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
cmp dword [esi + 0x1c], ebx
je 0x43190a
call fcn.00427480
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x431916
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4319dc
xor ecx, ecx
push ebx
mov word [ebp - 0x230], cx
push 0x4e25d8
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
call fcn.00401860
mov byte [ebp - 4], 4
push str._does_not_exist.
lea edx, [ebp - 0x250]
push esi
push edx
call fcn.00401b00
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], 4
cmp dword [ebp - 0x238], 8
jb 0x431991
mov edx, dword [ebp - 0x24c]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
jb 0x4319c2
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], dx
jmp 0x431a95
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4319fa
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
sub esp, 0x20
lea edx, [ebp + 0x28]
mov ecx, esp
mov dword [ebp - 0x254], esp
push edx
call fcn.00431250
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x24]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], 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.00401750
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004313f0
lea ecx, [ebp - 0x218]
push ecx
call edi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x431a6a
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x431a90
cmp dword [ebp + 0x24], ebx
je 0x431a90
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x431a86
lea eax, [ebp + 0xc]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 7
cmp dword [esi + 0x1c], ebx
je 0x431a9f
call fcn.004260e0
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], 8
jb 0x431ab4
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.0047c8c0
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.004b3057
mov esp, ebp
pop ebp
ret 0x40