Function at 0x10036002
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005225c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1005f0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 1
cmp dword [ebx + 0x1ac], 0
je 0x1003631e
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x1a8]
and dword [ebx + 0x1a8], 0
test ecx, ecx
je 0x1003607b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10060380]
call esi
push 0x3e8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x1ac]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x10060380]
call esi
mov esi, eax
cmp esi, 0x80070020
jne 0x10036135
and dword [ebp - 0x30], 0
add ebx, 0x190
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 8
jb 0x100360c4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x30]
push 0x1000f098
push eax
call fcn.10038dc1
mov ecx, dword [ebp + 4]
add esp, 0xc
mov edi, 0x1000e9e0
test eax, eax
jns 0x100360ee
push eax
push edi
mov edx, 0x19d
call fcn.1002d793
mov ecx, dword [ebp - 0x30]
mov esi, 0x1a6
push 0x80070020
push 2
push esi
push 0x1000f138
mov edx, 0x1000eae0
call fcn.100467b8
mov ecx, dword [ebp + 4]
test eax, eax
jns 0x1003611d
push eax
push edi
mov edx, esi
call fcn.1002d793
cmp dword [ebp - 0x30], 0
je 0x1003612c
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 4
jmp 0x10036322
test esi, esi
jns 0x1003616c
add ebx, 0x190
cmp dword [ebx + 0x14], 8
jb 0x10036147
mov ebx, dword [ebx]
push ebx
push 0x1000f1d4
push esi
push 0x1000e9e0
push 0x1ab
push dword [ebp + 4]
call fcn.1002dfef
add esp, 0x18
mov byte [ebp - 4], 5
jmp 0x10036324
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 6
mov esi, dword [ebx + 0x148]
mov ecx, esi
call fcn.1002a688
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10028225
and dword [ebp - 0x30], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100361ac
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push 0x1000f1f8
push eax
call fcn.10038dc1
mov ecx, dword [ebp + 4]
add esp, 0xc
mov edi, 0x1000e9e0
test eax, eax
jns 0x100361d6
push eax
push edi
mov edx, 0x1b6
call fcn.1002d793
mov ecx, dword [ebp - 0x30]
mov esi, 0x1be
push 0
push 2
push esi
push 0x1000f138
mov edx, 0x1000eae0
call fcn.100467b8
mov ecx, dword [ebp + 4]
test eax, eax
jns 0x10036202
push eax
push edi
mov edx, esi
call fcn.1002d793
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1003620e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.AppXAllUserStore.dll_TakeOwnershipOnFolder]
mov esi, eax
test esi, esi
jns 0x10036269
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1003622d
lea eax, [ebp - 0x2c]
push eax
push 0x1000fa04
push esi
push edi
push 0x1c1
push dword [ebp + 4]
call fcn.1002dfef
add esp, 0x18
cmp dword [ebp - 0x30], 0
je 0x10036254
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1002795e
mov byte [ebp - 4], 8
jmp 0x10036324
mov esi, 0x10006b98
mov ecx, esi
call fcn.1002a688
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.100279aa
mov esi, 0x1000f704
mov ecx, esi
call fcn.1002a688
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.100279aa
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100362a1
lea eax, [ebp - 0x2c]
lea esi, [ebx + 0x190]
cmp dword [esi + 0x14], 8
jb 0x100362b1
mov ecx, dword [esi]
jmp 0x100362b3
mov ecx, esi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10036303
cmp dword [esi + 0x14], 8
jb 0x100362c9
mov esi, dword [esi]
push esi
push 0x1000f264
push edi
push 0x1c8
push dword [ebp + 4]
call fcn.10038242
add esp, 0x14
mov esi, eax
cmp dword [ebp - 0x30], 0
je 0x100362f1
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1002795e
mov byte [ebp - 4], 9
jmp 0x10036324
cmp dword [ebp - 0x30], 0
je 0x10036312
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1002795e
mov byte [ebp - 4], 0xa
xor esi, esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x38], 0
call fcn.10036372
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004f280
leave
ret