Function at 0x4015e1
Capabilities:
Delete file
Get disk size
Get file attributes
Get file size
Read .ini file

Disassembly:
mov eax, 0x41a43c
call fcn.0041318c
sub esp, 0x7f4
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ebx
je 0x401650
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push edi
call esi
push 2
push edi
call esi
push ebx
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 1
push eax
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call fcn.0040151b
test eax, eax
pop ecx
jne 0x401681
cmp edi, ebx
mov dword [0x5222d8], 0x2714
je 0x401c81
push ebx
push 1
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401c81
lea eax, [ebp - 0x2e0]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2e0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4017ca
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4017ca
cmp dword [ebp - 0x2dc], 4
jne 0x401746
cmp dword [ebp - 0x2d8], ebx
jne 0x401746
push 0x41c418
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4017ca
push 0x5220b0
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call fcn.00412c00
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
jmp 0x4017ca
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4017ca
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x24c], bl
lea edi, [ebp - 0x24b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x5220b0
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call fcn.00412c00
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24c]
push eax
call esi
cmp eax, ebx
je 0x4017ca
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x800], bl
lea edi, [ebp - 0x7ff]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x4e8], bl
mov ecx, 0x81
lea edi, [ebp - 0x4e7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x5220b0
push edi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Rav.7z
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x401886
cmp dword [ebp + 8], ebx
je 0x401870
push 0x10
push 9
push ebx
call fcn.00401266
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call fcn.00401389
pop ecx
mov dword [0x5222d8], 0x2715
jmp 0x401c81
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
pop ecx
mul ecx
cmp dword [ebp - 0x1c], edx
ja 0x4018e6
jb 0x4018a5
cmp dword [ebp - 0x20], eax
jae 0x4018e6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00401389
cmp dword [ebp + 8], ebx
pop ecx
je 0x4018d7
push ebx
push 0xa
push ebx
call fcn.00401266
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5222d8], 0x2716
jmp 0x401c81
push dword [ebp - 0x14]
call fcn.00401105
push eax
lea eax, [ebp - 0x4e8]
push eax
push dword [ebp - 0x14]
call fcn.0040105e
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x401927
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00402d9e
test eax, eax
jne 0x401952
push 0x10
push 8
push ebx
call fcn.00401266
add esp, 0xc
jmp 0x4019f4
cmp dword [0x5222cc], ebx
mov eax, 0x5221b8
jne 0x401961
mov eax, edi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x20]
push 0x5222c4
push dword [ebp + 8]
push eax
call fcn.00402865
cmp eax, ebx
je 0x401a03
cmp dword [0x5222c4], ebx
je 0x401997
mov dword [0x5222d8], 0x2712
jmp 0x401c70
cmp eax, 0x81000001
jne 0x4019d6
push edi
call fcn.00401389
cmp dword [ebp + 8], ebx
pop ecx
je 0x4019c7
push ebx
push 0xa
push ebx
call fcn.00401266
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5222d8], 0x2716
jmp 0x401c70
push 0x10
push 8
push ebx
call fcn.00401266
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5222d8], 0x2717
jmp 0x401c70
cmp dword [0x5222cc], ebx
je 0x401a2b
push edi
call fcn.004014d8
cmp dword [ebp + 8], ebx
pop ecx
je 0x401c70
push ebx
push 1
push 0x111
push dword [ebp + 8]
jmp 0x401c6a
push 0x41
pop ecx
xor eax, eax
push 0x40
mov byte [ebp - 0x6f8], bl
lea edi, [ebp - 0x6f7]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x148], bl
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov byte [ebp - 0x5f0], bl
lea edi, [ebp - 0x5ef]
push 0x5220b0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5f0]
push str._s_auto.ini
push eax
call fcn.0041299f
add esp, 0xc
lea eax, [ebp - 0x5f0]
push eax
push esi
lea eax, [ebp - 0x6f8]
push eax
push str.Setup.exe
push 0x41c3e0
mov edi, str.SYSTEM
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x5f0]
push eax
push 1
push str.Delete
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5222d0], eax
lea eax, [ebp - 0x5f0]
push eax
push esi
lea eax, [ebp - 0x148]
push eax
push 0x41c3ce
push str.Param
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push 0x5220b0
lea eax, [ebp - 0x4e8]
push eax
call edi
push 0x41c3c4
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
sub ecx, eax
push ecx
lea ecx, [ebp - 0x6f8]
push ecx
lea eax, [ebp + eax - 0x4e8]
push eax
call edi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esi, eax
push esi
push dword [0x5222c0]
lea eax, [ebp + eax - 0x148]
push eax
call edi
lea eax, [ebp - 0x148]
push 0x41c3c0
push eax
call fcn.00412762
test eax, eax
pop ecx
pop ecx
jne 0x401ba4
lea eax, [ebp - 0x148]
push str._SILENCE
push eax
call fcn.00412762
test eax, eax
pop ecx
pop ecx
jne 0x401ba4
push 0x41c3b0
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x18], 0xffffffff
je 0x401c1c
test byte [ebp - 0x18], 0x10
jne 0x401c1c
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x401bbf
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x5222d0]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.00401184
add esp, 0xc
cmp dword [0x5222d0], ebx
mov dword [0x5222d8], eax
je 0x401bf3
push 0x5220b0
call fcn.004014d8
pop ecx
cmp esi, ebx
je 0x401c06
push ebx
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x401c17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x401c83
cmp dword [0x5222c4], ebx
jne 0x401c3b
push 0x10
push 9
push ebx
call fcn.00401266
add esp, 0xc
mov dword [0x5222d8], 0x2714
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x401c4a
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x5222d0], ebx
je 0x401c5d
push 0x5220b0
call fcn.004014d8
pop ecx
cmp esi, ebx
je 0x401c70
push ebx
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x401c81
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4