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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x108e1f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x82c], eax
mov eax, dword [0x108e32c]
xor edi, edi
mov dword [ebp - 0x828], edi
test eax, eax
jbe 0x1042f01
mov ebx, dword [0x108e338]
mov ecx, ebx
cmp dword [ecx], esi
je 0x1042ce8
inc edi
add ecx, 0x210
mov dword [ebp - 0x828], edi
cmp edi, eax
jb 0x1042cd3
cmp edi, eax
jae 0x1042f01
mov esi, 0x104
push esi
lea eax, [ebp - 0x824]
push 0
push eax
call sub.msvcrt.dll_memset
imul edi, edi, 0x210
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
xor eax, eax
push eax
push eax
push dword [edi + ebx + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x824]
push eax
call ebx
mov eax, dword [ebp + 0xc]
and eax, 0x28
cmp al, 0x28
jne 0x1042d83
push esi
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x1009d78
call sub.SHELL32.dll_SHGetFolderPathEx
test eax, eax
jl 0x1042e70
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x100d400
call ebx
test eax, eax
je 0x1042e70
push dword [0x1097428]
call ebx
test eax, eax
je 0x1042e70
mov eax, dword [0x108e338]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x100d56c
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
cmp byte [ebp + 0x10], 0
je 0x1042e8d
mov eax, dword [0x108e338]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x100d560
lea eax, [ebp - 0x414]
push esi
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [0x108e338]
add eax, edi
add esp, 0x18
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1042e8d
mov eax, dword [0x108e338]
push 1
add eax, edi
lea ecx, [ebp - 0x414]
push ecx
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1042e8d
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [0x108e338]
lea eax, [edi + eax + 8]
push eax
push 0x100d500
push 0x100d4f0
push 0xc5
push 0x80
call fcn.01054409
add esp, 0x18
jmp 0x1042e79
lea eax, [ebp - 0x20c]
push eax
call ebx
push dword [ebp - 0x828]
mov ecx, 0x108e32c
call fcn.01042c41
xor eax, eax
jmp 0x1042f07
mov eax, dword [0x108e338]
add eax, edi
push 1
add eax, 8
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1042ee8
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [0x108e338]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x100d490
push 0x100d4f0
push 0xcf
push 0x80
call fcn.01054409
add esp, 0x18
and dword [ebp - 0x82c], 0
push dword [ebp - 0x828]
mov ecx, 0x108e32c
call fcn.01042c41
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [ebp - 0x82c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01034b69
leave
ret 0xc