Function at 0x1000a1b0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100d4786
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x1000a47b
push 0xffffffffffffffff
lea eax, [esi + 0x44]
push edi
push eax
lea ecx, [esp + 0x28]
mov dword [esi], 2
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
call fcn.10004180
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x1000a232
lea eax, [esp + 0x20]
push eax
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], edi
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x1000a266
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x13], 1
test eax, eax
je 0x1000a26b
mov byte [esp + 0x13], 0
mov dl, byte [esp + 0x13]
mov byte [esp + 0x18], dl
lea ebx, [esi + 0x28]
mov eax, ebx
mov byte [esp + 0xc0], 1
call fcn.10012250
test al, al
jne 0x1000a2ad
mov dword [esi], edi
cmp byte [esp + 0x13], al
je 0x1000a454
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x1000a467
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1000a454
cmp byte [esp + 0x13], 0
je 0x1000a454
mov eax, ebx
call fcn.100122b0
mov edx, dword [esi + 8]
xor eax, eax
push 0xa
push 0x20
lea ecx, [esp + 0x98]
push ecx
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
call fcn.100b204f
inc dword [esi + 0x60]
mov eax, dword [esi + 0x60]
add esp, 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
mov byte [esp + 0xc0], 2
test eax, eax
jle 0x1000a34a
push 1
push 0x100eba70
lea ecx, [esp + 0x60]
inc edi
call fcn.10004f30
cmp edi, dword [esi + 0x60]
jl 0x1000a334
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a354
sub eax, edx
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x60]
call fcn.10004f30
mov eax, dword [esi + 4]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0xc]
push edx
push eax
lea esi, [esp + 0x80]
call fcn.100131a0
add esp, 0xc
push str.._loccpy
mov ecx, esi
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0xcc], 3
call fcn.1000a4a0
mov ecx, dword [esp + 0x4c]
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x54], edi
jae 0x1000a3bb
lea ecx, [esp + 0x40]
cmp dword [ebx + 0x18], edi
jb 0x1000a3c5
mov eax, dword [ebx + 4]
jmp 0x1000a3c8
lea eax, [ebx + 4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebx + 0x18], edi
jb 0x1000a3dc
mov ebx, dword [ebx + 4]
jmp 0x1000a3df
add ebx, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
test eax, eax
jne 0x1000a3ff
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x1000a3fa
lea eax, [esp + 0x40]
push eax
call esi
jmp 0x1000a428
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x1000a410
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x1000a41e
lea eax, [esp + 0x40]
push ecx
push eax
call fcn.100b3b54
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.1000bc20
lea ecx, [esp + 0x74]
call fcn.1000bc20
lea ecx, [esp + 0x58]
call fcn.1000bc20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1000a467
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x1000a467
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], edi
cmp dword [esp + 0x34], 0x10
jb 0x1000a47b
mov eax, dword [esp + 0x20]
push eax
call fcn.100b2ba3
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.100b1bc4
mov esp, ebp
pop ebp
ret