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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x118
mov dword [0x1002bf40], eax
push ebx
push esi
xor ebx, ebx
lea ecx, [esp + 0x1c]
push edi
push ebp
push 0x104
push ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call ebp
mov edx, str.WinInit.bak
lea edi, [esp + 0x24]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebp, dword [edx + 8]
push ebx
mov dword [edi], eax
mov al, byte [edx + 0xc]
push 0x8000080
push 3
mov dword [edi + 4], ecx
lea ecx, [esp + 0x30]
push ebx
push ebx
mov dword [edi + 8], ebp
push 0xc0000000
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ecx
mov byte [edi + 0xc], al
call ebp
cmp eax, 0xffffffff
mov esi, eax
je 0x10007d3e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
push ebx
inc eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push eax
push ebx
push 4
push ebx
push esi
call ebp
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x10007ba7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007d3e
mov eax, dword [esp + 0x10]
push 0
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 2
push eax
call ebp
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10007bd6
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x10007d3b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, ecx
mov byte [eax + ecx], 0
cmp byte [edi], 0
je 0x10007c1c
push 0x1002f30c
push edi
call fcn.1001fdb0
add esp, 8
add edi, eax
push 5
push str._lfn_
push edi
call fcn.10028c78
add esp, 0xc
test eax, eax
jne 0x10007c12
mov ebx, 1
cmp byte [edi], 0
je 0x10007c18
inc edi
test ebx, ebx
je 0x10007be4
test ebx, ebx
jne 0x10007c3d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
jmp 0x10007d3b
lea eax, [edi - 1]
push str.__n____nTS.
mov dword [esp + 0x24], eax
push edi
call fcn.1001fdb0
add esp, 8
add eax, edi
mov dword [esp + 0x1c], eax
push 0x1002f31c
push edi
call fcn.1001fdb0
add esp, 8
add edi, eax
cmp byte [edi], 0
je 0x10007cdc
cmp byte [edi + 1], 0x22
jne 0x10007cdc
lea ebx, [edi + 2]
push 0x1002f320
push ebx
call fcn.1001fdb0
add esp, 8
lea edi, [ebx + eax]
cmp byte [edi], 0
je 0x10007cc7
mov byte [edi], 0
inc edi
push 0x1002f324
push edi
call fcn.1001fdb0
add esp, 8
lea ebp, [edi + eax]
cmp byte [ebp], 0
je 0x10007cc7
inc ebp
push 0x1002f328
push ebp
call fcn.1001fdb0
add esp, 8
lea edi, [ebp + eax]
inc edi
push ebx
push ebp
mov byte [edi - 1], 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x1002f32c
push edi
call fcn.1001fdb0
add esp, 8
add edi, eax
cmp byte [edi], 0
jne 0x10007c6d
mov edi, dword [esp + 0x1c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.1001fc28
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub dword [esp + 0x24], ecx
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov eax, dword [esp + 0x20]
push 0
add eax, dword [esp + 0x1c]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call ebp
push esi
call edi
push 1
call fcn.10014cd0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x118
ret 0x10