Function at 0x10009f80
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100d47d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jne 0x1000a187
push 0xffffffffffffffff
lea eax, [esi + 0x44]
push ebp
push eax
lea ecx, [esp + 0x28]
mov dword [esi], 2
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
call fcn.10004180
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x10009ff4
lea eax, [esp + 0x20]
push eax
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x14], ecx
cmp eax, ebp
je 0x1000a02a
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000a02a
mov bl, 1
jmp 0x1000a02c
xor bl, bl
mov byte [esp + 0x18], bl
lea edi, [esi + 0x28]
mov eax, edi
mov byte [esp + 0x80], 1
call fcn.10012250
test al, al
jne 0x1000a078
mov dword [esi], ebp
test bl, bl
je 0x1000a05b
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1000a06e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1000a06e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x34], 0x10
jmp 0x1000a178
test bl, bl
je 0x1000a15c
mov eax, edi
call fcn.100122b0
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
lea ecx, [esi + 0xc]
push ecx
push edx
lea esi, [esp + 0x64]
call fcn.10012ea0
add esp, 0xc
push str.._loccpy
mov eax, esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 2
call fcn.1000a4a0
mov ecx, dword [esp + 0x4c]
mov ebx, 0x10
add esp, 0xc
cmp dword [esp + 0x54], ebx
jae 0x1000a0cf
lea ecx, [esp + 0x40]
cmp dword [edi + 0x18], ebx
jb 0x1000a0d9
mov eax, dword [edi + 4]
jmp 0x1000a0dc
lea eax, [edi + 4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [edi + 0x18], ebx
jb 0x1000a0f0
mov edi, dword [edi + 4]
jmp 0x1000a0f3
add edi, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x1000a113
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x1000a10e
lea eax, [esp + 0x40]
push eax
call esi
jmp 0x1000a139
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x1000a121
lea ecx, [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x1000a12f
lea eax, [esp + 0x40]
push ecx
push eax
call fcn.100b3b54
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.1000bc20
lea ecx, [esp + 0x58]
call fcn.1000bc20
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1000a174
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1000a161
mov ebx, 0x10
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1000a174
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x34], ebx
jb 0x1000a187
mov edx, dword [esp + 0x20]
push edx
call fcn.100b2ba3
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x70
ret