Function at 0x403d4c
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.00404c00
push eax
call fcn.004076a8
add esp, 8
lea edx, [ebp - 0x10]
push edx
call sub.SHELL32.DLL_SHGetMalloc
call fcn.004058c8
cmp eax, 6
setge bl
and ebx, 1
mov byte [ebp - 0x11], 0
test bl, bl
je 0x403deb
mov eax, esi
call fcn.00404634
mov eax, esi
call fcn.00404cf0
push str.WinRAR.lnk
push esi
call fcn.004075cc
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.00404670
jmp 0x403df2
mov eax, esi
call fcn.00404634
mov eax, esi
call fcn.00404cf0
push str.WinRAR.lnk
push esi
call fcn.004075cc
add esp, 8
cmp byte [edi + 0x14], 0
je 0x403ead
cmp byte [ebp + 8], 0
je 0x403e2e
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
jne 0x403e2e
cmp byte [ebp - 0x11], 0
je 0x403eb3
push dword [ebp - 8]
push 0
mov eax, 0x13f9
call fcn.004056ac
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.0040455c
test al, al
jne 0x403eb3
test bl, bl
je 0x403eb3
cmp byte [ebp + 8], 0
je 0x403eb3
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
je 0x403e71
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x403eb3
mov eax, esi
call fcn.00404634
mov eax, esi
call fcn.00404cf0
push str.WinRAR.lnk
push esi
call fcn.004075cc
add esp, 8
mov eax, 0x13f9
push dword [ebp - 8]
push 0
call fcn.004056ac
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.0040455c
jmp 0x403eb3
push esi
call sub.KERNEL32.DLL_DeleteFileA
lea edx, [ebp - 0xc]
push edx
mov ecx, 0x16
test bl, bl
jne 0x403ec3
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.00404cf0
push str.WinRAR.lnk
push esi
call fcn.004075cc
add esp, 8
cmp byte [edi + 0x15], 0
je 0x403f2e
cmp byte [ebp + 8], 0
je 0x403f0e
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
je 0x403f34
push dword [ebp - 8]
push 0
mov eax, 0x13f9
call fcn.004056ac
mov ecx, eax
mov edx, esi
lea eax, [ebp - 0x420]
call fcn.0040455c
jmp 0x403f34
push esi
call sub.KERNEL32.DLL_DeleteFileA
mov edx, dword [0x410564]
mov eax, 0x13ee
mov dword [ebp - 0x20], edx
mov edx, dword [0x410568]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x41056c]
mov dword [ebp - 0x18], edx
call fcn.004056ac
mov dword [ebp - 0x1c], eax
mov eax, 0x13ef
call fcn.004056ac
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.00404cf0
push 0x4107f0
push esi
call fcn.004075cc
add esp, 8
cmp byte [ebp + 8], 0
je 0x403fb7
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
je 0x40408f
cmp byte [edi + 0x16], 0
je 0x404088
cmp dword [ebp - 4], 0
je 0x403fd3
push esi
push dword [ebp - 4]
call fcn.004076a8
add esp, 8
mov eax, esi
call fcn.004046ac
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
xor ebx, ebx
mov eax, dword [ebx*4 + 0x410558]
cmp byte [eax], 0
je 0x40407c
push esi
lea edx, [ebp - 0xc20]
push edx
call fcn.004076a8
add esp, 8
lea eax, [ebp - 0xc20]
call fcn.00404cf0
push dword [ebp + ebx*4 - 0x20]
lea edx, [ebp - 0xc20]
push edx
call fcn.004075cc
add esp, 8
push 0x410b5d
lea ecx, [ebp - 0xc20]
push ecx
call fcn.004075cc
add esp, 8
push dword [ebx*4 + 0x410558]
lea eax, [ebp - 0x420]
call fcn.00404c00
push eax
call fcn.004076a8
add esp, 8
test ebx, ebx
jne 0x40405a
mov edx, dword [ebp - 8]
jmp 0x40405c
xor edx, edx
push edx
push 0
mov eax, 0x13f9
call fcn.004056ac
mov ecx, eax
lea edx, [ebp - 0xc20]
lea eax, [ebp - 0x420]
call fcn.0040455c
inc ebx
cmp ebx, 3
jl 0x403fe4
jmp 0x40408f
mov eax, esi
call fcn.004046ac
call fcn.004058c8
test eax, eax
je 0x4041d7
lea edx, [ebp - 0xc]
push edx
push 0x17
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x4041d7
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.00404cf0
push 0x4107f0
push esi
call fcn.004075cc
add esp, 8
cmp byte [ebp + 8], 0
je 0x4040f2
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
je 0x4041d7
cmp byte [edi + 0x16], 0
je 0x4041d0
mov eax, esi
call fcn.004046ac
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
cmp dword [ebp - 4], 0
je 0x40412a
mov eax, esi
xor edx, edx
call fcn.00402058
test al, al
je 0x40412a
push esi
push dword [ebp - 4]
call fcn.004076a8
add esp, 8
xor ebx, ebx
mov eax, dword [ebx*4 + 0x410558]
cmp byte [eax], 0
je 0x4041c4
push esi
lea edx, [ebp - 0x1020]
push edx
call fcn.004076a8
add esp, 8
lea eax, [ebp - 0x1020]
call fcn.00404cf0
push dword [ebp + ebx*4 - 0x20]
lea edx, [ebp - 0x1020]
push edx
call fcn.004075cc
add esp, 8
push 0x410b5d
lea ecx, [ebp - 0x1020]
push ecx
call fcn.004075cc
add esp, 8
push dword [ebx*4 + 0x410558]
lea eax, [ebp - 0x420]
call fcn.00404c00
push eax
call fcn.004076a8
add esp, 8
test ebx, ebx
jne 0x4041a2
mov edx, dword [ebp - 8]
jmp 0x4041a4
xor edx, edx
push edx
push 0
mov eax, 0x13f9
call fcn.004056ac
mov ecx, eax
lea edx, [ebp - 0x1020]
lea eax, [ebp - 0x420]
call fcn.0040455c
inc ebx
cmp ebx, 3
jl 0x40412c
jmp 0x4041d7
mov eax, esi
call fcn.004046ac
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