Function at 0x1003f040
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099c40
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100c520c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003f510
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 0
je 0x1003f2b9
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.10028b30
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.1003f700
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x64], eax
cmovae edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x6c], esp
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f0e0
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.1002a8b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.10029b40
add esp, 0x1c
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x60]
mov esi, dword [edi]
cmp esi, edi
je 0x1003f259
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop dword [eax]
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x68]
je 0x1003f215
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003f300
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1003f209
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x1003f2f0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp byte [eax + ecx], 0x5c
je 0x1003f173
push 1
push 0x100a05b0
lea ecx, [ebp - 0x40]
call fcn.10031ea0
push 0x100a05b4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1003ed50
mov byte [ebp - 4], 6
sub esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], esp
mov ecx, esp
push eax
call fcn.10028b30
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.1003f700
add esp, 0x18
cmp eax, dword [ebp - 0x64]
je 0x1003f1fd
test eax, eax
je 0x1003f1c5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call ebx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1003f1fd
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 6
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10028c90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10028c90
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1003f23b
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1003f237
cmp esi, dword [eax + 8]
jne 0x1003f237
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1003f227
mov esi, eax
jmp 0x1003f251
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1003f251
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1003f245
cmp esi, edi
jne 0x1003f120
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x60]
mov ebx, eax
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x1003f293
nop dword [eax]
push dword [esi + 8]
lea ecx, [ebp - 0x60]
call fcn.1002a550
mov esi, dword [esi]
push 0x14
push edi
call fcn.100671fb
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x1003f270
mov eax, dword [ebp - 0x60]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x60]
mov dword [eax], ebx
mov eax, dword [ebp - 0x60]
mov dword [eax + 8], ebx
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
push 0x14
push dword [ebp - 0x60]
call fcn.100671fb
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10028c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10028c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067217
mov esp, ebp
pop ebp
ret
call fcn.10039010
int3