Function at 0x404750
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x234
push ebp
mov ebp, dword [esp + 0x23c]
push 4
push 0
mov ecx, ebp
call fcn.00403410
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4049a2
push ebx
push esi
push edi
mov ecx, 0x41
lea edi, [esp + 0x3c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov dl, 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x3b], dl
je 0x4047be
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x3c], dl
mov edi, str.wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00402850
push 0
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00403290
test eax, eax
jge 0x40485c
push str._Rename__r_nNUL
lea ecx, [esp + 0x1c]
call fcn.00402970
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x144]
push ecx
mov ecx, ebp
call fcn.00403410
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x140]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.00402aa0
jmp 0x404988
xor esi, esi
xor bl, bl
push str.NUL
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], esi
mov byte [esp + 0x17], bl
call fcn.00402880
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x144]
mov ecx, ebp
push eax
call fcn.00403410
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x140]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402aa0
push 0
push 0x40c1bc
lea ecx, [esp + 0x2c]
call fcn.00402aa0
lea ecx, [esp + 0x30]
call fcn.00402850
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.00403190
test al, al
je 0x404941
push 0
push str._Rename_
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00403080
mov ecx, eax
call fcn.00402c40
test al, al
je 0x40490e
mov esi, dword [esp + 0x14]
mov bl, 1
jmp 0x404912
test bl, bl
je 0x40492b
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x38]
call fcn.00402b80
test al, al
je 0x40492b
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00403190
test al, al
jne 0x4048df
test bl, bl
jne 0x404958
mov esi, dword [esp + 0x14]
push 0
push str._r_n_Rename__r_n
lea ecx, [esp + 0x20]
call fcn.00402aa0
add esi, 0xc
mov al, byte [esp + 0x13]
test al, al
jne 0x404976
push 0
push esi
lea ecx, [esp + 0x2c]
call fcn.00403410
push eax
lea ecx, [esp + 0x24]
call fcn.004031f0
lea ecx, [esp + 0x30]
call fcn.00402950
lea ecx, [esp + 0x24]
call fcn.00402950
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004034a0
lea ecx, [esp + 0x18]
call fcn.00402950
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x234
ret