Function at 0x100214a
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
mov eax, 0x1006eb4
call fcn.01006ce0
sub esp, 0x238
mov eax, dword [0x1008008]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x224]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x210]
mov ecx, 0xfe
mov byte [eax], bl
inc eax
dec ecx
jne 0x1002198
xor esi, esi
inc esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.01001620
cmp eax, esi
je 0x10024e3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01001620
cmp eax, esi
je 0x10024e3
cmp dword [ebp + 0x18], ebx
jne 0x10021f2
call fcn.01001dd9
cmp eax, esi
je 0x10024e3
mov eax, dword [0x100801c]
cmp eax, 4
je 0x10024e3
cmp eax, 3
je 0x10024e5
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov esi, 0x104
push esi
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x21c], eax
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call edi
mov dword [ebp - 0x220], eax
cmp eax, esi
jbe 0x1002251
add eax, 2
push eax
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x21c], eax
push eax
push dword [ebp - 0x220]
call edi
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], ebx
jne 0x1002276
call fcn.01002d77
push 0xffffffffffffffff
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov dword [ebp - 0x240], ebx
jmp 0x10024e3
mov dword [ebp - 0x21c], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push esi
lea ecx, [ebp - 0x224]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x21c], eax
push eax
push ebx
push 0x1001330
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x220], eax
cmp eax, ebx
jne 0x10022d5
call fcn.01002d77
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov dword [ebp - 0x244], ebx
jmp 0x10024e3
mov dword [ebp - 0x21c], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov dword [ebp - 4], 1
push 0xfe
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
push eax
call fcn.01003668
push 0x5c
push ebx
lea eax, [ebp - 0x210]
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
call esi
mov dword [ebp - 0x22c], eax
cmp eax, ebx
jne 0x1002329
push 0x8000ffff
jmp 0x100235d
push 0x5c
push ebx
mov edi, dword [ebp + 0x14]
push edi
call esi
cmp eax, ebx
je 0x1002322
sub eax, edi
sar eax, 1
mov esi, eax
push ebx
push edi
call fcn.01002fa4
add eax, 0xfe
push eax
call fcn.010032f6
mov dword [ebp - 0x214], eax
cmp eax, ebx
jne 0x100236d
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002d77
jmp 0x10024e3
inc esi
push esi
push edi
push eax
call fcn.01003668
push dword [ebp - 0x22c]
push dword [ebp - 0x214]
push 0x1001324
push dword [ebp - 0x214]
call fcn.01003394
shr eax, 1
push eax
push dword [ebp - 0x214]
call fcn.010036c1
add esp, 0x14
push ebx
push dword [ebp - 0x214]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10023ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10024a7
mov dword [0x100801c], 4
push 0x109
call fcn.01004b9e
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01004834
jmp 0x10024ac
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
push dword [ebp + 0x1c]
call fcn.010015a0
test eax, eax
je 0x10024a7
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0xf
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, ebx
jne 0x10024a7
push dword [ebp - 0x228]
push 0xf
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp dword [ebp - 0x228], ebx
je 0x1002479
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 4
push ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x10024a7
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x214]
call esi
test eax, eax
jne 0x10024ba
push 0x8000ffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002d77
lea eax, [ebp - 0x214]
push eax
call fcn.010036e8
jmp 0x10024e3
lea eax, [ebp - 0x214]
push eax
call fcn.010036e8
xor esi, esi
inc esi
jmp 0x10024e5
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01006d7a
pop edi
pop esi
pop ebx
leave
ret 0x18