Function at 0x6d5a1c80
Capabilities:
Get common file path
Get file attributes
Get file size
Move file

Disassembly:
sub esp, 0x85c
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
mov ebx, dword [esp + 0x868]
push esi
mov esi, dword [esp + 0x868]
test esi, esi
jne 0x6d5a1cc1
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x85c
ret
push edi
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov edi, eax
mov dword [esp + 0xc], edi
call fcn.6d593310
test eax, eax
jne 0x6d5a1f36
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push 0x104
lea eax, [esp + 0x664]
push eax
push esi
call ebp
test ebx, ebx
je 0x6d5a1d09
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push ebx
call ebp
jmp 0x6d5a1d3d
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x6d5a1d25
push str.DIRNUL
push 0x6d5cfa40
lea edx, [esp + 0x30]
push edx
jmp 0x6d5a1d34
push 0x6d5d0c14
push 0x6d5cfa40
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x660]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x440]
push str._ls_ls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x6d5d0c00]
mov ecx, dword [str._Rename__r_n]
add esp, 0x10
mov esi, eax
mov ax, word [0x6d5d0c04]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov cl, byte [0x6d5d0c06]
push 0x104
lea edx, [esp + 0x234]
push edx
mov dword [esp + 0x1c], esi
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], cl
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push str.WinInit.Ini
lea eax, [esp + 0x234]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x248]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6d5a1f35
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
push 0
mov ebx, eax
lea edx, [ebx + esi + 0xa]
push edx
push 0
push 4
push 0
push ebp
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x6d5a1f1b
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x6d5a1f0c
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
jne 0x6d5a1e5c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [edi + ebx]
push 0x6d5d0bdc
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
mov eax, ebx
jmp 0x6d5a1ebe
mov ecx, dword [0x6d5e2e9c]
test ecx, ecx
je 0x6d5a1e8e
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
mov ecx, dword [0x6d5e2e9c]
add esp, 8
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x6d5a1e80
sub ecx, esi
lea esi, [ecx + eax]
jmp 0x6d5a1e9d
push 0xa
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
lea esi, [eax + 1]
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
add eax, ebx
push eax
lea edx, [esi + ecx]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
sub esi, edi
mov eax, esi
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x43c]
push ecx
add eax, edi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x6d5e2e9c]
add esp, 0xc
test eax, eax
je 0x6d5a1ee5
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea edx, [esp + 0x438]
push edx
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
push edi
mov dword [0x6d5e2e9c], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
add ebx, esi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
push 0
push 0
push ebx
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]
pop ebp
mov ecx, dword [esp + 0x864]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x85c
ret