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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e05b
mov eax, dword fs:[0]
push eax
mov eax, 0x8080
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x808c], eax
call fcn.004cff20
test al, al
je 0x458af3
push 0x800
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push 0x55af34
lea eax, [ebp - 0x2010]
push eax
call fcn.004a2ea0
call fcn.00495590
cmp eax, 0x600
setae bl
xor eax, eax
mov word [ebp - 0x5014], ax
mov word [ebp - 0x3010], ax
lea eax, [ebp - 0x3010]
push eax
push 0
push 0
push 0x10
push 0
mov byte [ebp - 0x8085], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x3010]
push 0x800
jne 0x45836a
push eax
push str.WinRAR.lnk
push eax
call fcn.004a25d0
jmp 0x45837d
push str.unknown_folder
push eax
call fcn.004bd090
test bl, bl
je 0x458af3
lea eax, [ebp - 0x5014]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4583ac
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x5014]
push eax
call fcn.004bd090
push 0x800
lea eax, [ebp - 0x5014]
push eax
push str.WinRAR.lnk
push eax
call fcn.004a25d0
cmp word [ebp - 0x3010], 0
je 0x4583e7
lea eax, [ebp - 0x3010]
push eax
call fcn.00490c30
test al, al
je 0x4583e7
mov bh, 1
lea esi, [ebp - 0x3010]
jmp 0x4583ef
xor bh, bh
lea esi, [ebp - 0x5014]
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0x18]
cmp byte [eax + 0x14], 0
je 0x458480
test bl, bl
je 0x45840d
push esi
call fcn.00490c30
test al, al
je 0x458486
push 0
push edi
push 0x537
call fcn.004b68d0
push eax
push 0
push esi
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fd5a0
test al, al
jne 0x458486
test bl, bl
je 0x458486
test bh, bh
jne 0x458486
lea eax, [ebp - 0x5014]
push eax
call fcn.00490c30
test al, al
je 0x458459
lea eax, [ebp - 0x5014]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x458486
push 0
push edi
push 0x537
call fcn.004b68d0
push eax
push 0
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fd5a0
jmp 0x458486
push esi
call fcn.004906b0
xor eax, eax
mov word [ebp - 0x6014], ax
lea eax, [ebp - 0x6014]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4584be
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x6014]
push eax
call fcn.004bd090
lea eax, [ebp - 0x1010]
push eax
movzx eax, byte [ebp - 0x8085]
neg eax
push 0
sbb eax, eax
and eax, 0xb
push 0
add eax, 0xb
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4584fd
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x1010]
push eax
call fcn.004bd090
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.004a0eb0
push 0x800
push str.WinRAR.lnk
lea eax, [ebp - 0x1010]
push eax
call fcn.004bd030
mov esi, dword [ebp + 8]
cmp byte [esi + 0x15], 0
je 0x45856d
test bl, bl
je 0x458541
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x458579
push 0
push edi
push 0x537
call fcn.004b68d0
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fd5a0
jmp 0x458579
lea eax, [ebp - 0x1010]
push eax
call fcn.004906b0
push 0x55af34
call fcn.005384bb
push str.WinRAR.chm
mov dword [ebp - 0x6024], eax
call fcn.005384bb
push str.Rar.txt
mov dword [ebp - 0x6020], eax
call fcn.005384bb
add esp, 0xc
mov dword [ebp - 0x601c], eax
push 0x391
call fcn.004b68d0
push eax
call fcn.005384bb
push 0x55affc
mov dword [ebp - 0x6018], eax
call fcn.005384bb
add esp, 8
mov dword [ebp - 0x6034], eax
push 0x38e
call fcn.004b68d0
push eax
call fcn.005384bb
add esp, 4
mov dword [ebp - 0x6030], eax
push 0x38f
call fcn.004b68d0
push eax
call fcn.005384bb
add esp, 4
mov dword [ebp - 0x602c], eax
push 0x390
call fcn.004b68d0
push eax
call fcn.005384bb
add esp, 4
mov dword [ebp - 0x6028], eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45864f
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x1010]
push eax
call fcn.004bd090
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.004a0eb0
push 0x800
push 0x55affc
lea eax, [ebp - 0x1010]
push eax
call fcn.004bd030
test bl, bl
je 0x45868e
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x458870
cmp byte [esi + 0x16], 0
je 0x458864
mov eax, dword [ebp - 0x808c]
test eax, eax
je 0x4586b2
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1010]
push ecx
push eax
call fcn.004bd090
test bl, bl
jne 0x4587a8
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x458799
push 0x802
lea eax, [ebp - 0x4014]
push eax
push 0x5578cc
lea eax, [ebp - 0x1010]
push eax
call fcn.004a25d0
lea ecx, [ebp - 0x8084]
call fcn.004926b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x8084]
call fcn.004928b0
push 0
lea eax, [ebp - 0x707c]
mov dword [ebp - 0x606c], 0
push eax
lea ecx, [ebp - 0x8084]
mov dword [ebp - 0x6068], 0
mov dword [ebp - 0x6064], 0
mov dword [ebp - 0x6060], 0
mov dword [ebp - 0x605c], 0
mov dword [ebp - 0x6058], 0
call fcn.00492790
test al, al
je 0x458787
lea eax, [ebp - 0x707c]
push eax
call fcn.004906b0
push 0
lea eax, [ebp - 0x707c]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00492790
test al, al
jne 0x458763
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8084]
call fcn.004926d0
push 0
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
lea ebx, [ebx]
push 0x800
lea eax, [ebp - 0x4010]
push eax
push dword [ebp + esi*4 - 0x6034]
lea eax, [ebp - 0x1010]
push eax
call fcn.004a25d0
push 0x800
push str..lnk
lea eax, [ebp - 0x4010]
push eax
call fcn.004bd030
push 0x800
push dword [ebp + esi*4 - 0x6024]
lea eax, [ebp - 0x2010]
push eax
call fcn.004a2ea0
lea eax, [ebp - 0x2010]
push eax
call fcn.00490c30
test al, al
je 0x458855
test bl, bl
je 0x458821
lea eax, [ebp - 0x4010]
push eax
call fcn.00490c30
test al, al
je 0x458855
mov eax, esi
neg eax
push 0
sbb eax, eax
not eax
and eax, edi
push eax
push 0x537
call fcn.004b68d0
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fd5a0
inc esi
cmp esi, 4
jb 0x4587b0
mov esi, dword [ebp + 8]
jmp 0x458870
lea eax, [ebp - 0x1010]
push eax
call fcn.00456bf0
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x1010]
push 0x800
jne 0x458ac0
push eax
call fcn.004a0eb0
push 0x800
push 0x55affc
lea eax, [ebp - 0x1010]
push eax
call fcn.004bd030
test bl, bl
je 0x4588cc
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x458acb
cmp byte [esi + 0x16], 0
je 0x458ab2
test bl, bl
jne 0x4589d5
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x4589c6
push 0x802
lea eax, [ebp - 0x4014]
push eax
push 0x5578cc
lea eax, [ebp - 0x1010]
push eax
call fcn.004a25d0
lea ecx, [ebp - 0x8084]
call fcn.004926b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x8084]
call fcn.004928b0
push 0
lea eax, [ebp - 0x707c]
mov dword [ebp - 0x606c], 0
push eax
lea ecx, [ebp - 0x8084]
mov dword [ebp - 0x6068], 0
mov dword [ebp - 0x6064], 0
mov dword [ebp - 0x6060], 0
mov dword [ebp - 0x605c], 0
mov dword [ebp - 0x6058], 0
call fcn.00492790
test al, al
je 0x4589b4
jmp 0x458990
lea eax, [ebp - 0x707c]
push eax
call fcn.004906b0
push 0
lea eax, [ebp - 0x707c]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00492790
test al, al
jne 0x458990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8084]
call fcn.004926d0
push 0
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x808c]
test esi, esi
je 0x4589ff
lea eax, [ebp - 0x1010]
push eax
call fcn.00490c30
test al, al
je 0x4589ff
push dword [ebp + 0x10]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004bd090
xor esi, esi
push 0x800
lea eax, [ebp - 0x4010]
push eax
push dword [ebp + esi*4 - 0x6034]
lea eax, [ebp - 0x1010]
push eax
call fcn.004a25d0
push 0x800
push str..lnk
lea eax, [ebp - 0x4010]
push eax
call fcn.004bd030
push 0x800
push dword [ebp + esi*4 - 0x6024]
lea eax, [ebp - 0x2010]
push eax
call fcn.004a2ea0
lea eax, [ebp - 0x2010]
push eax
call fcn.00490c30
test al, al
je 0x458aa6
test bl, bl
je 0x458a72
lea eax, [ebp - 0x4010]
push eax
call fcn.00490c30
test al, al
je 0x458aa6
mov eax, esi
neg eax
push 0
sbb eax, eax
not eax
and eax, edi
push eax
push 0x537
call fcn.004b68d0
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fd5a0
inc esi
cmp esi, 4
jb 0x458a01
jmp 0x458acb
lea eax, [ebp - 0x1010]
push eax
call fcn.00456bf0
jmp 0x458acb
push str.unknown_folder
push eax
call fcn.004bd090
xor esi, esi
lea ecx, [ecx]
push dword [ebp + esi - 0x6024]
call fcn.00537b6f
push dword [ebp + esi - 0x6034]
call fcn.00537b6f
add esi, 4
add esp, 8
cmp esi, 0x10
jb 0x458ad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov esp, ebp
pop ebp
ret 0x14