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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eddb
mov eax, dword fs:[0]
push eax
mov eax, 0x8080
call fcn.00530230
mov eax, dword [0x58cb30]
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.004d0970
test al, al
je 0x4592c3
push 0x800
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push 0x55bf44
lea eax, [ebp - 0x2010]
push eax
call fcn.004a3880
call fcn.00495f30
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 0x458b3a
push eax
push str.WinRAR.lnk
push eax
call fcn.004a2fb0
jmp 0x458b4d
push str.unknown_folder
push eax
call fcn.004bdae0
test bl, bl
je 0x4592c3
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 0x458b7c
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x5014]
push eax
call fcn.004bdae0
push 0x800
lea eax, [ebp - 0x5014]
push eax
push str.WinRAR.lnk
push eax
call fcn.004a2fb0
cmp word [ebp - 0x3010], 0
je 0x458bb7
lea eax, [ebp - 0x3010]
push eax
call fcn.00491350
test al, al
je 0x458bb7
mov bh, 1
lea esi, [ebp - 0x3010]
jmp 0x458bbf
xor bh, bh
lea esi, [ebp - 0x5014]
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0x18]
cmp byte [eax + 0x14], 0
je 0x458c50
test bl, bl
je 0x458bdd
push esi
call fcn.00491350
test al, al
je 0x458c56
push 0
push edi
push 0x537
call fcn.004b7300
push eax
push 0
push esi
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fe180
test al, al
jne 0x458c56
test bl, bl
je 0x458c56
test bh, bh
jne 0x458c56
lea eax, [ebp - 0x5014]
push eax
call fcn.00491350
test al, al
je 0x458c29
lea eax, [ebp - 0x5014]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x458c56
push 0
push edi
push 0x537
call fcn.004b7300
push eax
push 0
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fe180
jmp 0x458c56
push esi
call fcn.00490db0
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 0x458c8e
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x6014]
push eax
call fcn.004bdae0
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 0x458ccd
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x1010]
push eax
call fcn.004bdae0
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.004a1860
push 0x800
push str.WinRAR.lnk
lea eax, [ebp - 0x1010]
push eax
call fcn.004bda80
mov esi, dword [ebp + 8]
cmp byte [esi + 0x15], 0
je 0x458d3d
test bl, bl
je 0x458d11
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x458d49
push 0
push edi
push 0x537
call fcn.004b7300
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fe180
jmp 0x458d49
lea eax, [ebp - 0x1010]
push eax
call fcn.00490db0
push 0x55bf44
call fcn.00538fcb
push str.WinRAR.chm
mov dword [ebp - 0x6024], eax
call fcn.00538fcb
push str.Rar.txt
mov dword [ebp - 0x6020], eax
call fcn.00538fcb
add esp, 0xc
mov dword [ebp - 0x601c], eax
push 0x391
call fcn.004b7300
push eax
call fcn.00538fcb
push 0x55c00c
mov dword [ebp - 0x6018], eax
call fcn.00538fcb
add esp, 8
mov dword [ebp - 0x6034], eax
push 0x38e
call fcn.004b7300
push eax
call fcn.00538fcb
add esp, 4
mov dword [ebp - 0x6030], eax
push 0x38f
call fcn.004b7300
push eax
call fcn.00538fcb
add esp, 4
mov dword [ebp - 0x602c], eax
push 0x390
call fcn.004b7300
push eax
call fcn.00538fcb
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 0x458e1f
push 0x800
push str.unknown_folder
lea eax, [ebp - 0x1010]
push eax
call fcn.004bdae0
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.004a1860
push 0x800
push 0x55c00c
lea eax, [ebp - 0x1010]
push eax
call fcn.004bda80
test bl, bl
je 0x458e5e
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x459040
cmp byte [esi + 0x16], 0
je 0x459034
mov eax, dword [ebp - 0x808c]
test eax, eax
je 0x458e82
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1010]
push ecx
push eax
call fcn.004bdae0
test bl, bl
jne 0x458f78
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x458f69
push 0x802
lea eax, [ebp - 0x4014]
push eax
push 0x5588cc
lea eax, [ebp - 0x1010]
push eax
call fcn.004a2fb0
lea ecx, [ebp - 0x8084]
call fcn.00493050
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00493250
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.00493130
test al, al
je 0x458f57
lea eax, [ebp - 0x707c]
push eax
call fcn.00490db0
push 0
lea eax, [ebp - 0x707c]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00493130
test al, al
jne 0x458f33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8084]
call fcn.00493070
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.004a2fb0
push 0x800
push str..lnk
lea eax, [ebp - 0x4010]
push eax
call fcn.004bda80
push 0x800
push dword [ebp + esi*4 - 0x6024]
lea eax, [ebp - 0x2010]
push eax
call fcn.004a3880
lea eax, [ebp - 0x2010]
push eax
call fcn.00491350
test al, al
je 0x459025
test bl, bl
je 0x458ff1
lea eax, [ebp - 0x4010]
push eax
call fcn.00491350
test al, al
je 0x459025
mov eax, esi
neg eax
push 0
sbb eax, eax
not eax
and eax, edi
push eax
push 0x537
call fcn.004b7300
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fe180
inc esi
cmp esi, 4
jb 0x458f80
mov esi, dword [ebp + 8]
jmp 0x459040
lea eax, [ebp - 0x1010]
push eax
call fcn.004573b0
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 0x459290
push eax
call fcn.004a1860
push 0x800
push 0x55c00c
lea eax, [ebp - 0x1010]
push eax
call fcn.004bda80
test bl, bl
je 0x45909c
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x45929b
cmp byte [esi + 0x16], 0
je 0x459282
test bl, bl
jne 0x4591a5
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x459196
push 0x802
lea eax, [ebp - 0x4014]
push eax
push 0x5588cc
lea eax, [ebp - 0x1010]
push eax
call fcn.004a2fb0
lea ecx, [ebp - 0x8084]
call fcn.00493050
mov dword [ebp - 4], 1
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00493250
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.00493130
test al, al
je 0x459184
jmp 0x459160
lea eax, [ebp - 0x707c]
push eax
call fcn.00490db0
push 0
lea eax, [ebp - 0x707c]
push eax
lea ecx, [ebp - 0x8084]
call fcn.00493130
test al, al
jne 0x459160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8084]
call fcn.00493070
push 0
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x808c]
test esi, esi
je 0x4591cf
lea eax, [ebp - 0x1010]
push eax
call fcn.00491350
test al, al
je 0x4591cf
push dword [ebp + 0x10]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004bdae0
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.004a2fb0
push 0x800
push str..lnk
lea eax, [ebp - 0x4010]
push eax
call fcn.004bda80
push 0x800
push dword [ebp + esi*4 - 0x6024]
lea eax, [ebp - 0x2010]
push eax
call fcn.004a3880
lea eax, [ebp - 0x2010]
push eax
call fcn.00491350
test al, al
je 0x459276
test bl, bl
je 0x459242
lea eax, [ebp - 0x4010]
push eax
call fcn.00491350
test al, al
je 0x459276
mov eax, esi
neg eax
push 0
sbb eax, eax
not eax
and eax, edi
push eax
push 0x537
call fcn.004b7300
push eax
lea eax, [ebp - 0x6014]
push eax
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
call fcn.004fe180
inc esi
cmp esi, 4
jb 0x4591d1
jmp 0x45929b
lea eax, [ebp - 0x1010]
push eax
call fcn.004573b0
jmp 0x45929b
push str.unknown_folder
push eax
call fcn.004bdae0
xor esi, esi
lea ecx, [ecx]
push dword [ebp + esi - 0x6024]
call fcn.0053867f
push dword [ebp + esi - 0x6034]
call fcn.0053867f
add esi, 4
add esp, 8
cmp esi, 0x10
jb 0x4592a0
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.00530218
mov esp, ebp
pop ebp
ret 0x14