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

Disassembly:
sub esp, 0x550
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x54c], eax
push esi
mov esi, dword [esp + 0x558]
push edi
mov edi, dword [esp + 0x560]
test esi, esi
jne 0x1000bfcb
xor eax, eax
jmp 0x1000c1ff
push ebx
push ebp
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [esp + 0x14], eax
call fcn.1001ad82
test eax, eax
jne 0x1000c1f9
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x230]
push 0x104
push eax
push esi
call ebp
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test edi, edi
je 0x1000c017
push 0x104
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
jmp 0x1000c042
push esi
call fcn.1000c2fc
test eax, eax
lea eax, [esp + 0x2c]
pop ecx
je 0x1000c032
push str.DIRNUL
push 0x1004cd6c
jmp 0x1000c03c
push 0x1004cd70
push 0x1004cd74
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x33c]
push str._hs_hs_r_n
push eax
call ebx
mov esi, str._Rename__r_n
lea edi, [esp + 0x2c]
add esp, 0x10
mov ebx, eax
mov ebp, 0x104
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x12c]
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_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [esp + 0x130]
push ebp
push eax
call fcn.100244bc
add esp, 0xc
lea eax, [esp + 0x12c]
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000c1f9
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
lea ecx, [edi + 0xa]
add ecx, ebx
push ecx
push esi
push 4
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000c1e1
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000c1d7
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.10022790
pop ecx
pop ecx
test eax, eax
jne 0x1000c135
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + edi]
push 0x1004cda0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov esi, edi
jmp 0x1000c187
mov ecx, dword [0x1006f178]
test ecx, ecx
je 0x1000c161
push ecx
push eax
call fcn.10022790
pop ecx
pop ecx
mov ecx, dword [0x1006f178]
mov edx, eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c153
sub ecx, esi
lea esi, [ecx + edx]
jmp 0x1000c16e
push 0xa
push eax
call fcn.10022660
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.10021f80
add esp, 0xc
sub esi, ebx
push dword [esp + 0x10]
lea eax, [esp + 0x338]
push eax
lea eax, [esi + ebx]
push eax
call fcn.10021f80
mov eax, dword [0x1006f178]
add esp, 0xc
test eax, eax
je 0x1000c1af
push eax
call fcn.10023ed7
pop ecx
lea eax, [esp + 0x334]
push eax
call fcn.100298e4
pop ecx
push ebx
mov dword [0x1006f178], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x14], 1
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]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
mov ecx, dword [esp + 0x554]
pop edi
pop esi
xor ecx, esp
call fcn.1001efb2
add esp, 0x550
ret