Function at 0x1005fc09
Capabilities:
Copy file

Disassembly:
push 0x1c
mov eax, 0x100af034
call fcn.100a4ea8
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x1005fc38
cmp dword [ebx + 4], 0
jne 0x1005fe92
mov dword [ebx + 4], 0x80004004
jmp 0x1005fe92
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1008e35d
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.1006ed27
push edi
push 0x10015230
lea ecx, [ebp - 0x14]
call fcn.1006ed77
cmp eax, 0xffffffff
je 0x1005fc73
mov ecx, dword [ebp - 0x14]
jmp 0x1005fe8a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebx + 0xc]
sub ecx, 0x10
call fcn.1008e35d
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebx + 8]
mov ecx, esi
push eax
call fcn.1006ec43
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10073b09
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.1006f372
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1006e6ff
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
mov edx, 0x10015268
lea ecx, [ebp - 0x24]
call fcn.1006e932
push 0x1001524c
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.1006e98e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.1006e9ea
mov byte [ebp - 4], 6
mov edi, dword [ebx + 0x20]
mov edx, dword [eax]
push edx
push 2
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push dword [eax]
call fcn.1006f372
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.1006e6e0
push ecx
mov esi, esp
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebx + 0x18]
push 9
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1005fe1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 4], 0
mov edi, eax
jne 0x1005fdc9
mov dword [ebx + 4], edi
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008df96
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push dword [esi]
push edi
push 0x100152a8
push eax
call fcn.1008dbf3
mov ebx, dword [ebx + 0x20]
add esp, 0x14
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
push esi
push 0
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100cf608]
mov ecx, ebx
call edi
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 7
call fcn.1008e3f5
mov ebx, dword [ebp - 0x28]
jmp 0x1005fe31
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x10]
jb 0x1005fe57
mov eax, dword [edi]
push 0xff
mov esi, dword [eax]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
jmp 0x1005fe71
imul eax, eax, 0xff
xor edx, edx
mov esi, dword [edi]
div dword [ebx + 0x10]
mov ecx, dword [esi]
push eax
call dword [0x100cf608]
mov ecx, edi
call dword [esi]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
call fcn.100a4e71
ret 4