Function at 0x4656fc
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 0x420]
push 0x400
push eax
push 0
lea esi, [ebp - 0x820]
call sub.KERNEL32.DLL_GetModuleFileNameA
push str.WinRAR.exe
lea eax, [ebp - 0x420]
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
lea edx, [ebp - 0x10]
push edx
call sub.SHELL32.DLL_SHGetMalloc
call fcn.0041113c
cmp eax, 6
setge bl
and ebx, 1
mov byte [ebp - 0x11], 0
test bl, bl
je 0x46579b
mov eax, esi
call fcn.00465fa8
mov eax, esi
call fcn.0040ca00
push str.WinRAR.lnk
push esi
call fcn.0049fcf8
add esp, 8
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
mov eax, esi
setne dl
and edx, 1
mov byte [ebp - 0x11], dl
call fcn.00465fe4
jmp 0x4657a2
mov eax, esi
call fcn.00465fa8
mov eax, esi
call fcn.0040ca00
push str.WinRAR.lnk
push esi
call fcn.0049fcf8
add esp, 8
cmp byte [edi + 0x14], 0
je 0x46585d
cmp byte [ebp + 8], 0
je 0x4657de
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
jne 0x4657de
cmp byte [ebp - 0x11], 0
je 0x465863
push dword [ebp - 8]
push 0
mov eax, 0x537
call fcn.00413388
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.00465ed0
test al, al
jne 0x465863
test bl, bl
je 0x465863
cmp byte [ebp + 8], 0
je 0x465863
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
je 0x465821
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x465863
mov eax, esi
call fcn.00465fa8
mov eax, esi
call fcn.0040ca00
push str.WinRAR.lnk
push esi
call fcn.0049fcf8
add esp, 8
mov eax, 0x537
push dword [ebp - 8]
push 0
call fcn.00413388
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.00465ed0
jmp 0x465863
push esi
call sub.KERNEL32.DLL_DeleteFileA
lea edx, [ebp - 0xc]
push edx
mov ecx, 0x16
test bl, bl
jne 0x465873
add ecx, 0xfffffff5
push ecx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push esi
push dword [ebp - 0xc]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, esi
call fcn.0040ca00
push str.WinRAR.lnk
push esi
call fcn.0049fcf8
add esp, 8
cmp byte [edi + 0x15], 0
je 0x4658de
cmp byte [ebp + 8], 0
je 0x4658be
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
je 0x4658e4
push dword [ebp - 8]
push 0
mov eax, 0x537
call fcn.00413388
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.00465ed0
jmp 0x4658e4
push esi
call sub.KERNEL32.DLL_DeleteFileA
mov edx, dword [str.WinRAR]
mov eax, 0x38e
mov dword [ebp - 0x20], edx
mov edx, dword [0x4b2aac]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x4b2ab0]
mov dword [ebp - 0x18], edx
call fcn.00413388
mov dword [ebp - 0x1c], eax
mov eax, 0x38f
call fcn.00413388
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0xc]
push edx
push 2
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push esi
push dword [ebp - 0xc]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, esi
call fcn.0040ca00
push str.WinRAR
push esi
call fcn.0049fcf8
add esp, 8
cmp byte [ebp + 8], 0
je 0x465967
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
je 0x465a3f
cmp byte [edi + 0x16], 0
je 0x465a38
cmp dword [ebp - 4], 0
je 0x465983
push esi
push dword [ebp - 4]
call fcn.0049fdd4
add esp, 8
mov eax, esi
call fcn.00466020
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
xor ebx, ebx
mov eax, dword [ebx*4 + 0x4b2a9c]
cmp byte [eax], 0
je 0x465a2c
push esi
lea edx, [ebp - 0xc20]
push edx
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0xc20]
call fcn.0040ca00
push dword [ebp + ebx*4 - 0x20]
lea edx, [ebp - 0xc20]
push edx
call fcn.0049fcf8
add esp, 8
push 0x4b30b2
lea ecx, [ebp - 0xc20]
push ecx
call fcn.0049fcf8
add esp, 8
push dword [ebx*4 + 0x4b2a9c]
lea eax, [ebp - 0x420]
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
test ebx, ebx
jne 0x465a0a
mov edx, dword [ebp - 8]
jmp 0x465a0c
xor edx, edx
push edx
push 0
mov eax, 0x537
call fcn.00413388
mov ecx, eax
lea edx, [ebp - 0xc20]
lea eax, [ebp - 0x420]
call fcn.00465ed0
inc ebx
cmp ebx, 3
jl 0x465994
jmp 0x465a3f
mov eax, esi
call fcn.00466020
call fcn.0041113c
test eax, eax
je 0x465b87
lea edx, [ebp - 0xc]
push edx
push 0x17
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x465b87
push esi
push dword [ebp - 0xc]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, esi
call fcn.0040ca00
push str.WinRAR
push esi
call fcn.0049fcf8
add esp, 8
cmp byte [ebp + 8], 0
je 0x465aa2
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
je 0x465b87
cmp byte [edi + 0x16], 0
je 0x465b80
mov eax, esi
call fcn.00466020
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
cmp dword [ebp - 4], 0
je 0x465ada
mov eax, esi
xor edx, edx
call fcn.0040a918
test al, al
je 0x465ada
push esi
push dword [ebp - 4]
call fcn.0049fdd4
add esp, 8
xor ebx, ebx
mov eax, dword [ebx*4 + 0x4b2a9c]
cmp byte [eax], 0
je 0x465b74
push esi
lea edx, [ebp - 0x1020]
push edx
call fcn.0049fdd4
add esp, 8
lea eax, [ebp - 0x1020]
call fcn.0040ca00
push dword [ebp + ebx*4 - 0x20]
lea edx, [ebp - 0x1020]
push edx
call fcn.0049fcf8
add esp, 8
push 0x4b30b2
lea ecx, [ebp - 0x1020]
push ecx
call fcn.0049fcf8
add esp, 8
push dword [ebx*4 + 0x4b2a9c]
lea eax, [ebp - 0x420]
call fcn.0040c4d0
push eax
call fcn.0049fdd4
add esp, 8
test ebx, ebx
jne 0x465b52
mov edx, dword [ebp - 8]
jmp 0x465b54
xor edx, edx
push edx
push 0
mov eax, 0x537
call fcn.00413388
mov ecx, eax
lea edx, [ebp - 0x1020]
lea eax, [ebp - 0x420]
call fcn.00465ed0
inc ebx
cmp ebx, 3
jl 0x465adc
jmp 0x465b87
mov eax, esi
call fcn.00466020
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4