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

Disassembly:
push ebp
lea ebp, [esp - 0x4d4]
sub esp, 0x554
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x4d0], eax
mov eax, dword [ebp + 0x4e0]
push edi
mov edi, dword [ebp + 0x4dc]
mov dword [ebp - 0x74], eax
test edi, edi
jne 0x10009ee5
xor eax, eax
jmp 0x1000a10f
push 5
push eax
push edi
call dword [sym.imp.kernel32.dll_MoveFileExA]
mov dword [ebp - 0x78], eax
call fcn.1001fa50
test eax, eax
jne 0x1000a10c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x1b8]
push eax
push edi
call esi
cmp dword [ebp - 0x74], 0
je 0x10009f2c
push ebx
lea eax, [ebp + 0x3c0]
push eax
push dword [ebp - 0x74]
call esi
jmp 0x10009f5d
push edi
call fcn.1000983f
test eax, eax
pop ecx
lea eax, [ebp + 0x3c0]
je 0x10009f49
push str.DIRNUL
push 0x10039804
jmp 0x10009f53
push 0x10039808
push 0x1003980c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x1b8]
push eax
lea eax, [ebp + 0x3c0]
push eax
lea eax, [ebp - 0x70]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str._Rename__r_n
lea edi, [ebp + 0x4c4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], eax
push ebx
lea eax, [ebp + 0x2bc]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [ebp + 0x2bc]
push ebx
push eax
call fcn.1001fa50
add esp, 0xc
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp + 0x2bc]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x7c], edi
cmp edi, 0xffffffff
je 0x1000a10a
push esi
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 0x74]
push esi
lea eax, [ebx + eax + 0xa]
push eax
push esi
push 4
push esi
push edi
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x80], eax
cmp eax, esi
je 0x1000a0f2
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x1000a0e6
lea eax, [ebp + 0x4c4]
push eax
push edi
call fcn.1001e6c0
pop ecx
pop ecx
cmp eax, esi
jne 0x1000a050
lea eax, [ebp + 0x4c4]
push eax
lea eax, [edi + ebx]
push 0x10039838
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
mov eax, ebx
jmp 0x1000a0a4
mov ecx, dword [0x100489c8]
cmp ecx, esi
je 0x1000a07b
push ecx
push eax
call fcn.1001e6c0
pop ecx
pop ecx
mov ecx, dword [0x100489c8]
mov esi, eax
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000a06e
sub ecx, eax
add esi, ecx
jmp 0x1000a088
push 0xa
push eax
call fcn.1001e600
pop ecx
pop ecx
lea esi, [eax + 1]
mov eax, edi
sub eax, esi
add eax, ebx
push eax
mov eax, dword [ebp - 0x74]
add eax, esi
push esi
push eax
call fcn.1001fa50
sub esi, edi
add esp, 0xc
mov eax, esi
xor esi, esi
push dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push ecx
add eax, edi
push eax
call fcn.1001fa50
mov eax, dword [0x100489c8]
add esp, 0xc
cmp eax, esi
je 0x1000a0c6
push eax
call fcn.1001fa50
pop ecx
lea eax, [ebp - 0x70]
push eax
call fcn.1001fa50
pop ecx
push edi
mov dword [0x100489c8], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
add ebx, dword [ebp - 0x74]
mov dword [ebp - 0x78], 1
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 0x7c]
push esi
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push edi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x4d0]
xor ecx, ebp
pop edi
call fcn.1001d742
add ebp, 0x4d4
leave
ret