Function at 0x401700
Capabilities:
Copy file
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40a4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebp
push esi
mov esi, ecx
mov eax, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov ebp, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
cmp ebp, ecx
mov dword [esp + 0x10], ebp
je 0x401dec
push ebx
push edi
lea edi, [ebp + 0x24]
mov dword [esp + 0x14], edi
cmp dword [edi + 0x18], 2
je 0x401dd1
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00403330
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov dword [esp + 0x338], 0
call fcn.00403330
push str._bak
mov byte [esp + 0x338], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, 0x24
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4017a6
mov eax, 0x40b1a0
push ebp
lea edx, [esp + 0x48]
push eax
push edx
call fcn.00403c30
add esp, 0xc
mov al, byte [edi + 0x14]
mov byte [esp + 0x334], 2
test al, al
push 0x104
je 0x401c21
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x124]
push 0x40d134
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str.64BIT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.64BIT
mov ecx, ebp
call fcn.004032a0
cmp eax, dword [0x40b198]
je 0x401a92
mov edx, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [edx - 0x1c]
add eax, 0xfffffffb
push eax
lea eax, [esp + 0x118]
push 5
push eax
call fcn.00402ed0
mov ebp, eax
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x58]
mov byte [esp + 0x338], 3
call fcn.00403330
mov edi, 0x40d128
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d128
lea ecx, [esp + 0x5c]
call fcn.00403380
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov byte [esp + 0x334], 4
mov eax, dword [edx + 0x2c]
sub eax, ebx
push eax
lea eax, [esp + 0xa8]
push 0
push eax
call fcn.00402ed0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x74]
push ecx
push eax
push edx
mov byte [esp + 0x340], 5
call fcn.00403d80
push ebp
push eax
lea eax, [esp + 0xf8]
mov byte [esp + 0x348], 6
push eax
call fcn.00403d80
add esp, 0x18
mov ecx, dword [0x40b198]
mov byte [esp + 0x334], 7
push ecx
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.004030a0
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x338], 6
call fcn.00403330
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x338], 5
call fcn.00403330
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x338], 4
call fcn.00403330
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x338], 3
call fcn.00403330
mov byte [esp + 0x334], 2
push 1
lea ecx, [esp + 0x118]
call fcn.00403330
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x401953
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x401960
mov ecx, 0x40b1a0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
push ecx
call ebx
push str.Wow64EnableWow64FsRedirection
push str.kernel32
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401a85
push 0
call edi
and eax, 0xff
cmp eax, 1
jne 0x401a6e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx - 0x1c]
add eax, 0xfffffffb
push eax
lea eax, [esp + 0x108]
push 5
push eax
call fcn.00402ed0
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0xc8]
push ecx
push edx
mov byte [esp + 0x340], 8
call fcn.00403c30
add esp, 0xc
mov ecx, dword [0x40b198]
mov byte [esp + 0x334], 9
push ecx
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.004030a0
push 1
lea ecx, [esp + 0xc8]
mov byte [esp + 0x338], 8
call fcn.00403330
push 1
lea ecx, [esp + 0x108]
mov byte [esp + 0x338], 2
call fcn.00403330
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x401a34
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x401a41
mov ecx, 0x40b1a0
push 0
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x401a6a
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x401a5a
mov eax, 0x40b1a0
push 0
push eax
push 0x40d0d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call edi
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
jne 0x401cd9
mov dword [esp + 0x20], ebx
jmp 0x401d28
mov edx, dword [esp + 0x14]
mov dword [edx + 0x18], 2
jmp 0x401a6e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.00403330
mov edi, 0x40d0d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d0d4
lea ecx, [esp + 0x6c]
call fcn.00403380
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xb4]
mov byte [esp + 0x334], 0xa
mov eax, dword [ecx + 0x2c]
mov ecx, esi
sub eax, ebx
xor ebx, ebx
push eax
push ebx
push edx
call fcn.00402ed0
lea ecx, [esp + 0x64]
lea edx, [esp + 0x94]
push ecx
push eax
push edx
mov byte [esp + 0x340], 0xb
call fcn.00403d80
push ebp
push eax
lea eax, [esp + 0x98]
mov byte [esp + 0x348], 0xc
push eax
call fcn.00403d80
add esp, 0x18
mov ecx, dword [0x40b198]
mov byte [esp + 0x334], 0xd
push ecx
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004030a0
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x338], 0xc
call fcn.00403330
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x338], 0xb
call fcn.00403330
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x338], 0xa
call fcn.00403330
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x338], 2
call fcn.00403330
lea edx, [esp + 0x124]
push ebp
lea eax, [esp + 0xd8]
push edx
push eax
call fcn.00403c30
add esp, 0xc
mov ecx, dword [0x40b198]
mov byte [esp + 0x334], 0xe
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.004030a0
push 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0x338], 2
call fcn.00403330
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x401be1
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
jne 0x401bee
mov ecx, 0x40b1a0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push eax
push ecx
call edi
mov esi, eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov ecx, 0x40b1a0
je 0x401c0a
mov ecx, eax
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x401c17
mov eax, 0x40b1a0
push ebx
push ecx
push eax
call edi
jmp 0x401a74
lea edx, [esp + 0x22c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.00404400
mov edx, eax
mov edi, 0x40d134
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x100]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x234]
push ecx
push edx
call fcn.00403c30
add esp, 0x14
mov ecx, dword [0x40b198]
mov byte [esp + 0x334], 0xf
push ecx
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.004030a0
push 1
lea ecx, [esp + 0xf8]
mov byte [esp + 0x338], 2
call fcn.00403330
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x401cbb
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x401cc8
mov ecx, 0x40b1a0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
jmp 0x401a72
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, 0x40b1a0
mov dword [edx + 0x18], 2
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x401cf6
mov ecx, eax
mov eax, dword [edx]
cmp eax, ebx
jne 0x401d01
mov eax, 0x40b1a0
push ecx
add edx, 0xc
push 0x10
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x401d21
mov eax, 0x40b1a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x401d4d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401d44
cmp al, 0xff
je 0x401d44
dec al
mov byte [ecx], al
jmp 0x401d4d
push ecx
call fcn.00404090
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
cmp eax, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x401d7e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401d75
cmp al, 0xff
je 0x401d75
dec al
mov byte [ecx], al
jmp 0x401d7e
push ecx
call fcn.00404090
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x334], 0xffffffff
je 0x401db9
mov al, byte [ecx - 1]
test al, al
je 0x401daf
cmp al, 0xff
je 0x401daf
dec al
mov byte [ecx - 1], al
jmp 0x401db9
dec ecx
push ecx
call fcn.00404090
add esp, 4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x3c]
add ebp, 0x40
add edi, 0x40
cmp ebp, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
jne 0x401747
pop edi
pop ebx
mov ecx, dword [esp + 0x324]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x328
ret