Function at 0x1036c8c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file

Disassembly:
push 0xa8c
mov eax, 0x105600f
call fcn.01021f2c
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa88]
mov byte [ebp - 0xa81], 1
call fcn.010151da
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa90]
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.010151da
mov byte [ebp - 4], 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xa8c], eax
cmp eax, 0xffffffff
jne 0x1036d1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa90]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.01015174
xor al, al
call fcn.01021fbe
ret 4
test al, 0x10
jne 0x1036d53
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa90]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.01015174
mov al, bl
jmp 0x1036d14
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa90]
push eax
push esi
call fcn.01036032
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
je 0x1036daf
mov eax, dword [ebp - 0xa90]
cmp dword [eax - 0xc], ebx
je 0x1036daf
lea ecx, [ebp - 0x420]
push ecx
push ebx
push 0x100a654
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1036daf
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x420]
push ecx
push eax
call edi
test eax, eax
je 0x1036daf
lea eax, [ebp - 0x420]
push eax
jmp 0x1036db1
push dword [esi]
lea ecx, [ebp - 0xa88]
call fcn.010158cd
test dword [ebp - 0xa8c], 0x400
je 0x1036e07
push ebx
push 0x6200000
push 3
push ebx
push 7
push 0x10000
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1036df7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1036d22
push 4
push ebx
push dword [ebp - 0xa88]
call edi
jmp 0x1036d20
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.01014ba1
test eax, eax
jl 0x1036d20
push ebx
push esi
push 0x100a780
lea eax, [ebp - 0x830]
push eax
call fcn.01052d9c
test eax, eax
je 0x1036d20
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x830]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa8c], eax
cmp eax, 0xffffffff
je 0x1036fb5
cmp esi, 1
jne 0x1036fb5
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01014ba1
test eax, eax
jl 0x1036f27
push ebx
push esi
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.01052d9c
test eax, eax
je 0x1036f27
test byte [ebp - 0xa80], 0x10
je 0x1036f41
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1005258
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x1036f27
push 0x1005250
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x1036f27
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa98]
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa98]
push eax
call fcn.01036c8c
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa98]
call fcn.01015174
test bl, bl
je 0x1036f25
mov byte [ebp - 0xa81], 0
xor ebx, ebx
lea eax, [ebp - 0xa80]
push eax
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x1036e68
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1036f27
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x100a654
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1036f9d
push 1
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x628]
jne 0x1036fa3
lea eax, [ebp - 0x218]
push 4
push ebx
push eax
call edi
mov byte [ebp - 0xa81], 0
jmp 0x1036f27
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1036ff3
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1036ff3
push 4
push ebx
push dword [ebp - 0xa88]
call edi
mov byte [ebp - 0xa81], 0
mov bl, byte [ebp - 0xa81]
jmp 0x1036d22