Function at 0x1005fd69
Capabilities:
Copy file

Disassembly:
push 0x1c
mov eax, 0x100af844
call fcn.100a5688
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x1005fd98
cmp dword [ebx + 4], 0
jne 0x1005fff2
mov dword [ebx + 4], 0x80004004
jmp 0x1005fff2
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.1006ee97
push edi
push 0x10015230
lea ecx, [ebp - 0x14]
call fcn.10091a7b
cmp eax, 0xffffffff
je 0x1005fdd3
mov ecx, dword [ebp - 0x14]
jmp 0x1005ffea
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebx + 0xc]
sub ecx, 0x10
call fcn.1008eb5d
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.10091a7b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10091a7b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.1006f4e2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1006e86f
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
mov edx, 0x10015258
lea ecx, [ebp - 0x24]
call fcn.1006eaa2
push 0x1001524c
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.1006eafe
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.1006eb5a
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 [0x100d0614]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push dword [eax]
call fcn.1006f4e2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.1006e850
push ecx
mov esi, esp
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008eb5d
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 [0x100d0614]
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 0x1005ff7d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [ebx + 4], 0
mov edi, eax
jne 0x1005ff29
mov dword [ebx + 4], edi
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.10091a7b
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push dword [esi]
push edi
push 0x10015270
push eax
call fcn.10091a7b
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 [0x100d0614]
mov ecx, ebx
call edi
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 7
call fcn.1008ebf5
mov ebx, dword [ebp - 0x28]
jmp 0x1005ff91
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x100d0614]
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 0x1005ffb7
mov eax, dword [edi]
push 0xff
mov esi, dword [eax]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
jmp 0x1005ffd1
imul eax, eax, 0xff
xor edx, edx
mov esi, dword [edi]
div dword [ebx + 0x10]
mov ecx, dword [esi]
push eax
call dword [0x100d0614]
mov ecx, edi
call dword [esi]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret 4