Function at 0x715da269
Capabilities:
Copy file
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], bl
push 0x715d2868
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.715dd74c
pop ecx
call fcn.715d49c8
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x715da2c2
mov dword [ebp + 0xc], 0x8007000e
jmp 0x715da721
push 1
cmp esi, ebx
pop edi
mov dword [ebp - 0x14], edi
je 0x715da7a6
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x715da7a6
cmp byte [eax], bl
je 0x715da7a6
push eax
push 0x715d285c
call fcn.715dd74c
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [0x715e4534], eax
mov eax, dword [esi + 0x110]
mov ecx, 0x100
test ecx, eax
je 0x715da30f
or al, 0x40
mov dword [esi + 0x110], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x715da342
cmp byte [eax], bl
je 0x715da342
push dword [esi + 4]
call fcn.715d8de9
test eax, eax
jne 0x715da354
push ebx
push ebx
push dword [esi + 4]
lea eax, [esi + 0xc]
push ebx
push eax
push dword [esi]
call sym.ADVPACK.dll_ExtractFiles
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x715da354
mov dword [ebp - 0x10], edi
jmp 0x715da354
mov eax, dword [esi + 0x110]
test al, 0x40
je 0x715da354
or eax, ecx
mov dword [esi + 0x110], eax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [esi + 4]
call fcn.715db65c
test eax, eax
jne 0x715da377
mov dword [ebp + 0xc], 0x80070057
jmp 0x715da721
test byte [esi + 0x110], 0x40
je 0x715da42b
cmp dword [ebp - 0x10], ebx
jne 0x715da42b
lea eax, [ebp - 0x120]
push 0x5c
push eax
call fcn.715e20e2
mov edi, eax
cmp edi, ebx
je 0x715da42b
mov al, byte [edi]
mov byte [edi], bl
mov byte [ebp + 0xc], al
lea eax, [ebp - 0x328]
push eax
push ebx
lea eax, [ebp - 0x120]
push 0x715d234c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x715da42b
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0xc]
push ebx
mov byte [edi], al
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x715da42b
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x715d283c
call fcn.715dd74c
add esp, 0xc
lea eax, [ebp - 0x328]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x715da440
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x104
lea eax, [ebp - 0x224]
push edi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.715d4f90
push ebx
lea eax, [ebp - 0x530]
push edi
push eax
lea eax, [ebp - 0x224]
push 0x715d15dc
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.715d5f40
test eax, eax
jge 0x715da48c
cmp byte [ebp - 0x530], bl
je 0x715da48c
mov byte [ebp - 0x530], bl
mov eax, dword [esi]
cmp eax, ebx
je 0x715da4e5
cmp byte [eax], bl
je 0x715da4e5
push ebx
lea eax, [ebp - 0x634]
push edi
push eax
lea eax, [ebp - 0x224]
push 0x715d1de4
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 0x634], bl
call fcn.715d5f40
cmp byte [ebp - 0x634], bl
je 0x715da4e5
push ebx
lea eax, [ebp - 0x634]
push ebx
push eax
lea eax, [esi + 0xc]
push ebx
push eax
push dword [esi]
call sym.ADVPACK.dll_ExtractFiles
test eax, eax
jl 0x715da4e5
mov dword [ebp - 0x1c], 1
mov eax, dword [esi + 0x110]
mov ecx, eax
not ecx
and ecx, 8
or ecx, 4
shr ecx, 2
test al, 4
mov dword [ebp - 0xc], ecx
je 0x715da508
mov word [0x715e4522], 1
mov eax, dword [esi + 0x110]
test al, 0xc0
je 0x715da642
test al, 0x40
mov dword [ebp + 8], ebx
je 0x715da57b
push ebx
lea eax, [ebp - 0x328]
push edi
push eax
lea eax, [ebp - 0x224]
push 0x715d2830
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 0x328], bl
call fcn.715d5f40
test eax, eax
jl 0x715da57b
cmp byte [ebp - 0x328], bl
je 0x715da57b
push ebx
lea eax, [esi + 0xc]
push dword [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.715d531f
cmp eax, ebx
mov dword [ebp - 8], eax
jge 0x715da57b
mov dword [ebp + 0xc], eax
jmp 0x715da721
cmp byte [ebp - 0x530], bl
mov dword [ebp + 0xc], 0x8000ffff
je 0x715da625
lea eax, [ebp - 0x42c]
push 0x715d15a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.715e1804
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x2001f
lea eax, [ebp - 0x42c]
push ebx
push eax
push 0x80000002
call edi
test eax, eax
jne 0x715da609
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x42c]
push ebx
push eax
push 0x80000001
call edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.715db94a
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
je 0x715da617
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x715da625
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], ebx
jl 0x715da721
mov eax, dword [esi + 0x110]
cmp eax, 0x80
je 0x715da721
mov ecx, dword [ebp - 0xc]
push dword [0x715e4ac8]
shr eax, 2
and eax, 0xd8
or al, 4
or ecx, eax
lea eax, [esi + 0xc]
push ecx
push ebx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0xc], ecx
call fcn.715d531f
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x715da721
mov eax, dword [esi]
cmp eax, ebx
je 0x715da721
cmp byte [eax], bl
je 0x715da721
test byte [esi + 0x110], 0x20
je 0x715da721
mov eax, 0xbc2
cmp dword [ebp - 8], eax
jne 0x715da6a7
mov dword [ebp + 0xc], eax
cmp byte [ebp - 0x530], bl
je 0x715da721
lea eax, [ebp - 0x224]
push 0x715d15a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.715e1804
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x715da721
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esi]
push 1
push ebx
push 0x715d2820
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
jne 0x715da72b
cmp dword [ebp - 0x18], ebx
je 0x715da738
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x1c], ebx
je 0x715da76e
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.715e1804
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], ebx
je 0x715da778
call fcn.715d4a3f
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x715da792
push esi
push dword [ebp + 0xc]
push 0x715d27fc
call fcn.715dd74c
add esp, 0xc
jmp 0x715da7a1
push dword [ebp + 0xc]
push 0x715d27dc
call fcn.715dd74c
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
jmp 0x715da7ab
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc