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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x304]
push eax
call esi
push 1
lea eax, [ebp - 0x304]
pop ebx
push ebx
push eax
call fcn.00408bfa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop ecx
pop ecx
lea eax, [ebp - 0x304]
push dword [0x4148d8]
push eax
call edi
test eax, eax
jne 0x4088f9
mov dword [0x414be8], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
cmp dword [0x41487c], 0
mov dword [ebp - 4], eax
je 0x40892a
test eax, eax
jne 0x40892a
mov eax, dword [0x414cec]
test eax, eax
je 0x40892a
push 0
push dword [ebp + 8]
push ebx
push 4
call eax
cmp dword [ebp - 4], 0
je 0x408b39
cmp dword [0x41490c], 0
je 0x408b39
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00408bfa
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push dword [0x4148d8]
push eax
call edi
test eax, eax
je 0x408975
mov dword [0x414884], ebx
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00408bfa
mov eax, dword [0x414854]
pop ecx
cmp eax, 2
pop ecx
jne 0x408a63
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x205], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4089d0
lea eax, [ebp - 0x204]
push 0x4110cc
push eax
call esi
lea eax, [ebp - 0x204]
push str.WININIT.INI
push eax
call esi
lea eax, [ebp - 0x204]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, dword [sym.imp.KERNEL32.dll__lwrite]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408a16
lea eax, [ebp - 0x204]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
push 0xa
push str._rename__r_n
push esi
call edi
jmp 0x408a21
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 0xffffffff
je 0x408b39
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call edi
jmp 0x408b32
cmp eax, ebx
jne 0x408a79
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x408b39
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push str.del__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call edi
cmp byte [ebp + eax - 0x105], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x408ad4
lea eax, [ebp - 0x104]
push 0x4110cc
push eax
call esi
lea eax, [ebp - 0x104]
push 0x411700
push eax
call esi
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408b0a
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
jmp 0x408b15
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 0xffffffff
je 0x408b39
lea eax, [ebp - 0x204]
push eax
call edi
push eax
lea eax, [ebp - 0x304]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret