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

Disassembly:
mov eax, 0x426bf0
call fcn.004167ec
sub esp, 0x7f4
push ebx
push esi
push edi
push str.UnCompressThread
push str._s_Start
call fcn.004033ac
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x40381d
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 - 0x30], 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 - 0x14], eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call fcn.0040254d
test eax, eax
pop ecx
jne 0x40384e
cmp edi, ebx
mov dword [0x531848], 0x2714
je 0x403c7f
push ebx
push 1
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x403c7f
lea eax, [ebp - 0x1dc]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1dc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, 0x531620
je 0x403992
push 0x42855c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x403992
cmp dword [ebp - 0x1d8], 4
jne 0x403910
cmp dword [ebp - 0x1d4], ebx
jne 0x403910
push 0x4288c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403992
push esi
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x148]
push 0x5c
push eax
call fcn.00417510
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
jmp 0x403992
push 0x4288b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x403992
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x148], bl
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x40], ebx
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 - 0x148]
push 0x5c
push eax
call fcn.00417510
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 - 0x148]
push eax
call dword [ebp - 0x24]
cmp eax, ebx
je 0x403992
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 - 0x6f8], bl
lea edi, [ebp - 0x6f7]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x5f0], bl
mov ecx, 0x81
lea edi, [ebp - 0x5ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x6f8]
push eax
push dword [0x53182c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Rav.7z
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x6f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403a4c
cmp dword [ebp + 8], ebx
je 0x403a36
push 0x10
push 9
push ebx
call fcn.004020ba
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.004023bb
pop ecx
mov dword [0x531848], 0x2715
jmp 0x403c7f
lea eax, [ebp - 0x44]
push eax
push edi
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
pop ecx
mul ecx
cmp dword [ebp - 0x1c], edx
ja 0x403aaa
jb 0x403a6b
cmp dword [ebp - 0x20], eax
jae 0x403aaa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004023bb
cmp dword [ebp + 8], ebx
pop ecx
je 0x403a9b
push ebx
push 0xa
push ebx
call fcn.004020ba
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x531848], 0x2716
jmp 0x403c7f
push edi
call fcn.0040203b
push eax
lea eax, [ebp - 0x5f0]
push eax
push edi
call fcn.00401f94
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x403ae7
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_EnableWindow]
push ecx
lea eax, [ebp - 0x5f0]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040374d
call fcn.00402dfc
cmp eax, ebx
pop ecx
je 0x403c7f
mov dword [ebp - 0x10], ebx
push str.CMy7z_Open_File_Start_...
mov dword [ebp - 4], ebx
call fcn.004033ac
pop ecx
lea eax, [ebp - 0x5f0]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404f96
test eax, eax
jne 0x403b47
push 0x10
push 8
push ebx
call fcn.004020ba
add esp, 0xc
mov dword [0x531848], 0x2717
jmp 0x403c6e
push str.CMy7z_Open_File_End_...
call fcn.004033ac
cmp dword [0x53183c], ebx
pop ecx
mov eax, 0x531728
jne 0x403b61
mov eax, esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x20]
push 0x531834
push edi
push eax
call fcn.004051f9
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x403c4c
lea ecx, [ebp - 0x18]
call fcn.0040297f
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push str._08x
push eax
mov byte [ebp - 4], 1
call fcn.004035a3
mov edi, dword [ebp - 0x18]
mov eax, 0x428670
push eax
push eax
push str.Extractfailed
push edi
push str.true
push 0x428854
push str.res_watch_install
call fcn.0041f460
add esp, 0x28
cmp dword [0x531834], ebx
je 0x403be4
mov dword [0x531848], 0x2712
lea ecx, [edi - 0x10]
call fcn.00401b94
jmp 0x403c6e
cmp dword [ebp - 0x14], 0x81000001
jne 0x403c22
push esi
call fcn.004023bb
cmp dword [ebp + 8], ebx
pop ecx
je 0x403c16
push ebx
push 0xa
push ebx
call fcn.004020ba
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x531848], 0x2716
jmp 0x403bd7
push 0x10
push 8
push ebx
call fcn.004020ba
add esp, 0xc
push ebx
push 1
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x531848], 0x2717
jmp 0x403bd7
cmp dword [0x53183c], ebx
je 0x403c86
push esi
call fcn.0040250a
cmp edi, ebx
pop ecx
je 0x403c6e
push ebx
push 1
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403c7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x403dd8
push 0x41
pop ecx
xor eax, eax
push 0x40
mov byte [ebp - 0x800], bl
lea edi, [ebp - 0x7ff]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x2e0], bl
lea edi, [ebp - 0x2df]
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 - 0x3e8], bl
lea edi, [ebp - 0x3e7]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3e8]
push str._s_auto.ini
push eax
call fcn.004162c8
add esp, 0xc
lea eax, [ebp - 0x3e8]
push eax
push 0x104
lea eax, [ebp - 0x800]
push eax
push 0x428828
push 0x428824
mov edi, 0x42856c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x3e8]
push eax
push 1
push 0x428594
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x531840], eax
lea eax, [ebp - 0x3e8]
push eax
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push 0x428670
push str.Param
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x2e0]
push 0x428818
push eax
call fcn.004169fb
test eax, eax
pop ecx
pop ecx
jne 0x403d89
lea eax, [ebp - 0x2e0]
push 0x42880c
push eax
call fcn.004169fb
test eax, eax
pop ecx
pop ecx
jne 0x403d89
push 0x428808
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x403d98
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004034ff
cmp dword [0x531840], ebx
mov dword [0x531848], eax
je 0x403db1
push esi
call fcn.0040250a
pop ecx
cmp edi, ebx
je 0x403dc4
push ebx
push 1
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403dd5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4