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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push eax
call esi
push 1
lea eax, [ebp - 0x300]
pop ebx
push ebx
push eax
call fcn.0040ae88
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop ecx
pop ecx
lea eax, [ebp - 0x300]
push dword [0x417894]
push eax
call edi
test eax, eax
jne 0x40ab85
mov dword [0x417ba8], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [0x417820], 0
je 0x40abb9
test ebx, ebx
jne 0x40abc1
mov eax, dword [0x417cac]
test eax, eax
je 0x40adc8
push ebx
push dword [ebp + 8]
push 1
push 4
call eax
test ebx, ebx
je 0x40adc8
cmp dword [0x4178d0], 0
je 0x40adc8
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push 1
push eax
call fcn.0040ae88
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push dword [0x417894]
push eax
call edi
test eax, eax
je 0x40adc8
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0040ae88
mov eax, dword [0x4177dc]
pop ecx
cmp eax, 2
pop ecx
jne 0x40acf0
lea eax, [ebp - 0x200]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x201], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40ac5c
lea eax, [ebp - 0x200]
push 0x41410c
push eax
call esi
lea eax, [ebp - 0x200]
push str.WININIT.INI
push eax
call esi
lea eax, [ebp - 0x200]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, dword [sym.imp.KERNEL32.dll__lwrite]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aca3
lea eax, [ebp - 0x200]
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 0x40acae
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 0xffffffff
je 0x40adc8
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x200]
push eax
push esi
call edi
jmp 0x40adc1
cmp eax, 1
jne 0x40ad07
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x40adc8
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push str.del__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call edi
cmp byte [ebp + eax - 0x101], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40ad62
lea eax, [ebp - 0x100]
push 0x41410c
push eax
call esi
lea eax, [ebp - 0x100]
push 0x41480c
push eax
call esi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ad99
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
jmp 0x40ada4
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 0xffffffff
je 0x40adc8
lea eax, [ebp - 0x200]
push eax
call edi
push eax
lea eax, [ebp - 0x300]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret