Function at 0x10012e10
Capabilities:
Get common file path
Get file attributes
Get file size
Move file

Disassembly:
sub esp, 0x85c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x858], eax
push esi
mov esi, dword [esp + 0x864]
push edi
mov edi, dword [esp + 0x86c]
test esi, esi
jne 0x10012e51
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x85c
ret
push ebx
push ebp
push 5
push edi
push esi
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov ebp, eax
call fcn.100050f0
test eax, eax
jne 0x100130b9
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
lea eax, [esp + 0x660]
push 0x104
push eax
push esi
call ebx
test edi, edi
je 0x10012e95
push 0x104
lea eax, [esp + 0x2c]
push eax
push edi
call ebx
jmp 0x10012ebf
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
lea eax, [esp + 0x28]
je 0x10012eab
push str.DIRNUL
jmp 0x10012eb0
push 0x10041780
push 0x100406a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x440]
push str._ls_ls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov cx, word [0x1004179c]
add esp, 0x10
movq xmm0, qword [str._Rename__r_n]
mov ebx, eax
mov word [esp + 0x24], cx
lea eax, [esp + 0x230]
mov cl, byte [0x1004179e]
push 0x104
push eax
mov dword [esp + 0x18], ebx
movq qword [esp + 0x24], xmm0
mov byte [esp + 0x2e], cl
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push str.WinInit.Ini
lea eax, [esp + 0x234]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x230]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x100130b9
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
push 0
lea ecx, [edi + 0xa]
add ecx, ebx
push ecx
push 0
push 4
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1001309d
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1001308f
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
jne 0x10012fe3
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + edi]
push 0x100417bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [0x100539f4]
add esp, 0xc
add edi, eax
mov esi, edi
jmp 0x1001303f
mov ecx, dword [0x100539f4]
test ecx, ecx
je 0x10013012
push ecx
push eax
call sub.VCRUNTIME140.dll_strstr
mov ebp, dword [0x100539f4]
add esp, 8
mov ecx, ebp
mov edx, eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013004
sub ecx, esi
lea esi, [ecx + edx]
jmp 0x10013026
push 0xa
push eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, dword [0x100539f4]
add esp, 8
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
add eax, esi
add ecx, edi
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sub esi, ebx
push dword [esp + 0x10]
lea eax, [esp + 0x43c]
push eax
lea eax, [esi + ebx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test ebp, ebp
je 0x10013065
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esp + 0x438]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [0x100539f4], eax
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
add edi, dword [esp + 0x10]
mov ebp, 1
mov esi, dword [esp + 0x14]
push dword [esp + 0x18]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
jmp 0x100130a3
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push 0
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push esi
call ebx
mov ecx, dword [esp + 0x868]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x85c
ret