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

Disassembly:
sub esp, 0x550
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x54c], eax
push esi
mov esi, dword [esp + 0x558]
push edi
mov edi, dword [esp + 0x560]
test esi, esi
jne 0x6d2cf271
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54c]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x550
ret
push ebx
push 5
push edi
push esi
call dword [sym.imp.kernel32.dll_MoveFileExA]
mov ebx, eax
mov dword [esp + 0x10], ebx
call fcn.6d2c2ed0
test eax, eax
jne 0x6d2cf4d8
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameA]
push 0x104
lea eax, [esp + 0x234]
push eax
push esi
call ebp
test edi, edi
je 0x6d2cf2b9
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push edi
call ebp
jmp 0x6d2cf2ed
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test al, 0x10
je 0x6d2cf2d5
push str.DIRNUL
push 0x6d2dcc48
lea edx, [esp + 0x30]
push edx
jmp 0x6d2cf2e4
push 0x6d2dcdc4
push 0x6d2dcc48
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x33c]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x6d2dcdb0]
mov ecx, dword [str._Rename__r_n]
add esp, 0x10
mov esi, eax
mov ax, word [0x6d2dcdb4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov cl, byte [0x6d2dcdb6]
push 0x104
lea edx, [esp + 0x130]
push edx
mov dword [esp + 0x18], esi
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], cl
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6d2cf4d7
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
push 0
mov edi, eax
lea edx, [edi + esi + 0xa]
push edx
push 0
push 4
push 0
push ebp
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x6d2cf4bd
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x6d2cf4b2
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
lea eax, [esp + 0x1c]
push eax
push ebx
call esi
add esp, 8
test eax, eax
jne 0x6d2cf408
lea ecx, [esp + 0x1c]
push ecx
lea edx, [ebx + edi]
push 0x6d2dcc48
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov esi, edi
jmp 0x6d2cf45a
mov ecx, dword [0x6d2e56b8]
test ecx, ecx
je 0x6d2cf430
push ecx
push eax
call esi
mov ecx, dword [0x6d2e56b8]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x6d2cf422
sub ecx, esi
lea esi, [ecx + eax]
jmp 0x6d2cf43f
push 0xa
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
lea esi, [eax + 1]
mov ecx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
add eax, edi
push eax
lea edx, [esi + ecx]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
sub esi, ebx
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x338]
push ecx
add esi, ebx
push esi
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x6d2e56b8]
add esp, 0xc
test eax, eax
je 0x6d2cf485
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea edx, [esp + 0x334]
push edx
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
push ebx
mov dword [0x6d2e56b8], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
add edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
push 0
push 0
push edi
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 + 0x558]
mov eax, ebx
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.6d2d932c
add esp, 0x550
ret