Function at 0x10014d90
Capabilities:
Copy file
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e136a
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x10104008]
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 esi, ecx
mov dword [ebp - 0x29c], esi
mov eax, dword [ebp + 0x10]
mov ecx, 0x101080e7
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x298], eax
call fcn.100de193
cmp dword [edi + 0x10], 0
je 0x1001591f
cmp dword [ebx + 0x10], 0
je 0x1001591f
mov ecx, dword [esi]
test ecx, ecx
je 0x1001591f
mov ecx, dword [ecx + 4]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
test eax, ecx
je 0x1001591f
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10014e25
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10014e2f
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push eax
push ecx
call esi
test eax, eax
jne 0x10014f33
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x291], al
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x228]
mov ecx, edi
call fcn.10033950
movzx ecx, byte [ebp - 0x291]
test al, al
mov edx, 1
mov dword [ebp - 0x240], 0
cmovne ecx, edx
mov dword [ebp - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x250]
mov ecx, ebx
call fcn.10033950
test al, al
jne 0x10014ee0
cmp byte [ebp - 0x290], al
je 0x10014f46
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
push 1
cmovae ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
push ecx
cmovae eax, dword [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x10014f46
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.10004b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov eax, dword [ebp - 0x298]
mov dword [eax], 1
mov al, 1
jmp 0x10015929
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.10004b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov byte [ebp - 0x291], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x298]
push 2
mov dword [ecx], eax
mov ecx, 0x101063a0
call fcn.10035760
mov dword [ebp - 0x290], eax
test eax, eax
je 0x10015059
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x28c], ebx
jb 0x10014fe2
mov eax, dword [ebx]
mov dword [ebp - 0x28c], eax
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x10014fec
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x28c]
push esi
push eax
lea eax, [ebp - 0x228]
push str.normal_copy_file_failed_errcode___d_with___s___s__
push eax
call fcn.10035c70
add esp, 0x14
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push 0x4b
push str.RC::RCRestoreFile::DoRealCopyFile
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.100357b0
cmp dword [ebp - 0x290], 1
jbe 0x10015047
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov esi, dword [ebp - 0x29c]
mov ecx, dword [esi]
call fcn.10004fa0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x100156f7
push 0x30
lea eax, [ebp - 0x284]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x284]
push ebx
call fcn.10008640
mov dword [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x26c], xmm0
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x258], 5
je 0x1001517d
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
mov word [ebp - 0x234], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001517d
mov eax, dword [ebp - 0x28c]
xorps xmm0, xmm0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x268]
push eax
push 0
lea eax, [ebp - 0x230]
movlpd qword [ebp - 0x224], xmm0
push eax
push 1
mov dword [ebp - 0x230], 0x10000000
mov dword [ebp - 0x22c], 2
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x284]
call fcn.1001f390
test al, al
je 0x100151d5
mov esi, dword [ebp - 0x264]
cmp esi, dword [ebp - 0x260]
je 0x100151d5
mov bl, 1
push dword [esi]
lea ecx, [ebp - 0x284]
call fcn.1001f0e0
neg al
sbb al, al
add esi, 4
and bl, al
cmp esi, dword [ebp - 0x260]
jne 0x100151a3
mov byte [ebp - 0x291], bl
mov ebx, dword [ebp - 0x254]
mov al, byte [ebp - 0x291]
jmp 0x100151dd
xor al, al
mov byte [ebp - 0x291], al
test al, al
je 0x1001559a
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x100151ef
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100151f9
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ecx
push eax
call esi
test eax, eax
jne 0x10015304
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x291], al
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x250]
mov ecx, edi
call fcn.10033950
movzx ecx, byte [ebp - 0x291]
test al, al
mov eax, 1
mov dword [ebp - 0x218], 0
cmovne ecx, eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x228]
mov ecx, ebx
call fcn.10033950
test al, al
jne 0x100152b0
cmp byte [ebp - 0x290], al
je 0x1001556a
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x228]
push 1
cmovae ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
push ecx
cmovae eax, dword [ebp - 0x250]
push eax
call esi
test eax, eax
je 0x1001556a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call fcn.10004b70
mov eax, 1
mov byte [ebp - 0x291], al
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x298]
mov dword [ecx + 4], eax
je 0x10015493
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x28c], 0x80
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x80
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10015493
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x10015493
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10015489
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x290]
push ecx
push 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push ecx
push 0
push 0
push 4
lea eax, [ebp - 0x284]
mov dword [ebp - 0x290], 0
cmovae eax, dword [ebp - 0x284]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x10015489
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
push 0
cmovae eax, dword [ebp - 0x284]
push 0
push 0
push esi
push 1
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x10015485
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x10015493
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x284]
call fcn.1001f300
push 2
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x100155a9
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov byte [ebp - 4], 8
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x100154f3
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100154fd
mov eax, dword [edi]
push ecx
push eax
mov eax, dword [ebp - 0x298]
push dword [eax + 4]
movzx eax, byte [ebp - 0x291]
push eax
lea eax, [ebp - 0x228]
push str.acl_copy_file_ret___d_errcode___d_with___s___s__
push eax
call fcn.10035c70
add esp, 0x18
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push 0x59
push str.RC::RCRestoreFile::DoRealCopyFile
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x10015559
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.10004b70
jmp 0x100155a9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call fcn.10004b70
mov byte [ebp - 0x291], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001530f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x298]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x284]
call fcn.1001f300
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x100155d8
push eax
call esi
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x100155ef
push eax
call esi
mov dword [ebp - 0x268], 0
mov esi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x260]
cmp esi, eax
je 0x10015641
nop
mov edi, dword [esi]
test edi, edi
je 0x1001562e
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.10004b70
push 0x24
push edi
call fcn.100dcba6
mov dword [esi], 0
add esp, 8
mov eax, dword [ebp - 0x260]
add esi, 4
cmp esi, eax
jne 0x10015600
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x2a0]
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
mov dword [ebp - 0x260], esi
cmovae eax, dword [ebp - 0x284]
xor ecx, ecx
mov dword [ebp - 0x274], 0
mov word [eax], cx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x100156d2
mov eax, dword [ebp - 0x25c]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x100156aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100156aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100dcba6
add esp, 8
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.10004b70
cmp byte [ebp - 0x291], 0
jne 0x10015917
mov esi, dword [ebp - 0x29c]
mov ecx, dword [esi]
cmp dword [ecx + 0xc], 0
je 0x10015917
call fcn.10004fa0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
test al, al
je 0x10015917
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
jb 0x10015728
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x10015732
mov edx, dword [edi]
mov eax, dword [esi + 4]
push 1
push ecx
push edx
mov eax, dword [eax + 0x50]
lea ecx, [esi + 4]
call eax
mov byte [ebp - 0x291], al
test al, al
jne 0x1001583d
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 4], 0xc
lea edx, [ebp - 0x250]
mov ecx, ebx
call fcn.10027870
mov esi, dword [ebp - 0x29c]
lea edx, [ebp - 0x250]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 4]
add ecx, 4
cmp dword [ebp - 0x23c], 8
cmovae edx, dword [ebp - 0x250]
mov eax, dword [eax + 0x4c]
push edx
call eax
test al, al
jne 0x1001581a
mov eax, dword [esi]
lea edx, [ebp - 0x250]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 4]
add ecx, 4
cmp dword [ebp - 0x23c], 8
cmovae edx, dword [ebp - 0x250]
mov eax, dword [eax + 0x3c]
push edx
call eax
test al, al
je 0x1001581a
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
jb 0x100157fb
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x10015805
mov edx, dword [edi]
mov eax, dword [esi + 4]
push 1
push ecx
push edx
mov eax, dword [eax + 0x50]
lea ecx, [esi + 4]
call eax
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.10004b70
cmp byte [ebp - 0x291], 0
jne 0x1001583d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015842
mov eax, 1
mov ecx, dword [ebp - 0x298]
push 2
mov dword [ecx + 8], eax
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x10015917
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov dword [ebp - 4], 0xd
cmp dword [ebx + 0x14], 8
jb 0x100158a1
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x100158a9
mov edi, dword [edi]
mov eax, dword [ebp - 0x298]
push ebx
push edi
push dword [eax + 8]
movzx eax, byte [ebp - 0x291]
push eax
lea eax, [ebp - 0x228]
push str.drive_copy_file_ret___d_errcode___d_with___s___s__
push eax
call fcn.10035c70
add esp, 0x18
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push 0x72
push str.RC::RCRestoreFile::DoRealCopyFile
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rcrestorefile.cpp
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x10015905
lea eax, [ebp - 0x228]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10004b70
mov al, byte [ebp - 0x291]
jmp 0x10015929
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
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.100dcb60
mov esp, ebp
pop ebp
ret 0xc