Function at 0x40147c
Capabilities:
Check if file exists
Create directory
Delete file
Get disk size
Get file attributes
Get file size
Read .ini file

Disassembly:
mov eax, 0x40e8e7
call fcn.00408280
sub esp, 0xac8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
je 0x401534
push 0x3ea
push edi
call esi
push 2
push edi
mov dword [ebp - 0x10], eax
call esi
push ebx
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0xc80000
push ebx
push 0x401
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call edi
push ebx
push 1
push 0x404
push dword [ebp - 0x10]
call edi
push ebx
push ebx
push 0x405
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 1
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push ebx
push 0x405
push dword [ebp - 0x10]
call edi
push ebx
call fcn.00401d0a
test eax, eax
pop ecx
jne 0x401564
cmp dword [ebp + 8], ebx
je 0x401555
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x515fd8], 0x2714
jmp 0x401827
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x24], ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2e4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4016af
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4016af
cmp dword [ebp - 0x2e0], 4
jne 0x401629
cmp dword [ebp - 0x2dc], ebx
jne 0x401629
push str.GetDiskFreeSpaceA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4016af
lea eax, [ebp - 0x250]
push 0x515eb8
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00407df0
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
imul eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
jmp 0x4016af
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4016af
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], bl
push 0x515eb8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x250]
mov dword [ebp - 0x40], ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00407df0
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [ebp - 0x18]
cmp eax, ebx
je 0x4016af
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x14c], bl
mov byte [ebp - 0x5f4], bl
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [ebp - 0x5f3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x5f4]
push 0x515eb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x5f4]
push str.Rav.zip
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push 3
push ebx
push 3
lea eax, [ebp - 0x14c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40176c
cmp dword [ebp + 8], ebx
je 0x401752
push 0x10
push 9
push ebx
call fcn.004022fc
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x515eb8
call fcn.00401dd2
pop ecx
mov dword [0x515fd8], 0x2715
jmp 0x401827
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push 2
push ebx
push eax
call fcn.004082a0
cmp dword [ebp - 0x20], edx
ja 0x4017d0
jb 0x401790
cmp dword [ebp - 0x24], eax
jae 0x4017d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x515eb8
call fcn.00401dd2
cmp dword [ebp + 8], ebx
pop ecx
je 0x4017c4
push ebx
push 0xa
push ebx
call fcn.004022fc
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x515fd8], 0x2716
jmp 0x401827
cmp dword [0x412040], ebx
je 0x40182e
push edi
call fcn.004021e4
test eax, eax
pop ecx
je 0x40182e
cmp dword [ebp + 8], ebx
je 0x40182e
push 4
push 8
push ebx
call fcn.004022fc
add esp, 0xc
cmp eax, 7
jne 0x40182e
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x515eb8
call fcn.00401dd2
pop ecx
mov dword [0x515fd8], 0x2717
xor eax, eax
jmp 0x401cf9
push edi
call fcn.0040206c
push eax
lea eax, [ebp - 0x5f4]
push eax
push edi
call fcn.00401f5c
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x401869
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x6f7]
mov byte [ebp - 0x6f8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0xad4]
stosb byte es:[edi], al
call fcn.00402442
mov edi, 0x515eb8
lea eax, [ebp - 0x14c]
push edi
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x6f8]
push 1
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x5f4]
push eax
lea ecx, [ebp - 0xad4]
call fcn.004024d4
lea ecx, [ebp - 0xad4]
call fcn.00402c0a
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x401900
cmp dword [ebp + 8], ebx
je 0x4018ea
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call fcn.00401dd2
pop ecx
mov dword [0x515fd8], 0x2718
jmp 0x401c51
cmp dword [ebp - 0x10], ebx
je 0x40192d
add eax, 2
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
movzx eax, ax
shl eax, 0x10
push eax
push ebx
push 0x401
push dword [ebp - 0x10]
call edi
push ebx
push 2
push 0x402
push dword [ebp - 0x10]
call edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x3eb]
mov byte [ebp - 0x3ec], bl
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x7fb]
mov byte [ebp - 0x7fc], bl
push str.AUTO.INI
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x6f8]
push eax
call fcn.0040e850
pop ecx
test eax, eax
pop ecx
jne 0x401b0a
lea eax, [ebp - 0x14c]
push eax
push 0x64
push str.Space
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
push ebx
push 0x100000
push ecx
push eax
call fcn.004082a0
cmp edx, dword [ebp - 0x20]
jb 0x4019df
ja 0x4019a3
cmp eax, dword [ebp - 0x24]
jbe 0x4019df
cmp dword [ebp + 8], ebx
je 0x4019c5
push ebx
push 0xa
push ebx
call fcn.004022fc
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x515eb8
call fcn.00401dd2
pop ecx
mov dword [0x515fd8], 0x2716
jmp 0x401c51
lea eax, [ebp - 0x14c]
mov edi, 0x104
push eax
lea eax, [ebp - 0x3ec]
push edi
push eax
push 0x515fdc
push str.Path
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401aa2
push edi
push 0x515eb8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x515eb8
call fcn.00407d7e
pop ecx
cmp eax, ebx
pop ecx
je 0x401a4b
lea ecx, [ebp - 0x3ec]
inc eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x515eb8
call fcn.00402003
pop ecx
push ebx
push 0x515eb8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x515eb8
call fcn.00401f3f
test eax, eax
jne 0x401aa2
cmp dword [ebp + 8], ebx
je 0x401a93
push 0x10
push 9
push ebx
call fcn.004022fc
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x515fd8], 0x2714
jmp 0x401c51
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x3ec]
push edi
push eax
push str.notexist
push 0x4120c8
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x14c]
push eax
push 1
push str.Delete
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x515fd0], eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x7fc]
push edi
push eax
push 0x515fdc
push str.Param
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x401b0f
mov edi, 0x104
lea eax, [ebp - 0x14c]
push 0x515eb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x6f8]
push 1
push eax
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0xad4]
call fcn.00402532
test eax, eax
je 0x401b5f
cmp dword [0x515fc8], ebx
jne 0x401b5f
cmp dword [ebp - 0x10], ebx
je 0x401b0f
push ebx
push ebx
push 0x405
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401b0f
lea eax, [ebp - 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x5f4]
push 0x515eb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x5f4]
push 0x4120b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, edi
sub ecx, eax
lea eax, [ebp + eax - 0x5f4]
push ecx
lea ecx, [ebp - 0x3ec]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x7fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, eax
lea eax, [ebp + eax - 0x7fc]
push edi
push dword [0x515fc0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401c67
test byte [ebp - 0x1c], 0x10
jne 0x401c67
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x401c07
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x515fd0]
lea eax, [ebp - 0x7fc]
push eax
lea eax, [ebp - 0x5f4]
push eax
call fcn.004020eb
add esp, 0xc
cmp dword [0x515fd0], ebx
mov dword [0x515fd8], eax
je 0x401c3b
push 0x515eb8
call section..text
pop ecx
cmp esi, ebx
je 0x401c4e
push ebx
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad4]
call fcn.004024b1
mov eax, ebx
jmp 0x401cf9
cmp dword [ebp + 8], ebx
je 0x401ce7
mov eax, dword [ebp - 0x18]
push ebx
add eax, 2
push eax
push 0x402
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x3ed
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push ebx
push 0x3ee
push dword [ebp + 8]
call esi
push eax
call edi
push ebx
mov ebx, dword [ebp + 8]
push 0x3ea
push ebx
call esi
push eax
call edi
push 5
push 0x3ef
push ebx
call esi
push eax
call edi
push 5
push 0x3f0
push ebx
call esi
push eax
call edi
push 5
push 0x3eb
push ebx
call esi
push eax
call edi
push 5
push 0x3ec
push ebx
call esi
push eax
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad4]
call fcn.004024b1
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4