Function at 0x100020d0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10015bd0
push 0x10008ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x438], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
xor edi, edi
mov dword [ebp - 0x448], edi
push str.RtlImageDirectoryEntryToData
push str.ntdll.dll
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x10002155
xor eax, eax
jmp 0x1000239f
push str.RtlImageRvaToVa
push str.ntdll.dll
call esi
push eax
call ebx
mov dword [ebp - 0x440], eax
test eax, eax
je 0x1000214e
push str.RtlImageNtHeader
push str.ntdll.dll
call esi
push eax
call ebx
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x1000214e
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push eax
lea eax, [ebp - 0x42a]
push eax
call fcn.10008d40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push eax
lea eax, [ebp - 0x222]
push eax
call fcn.10008d40
push esi
lea eax, [ebp - 0x42c]
push eax
push str._s_x.dll
push 0x208
lea eax, [ebp - 0x224]
push eax
call section..text
add esp, 0x20
push 1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000214e
push 2
push 0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x450], eax
test eax, eax
je 0x1000239d
mov dword [ebp - 4], edi
mov ebx, eax
and ebx, 0xfffffffc
mov dword [ebp - 0x430], 0
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push ebx
call dword [ebp - 0x434]
mov esi, eax
mov dword [ebp - 0x438], esi
test esi, esi
je 0x10002365
push ebx
call dword [ebp - 0x43c]
mov dword [ebp - 0x434], eax
push 0
push dword [esi + 0x20]
push ebx
push eax
mov esi, dword [ebp - 0x440]
call esi
mov dword [ebp - 0x43c], eax
push 0
mov eax, dword [ebp - 0x438]
push dword [eax + 0x1c]
push ebx
push dword [ebp - 0x434]
call esi
mov dword [ebp - 0x454], eax
push 0
mov eax, dword [ebp - 0x438]
push dword [eax + 0x24]
push ebx
push dword [ebp - 0x434]
call esi
mov dword [ebp - 0x45c], eax
xor esi, esi
mov dword [ebp - 0x458], esi
mov eax, dword [ebp - 0x438]
cmp esi, dword [eax + 0x18]
jae 0x10002365
push 0
mov eax, dword [ebp - 0x43c]
push dword [eax + esi*4]
push ebx
push dword [ebp - 0x434]
call dword [ebp - 0x440]
push str.ZwDeviceIoControlFile
push eax
call fcn.10004939
add esp, 8
test eax, eax
jne 0x1000235f
mov eax, dword [ebp - 0x45c]
movzx eax, word [eax + esi*2]
mov ecx, dword [ebp - 0x454]
mov edi, dword [ecx + eax*4]
cmp dword [ebp - 0x444], 0
je 0x10002348
mov eax, 0xc
test eax, eax
je 0x10002348
push 0
push edi
push ebx
push dword [ebp - 0x434]
call dword [ebp - 0x440]
push 0xc
push eax
push dword [ebp - 0x444]
call fcn.10004a20
add esp, 0xc
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x10002354
mov dword [eax], edi
mov edi, 1
mov dword [ebp - 0x448], edi
inc esi
jmp 0x100022c3
mov dword [ebp - 4], 0xfffffffe
jmp 0x10002384
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10004869
mov esp, ebp
pop ebp
ret