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

Disassembly:
push ebp
lea ebp, [esp - 0x4d8]
sub esp, 0x558
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x4d4], eax
mov eax, dword [ebp + 0x4e4]
push edi
mov edi, dword [ebp + 0x4e0]
mov dword [ebp - 0x70], eax
test edi, edi
jne 0x402b84
xor eax, eax
jmp 0x402db5
push 5
push eax
push edi
call dword [sym.imp.kernel32.dll_MoveFileExA]
mov dword [ebp - 0x78], eax
call fcn.0040c08e
test eax, eax
jne 0x402db2
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x1bc]
push eax
push edi
call esi
cmp dword [ebp - 0x70], 0
je 0x402bcb
push ebx
lea eax, [ebp + 0x3c4]
push eax
push dword [ebp - 0x70]
call esi
jmp 0x402bfc
push edi
call fcn.00401f72
test eax, eax
pop ecx
lea eax, [ebp + 0x3c4]
je 0x402be8
push str.DIRNUL
push 0x40d900
jmp 0x402bf2
push 0x40d904
push 0x40d908
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x1bc]
push eax
lea eax, [ebp + 0x3c4]
push eax
lea eax, [ebp - 0x6c]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str._Rename__r_n
lea edi, [ebp + 0x4c8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], eax
push ebx
lea eax, [ebp + 0x2c0]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [ebp + 0x2c0]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x2c0]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x80], esi
cmp esi, 0xffffffff
je 0x402db0
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp - 0x70]
push ebx
mov dword [ebp - 0x74], eax
lea eax, [eax + ecx + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x402d96
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x402d8d
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
lea eax, [ebp + 0x4c8]
push eax
push edi
call esi
pop ecx
pop ecx
cmp eax, ebx
jne 0x402cf4
mov esi, dword [ebp - 0x74]
lea eax, [ebp + 0x4c8]
push eax
lea eax, [edi + esi]
push 0x40d934
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
mov dword [ebp - 0x74], esi
jmp 0x402d43
mov ecx, dword [0x4123c0]
cmp ecx, ebx
je 0x402d1b
push ecx
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [0x4123c0]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402d0d
sub ecx, esi
lea esi, [ecx + eax]
jmp 0x402d29
push 0xa
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
pop ecx
pop ecx
lea esi, [eax + 1]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x70]
add eax, esi
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
sub esi, edi
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
add esi, edi
push esi
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x4123c0]
add esp, 0xc
cmp eax, ebx
je 0x402d66
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
pop ecx
push edi
mov dword [0x4123c0], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x74], eax
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x78], 1
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
push ebx
push dword [ebp - 0x74]
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x4d4]
xor ecx, ebp
pop edi
call fcn.0040b376
add ebp, 0x4d8
leave
ret