Function at 0x10019e05
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
sub esp, 0x85c
mov eax, dword [0x100be114]
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 0x10019e34
xor eax, eax
jmp 0x1001a06d
push ebx
push ebp
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
mov dword [esp + 0x14], ebx
call fcn.1002e60f
test eax, eax
jne 0x1001a069
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [esp + 0x660]
push 0x104
push eax
push esi
call ebp
test edi, edi
je 0x10019e7c
push 0x104
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
jmp 0x10019eab
push esi
call fcn.1001a10c
test eax, eax
lea eax, [esp + 0x2c]
pop ecx
je 0x10019e97
push str.DIRNUL
push 0x1007e988
jmp 0x10019ea1
push 0x1007e990
push 0x1007e998
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 esi, str._Rename__r_n
mov dword [esp + 0x20], eax
lea edi, [esp + 0x2c]
add esp, 0x10
mov ebp, 0x104
lea eax, [esp + 0x230]
movsd dword es:[edi], dword [esi]
push ebp
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.WinInit.Ini
lea eax, [esp + 0x234]
push ebp
push eax
call fcn.1004aa73
add esp, 0xc
lea eax, [esp + 0x230]
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001a069
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push esi
add ecx, 0xa
add ecx, edi
push ecx
push esi
push 4
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1001a051
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1001a043
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.1003f640
pop ecx
pop ecx
test eax, eax
jne 0x10019fa4
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + edi]
push 0x1007e9d4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov esi, edi
jmp 0x10019ff6
mov ecx, dword [0x100c0c7c]
test ecx, ecx
je 0x10019fd0
push ecx
push eax
call fcn.1003f640
pop ecx
pop ecx
mov ecx, dword [0x100c0c7c]
mov edx, eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019fc2
sub ecx, esi
lea esi, [ecx + edx]
jmp 0x10019fdd
push 0xa
push eax
call fcn.1003f510
pop ecx
pop ecx
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 fcn.1003d0e0
add esp, 0xc
sub esi, ebx
push dword [esp + 0x10]
lea eax, [esp + 0x43c]
push eax
lea eax, [esi + ebx]
push eax
call fcn.1003d0e0
mov eax, dword [0x100c0c7c]
add esp, 0xc
test eax, eax
je 0x1001a01e
push eax
call fcn.100411f4
pop ecx
lea eax, [esp + 0x438]
push eax
call fcn.1004e324
pop ecx
push ebx
mov dword [0x100c0c7c], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
xor esi, esi
jmp 0x1001a047
mov ebx, dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x860]
pop edi
pop esi
xor ecx, esp
call fcn.1003b105
add esp, 0x85c
ret