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, 0x40e817
call fcn.004081e0
sub esp, 0xac8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
je 0x401531
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push edi
call esi
push 2
push edi
mov dword [ebp - 0x10], eax
call esi
push ebx
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0xc80000
push ebx
push 0x401
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call esi
push ebx
push 1
push 0x404
push dword [ebp - 0x10]
call esi
push ebx
mov edi, 0x405
push ebx
push edi
push dword [ebp - 0x10]
call esi
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 - 0x18], eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call esi
push ebx
call fcn.00401c7d
test eax, eax
pop ecx
jne 0x401565
cmp dword [ebp + 8], ebx
mov dword [0x515fd8], 0x2714
je 0x401811
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401811
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2e4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, 0x515eb8
je 0x4016a9
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4016a9
cmp dword [ebp - 0x2e0], 4
jne 0x401627
cmp dword [ebp - 0x2dc], ebx
jne 0x401627
push str.GetDiskFreeSpaceA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4016a9
lea eax, [ebp - 0x250]
push esi
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00407d50
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ebx
imul eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x4016a9
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x4016a9
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], bl
push esi
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 - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00407d50
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [ebp - 0x30]
cmp eax, ebx
je 0x4016a9
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 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 esi
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 0x40175e
cmp dword [ebp + 8], ebx
je 0x401748
push 0x10
push 9
push ebx
call fcn.00402099
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.004021df
pop ecx
mov dword [0x515fd8], 0x2715
jmp 0x401811
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.00408200
cmp dword [ebp - 0x1c], edx
ja 0x4017be
jb 0x401782
cmp dword [ebp - 0x20], eax
jae 0x4017be
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004021df
cmp dword [ebp + 8], ebx
pop ecx
je 0x4017b2
push ebx
push 0xa
push ebx
call fcn.00402099
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 0x401811
cmp dword [0x412040], ebx
je 0x401818
push edi
call fcn.00401f81
test eax, eax
pop ecx
je 0x401818
cmp dword [ebp + 8], ebx
je 0x401818
push 4
push 8
push ebx
call fcn.00402099
add esp, 0xc
cmp eax, 7
jne 0x401818
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 esi
call fcn.004021df
pop ecx
mov dword [0x515fd8], 0x2717
xor eax, eax
jmp 0x401c6c
push edi
call fcn.00401e09
push eax
lea eax, [ebp - 0x5f4]
push eax
push edi
call fcn.00401d62
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x401853
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push dword [ebp - 0x24]
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.00402399
lea eax, [ebp - 0x14c]
push esi
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.0040242b
lea ecx, [ebp - 0xad4]
call fcn.00402b61
cmp eax, ebx
jne 0x4018e2
cmp dword [ebp + 8], ebx
je 0x4018cc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.004021df
pop ecx
mov dword [0x515fd8], 0x2718
jmp 0x401c5b
cmp dword [ebp - 0x10], ebx
je 0x40190f
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.0040e780
pop ecx
test eax, eax
pop ecx
jne 0x401ace
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.00408200
cmp edx, dword [ebp - 0x1c]
jb 0x4019bd
ja 0x401985
cmp eax, dword [ebp - 0x20]
jbe 0x4019bd
cmp dword [ebp + 8], ebx
je 0x4019a7
push ebx
push 0xa
push ebx
call fcn.00402099
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.004021df
pop ecx
mov dword [0x515fd8], 0x2716
jmp 0x401c5b
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 0x401a66
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.00407cde
pop ecx
cmp eax, ebx
pop ecx
je 0x401a1d
lea ecx, [ebp - 0x3ec]
inc eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00402330
pop ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00401d45
test eax, eax
jne 0x401a66
cmp dword [ebp + 8], ebx
mov dword [0x515fd8], 0x2714
je 0x401c5b
push 0x10
push 9
push ebx
call fcn.00402099
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
jmp 0x401c55
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x3ec]
push edi
push eax
push str.Setup.exe
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 0x401ad3
mov edi, 0x104
lea eax, [ebp - 0x14c]
push esi
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.00402489
test eax, eax
je 0x401b1f
cmp dword [0x515fc8], ebx
jne 0x401b1f
cmp dword [ebp - 0x10], ebx
je 0x401ad3
push ebx
push ebx
push 0x405
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401ad3
lea eax, [ebp - 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x5f4]
push esi
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 - 0x18], 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 - 0x18], 0xffffffff
je 0x401c0b
test byte [ebp - 0x18], 0x10
jne 0x401c0b
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x401bc3
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x515fd0]
lea eax, [ebp - 0x7fc]
push eax
lea eax, [ebp - 0x5f4]
push eax
call fcn.00401e88
add esp, 0xc
cmp dword [0x515fd0], ebx
mov dword [0x515fd8], eax
je 0x401bf3
push esi
call section..text
pop ecx
cmp edi, ebx
je 0x401c06
push ebx
push 1
push 0x111
add byte [edi - 1], dl
adc eax, sym.imp.USER32.dll_SendMessageA
push 1
pop ebx
jmp 0x401c5b
cmp dword [0x515fc8], ebx
jne 0x401c2a
push 0x10
push 9
push ebx
call fcn.00402099
add esp, 0xc
mov dword [0x515fd8], 0x2714
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x401c39
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x515fd0], ebx
je 0x401c48
push esi
call section..text
pop ecx
cmp edi, ebx
je 0x401c5b
push ebx
push 1
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad4]
call fcn.00402408
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4