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

Disassembly:
push ebp
lea ebp, [esp - 0x4d8]
sub esp, 0x558
mov eax, dword [0x6d948560]
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 0x6d933181
xor eax, eax
jmp 0x6d9333b2
push 5
push eax
push edi
call dword [sym.imp.kernel32.dll_MoveFileExA]
mov dword [ebp - 0x78], eax
call fcn.6d92aed2
test eax, eax
jne 0x6d9333af
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 0x6d9331c8
push ebx
lea eax, [ebp + 0x3c4]
push eax
push dword [ebp - 0x70]
call esi
jmp 0x6d9331f9
push edi
call fcn.6d93256f
test eax, eax
pop ecx
lea eax, [ebp + 0x3c4]
je 0x6d9331e5
push str.DIRNUL
push 0x6d93eab0
jmp 0x6d9331ef
push 0x6d93eab4
push 0x6d93eab8
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 0x6d9333ad
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 0x6d933393
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x6d93338a
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 0x6d9332f1
mov esi, dword [ebp - 0x74]
lea eax, [ebp + 0x4c8]
push eax
lea eax, [edi + esi]
push 0x6d93eae4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
mov dword [ebp - 0x74], esi
jmp 0x6d933340
mov ecx, dword [0x6d9486d4]
cmp ecx, ebx
je 0x6d933318
push ecx
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [0x6d9486d4]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x6d93330a
sub ecx, esi
lea esi, [ecx + eax]
jmp 0x6d933326
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 [0x6d9486d4]
add esp, 0xc
cmp eax, ebx
je 0x6d933363
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 [0x6d9486d4], 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.6d9398d8
add ebp, 0x4d8
leave
ret