Function at 0x1015a9f0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10168fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x101b5e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x1015aa63
nop dword [eax]
nop word [eax + eax]
cmp byte [ebp + eax - 0x120], 0x5c
je 0x1015aafa
dec eax
test eax, eax
jg 0x1015aa50
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x656d6461
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18], 0x7478742e
push eax
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
lea ecx, [ebp - 0x224]
mov edx, 0x10199dd6
cmovne ecx, edx
push ecx
lea ecx, [ebp - 0x270]
call fcn.10001f40
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x25c]
mov eax, edx
mov ecx, dword [ebp - 0x260]
sub eax, ecx
cmp eax, 1
jb 0x1015ab13
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x270]
cmova eax, dword [ebp - 0x270]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x270]
jmp 0x1015ab34
inc eax
cmp eax, 0x104
jae 0x1015ad6b
mov byte [ebp + eax - 0x120], 0
jmp 0x1015aa63
push 1
push 0x10199e88
mov byte [ebp - 0x240], 0
lea ecx, [ebp - 0x270]
push dword [ebp - 0x240]
push 1
call fcn.100020d0
mov dword [ebp - 0x248], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x258], xmm0
mov dword [ebp - 0x244], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x248], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1015ab84
mov edx, dword [ebp - 0x244]
sub edi, ecx
mov ecx, dword [ebp - 0x248]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x1015abd6
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x248], eax
lea esi, [ebp - 0x258]
cmova esi, dword [ebp - 0x258]
lea eax, [ebp - 0x1c]
add esi, ecx
push eax
push esi
call fcn.1013dfc0
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp - 0x258]
jmp 0x1015abf3
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x240], 0
push eax
push dword [ebp - 0x240]
lea ecx, [ebp - 0x258]
push edi
call fcn.100020d0
mov dword [ebp - 0x22c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x228], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x23c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x22c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x244]
cmp ecx, 0xf
jbe 0x1015ac77
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015ac6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015ad70
push ecx
push edx
call fcn.1013c65b
add esp, 8
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x25c]
cmp ecx, 0xf
jbe 0x1015acd0
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015acc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015ad70
push ecx
push edx
call fcn.1013c65b
add esp, 8
cmp dword [ebp - 0x228], 0xf
lea eax, [ebp - 0x23c]
push 0
cmova eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x260], 0
push eax
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x120]
call fcn.1015adf0
mov ecx, dword [ebp - 0x228]
cmp ecx, 0xf
jbe 0x1015ad50
mov edx, dword [ebp - 0x23c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015ad46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015ad75
push ecx
push edx
call fcn.1013c65b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c133
mov esp, ebp
pop ebp
ret
call fcn.1013c264
call fcn.101447e8
call fcn.101447e8
int3