Function at 0x64611c45
Capabilities:
Copy file
Delete file
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x646170a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x214]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x858], edx
push 0x208
mov edi, ecx
mov dword [ebp - 0x85c], esi
push esi
push eax
mov dword [ebp - 0x860], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x624]
push 0x208
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x82c]
push 0x208
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x208
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64611cf5
test byte [eax + 0x1c], 2
je 0x64611cf5
cmp byte [eax + 0x19], 5
jb 0x64611cf5
push dword [eax + 0x14]
mov edx, 0x64602f00
push dword [eax + 0x10]
push 0x4e
pop ecx
call fcn.64604453
lea eax, [ebp - 0x624]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x64611d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x64612034
lea eax, [ebp - 0x82c]
push eax
push esi
push 0x64601518
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x64611d0b
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x6461201f
cmp eax, 0x104
ja 0x64612018
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x85c]
push eax
lea edx, [ebp - 0x214]
call fcn.64610f82
test eax, eax
mov eax, dword [ebp - 0x85c]
jne 0x64611d92
test al, 4
jne 0x64611d9a
or eax, 4
test al, 4
je 0x64611e88
test edi, edi
je 0x6461201f
mov edx, dword [ebp - 0x858]
mov ecx, edi
push ebx
call fcn.64612057
test eax, eax
je 0x6461201f
push ecx
push ecx
push 0x80
push 3
push ecx
push 1
mov edx, 0x80000000
mov ecx, ebx
call fcn.6460fba9
mov edi, eax
cmp edi, 0xffffffff
jne 0x64611e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64612027
test byte [eax + 0x1c], 2
je 0x64612027
cmp byte [eax + 0x19], 2
jb 0x64612027
push esi
push ebx
push dword [eax + 0x14]
mov edx, 0x64602f00
push dword [eax + 0x10]
push 0x4f
pop ecx
call fcn.64604495
jmp 0x64612027
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
jne 0x64611e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64612027
test byte [eax + 0x1c], 2
je 0x64612027
cmp byte [eax + 0x19], 2
jb 0x64612027
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x50
mov edx, 0x64602f00
pop ecx
call fcn.64604471
jmp 0x64612027
test ebx, ebx
jne 0x64612027
push 0xd
pop esi
jmp 0x64612027
test al, 2
je 0x64611fc8
test edi, edi
jne 0x64611e98
push 0x57
jmp 0x64611e82
lea ecx, [ebp - 0x41c]
mov edx, 0x104
test al, 1
je 0x64611eaf
push dword [ebp - 0x858]
jmp 0x64611eb6
lea eax, [ebp - 0x214]
push eax
call fcn.646042d0
mov edi, eax
test edi, edi
jns 0x64611f0a
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64611eed
test byte [eax + 0x1c], 2
je 0x64611eed
cmp byte [eax + 0x19], 2
jb 0x64611eed
push edi
push dword [eax + 0x14]
mov edx, 0x64602f00
push dword [eax + 0x10]
push 0x51
pop ecx
call fcn.64604471
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64611f03
movzx esi, di
jmp 0x64612027
mov esi, edi
jmp 0x64612027
push 0x2c
pop edi
push edi
lea eax, [ebp - 0x894]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x894], edi
xor eax, eax
mov dword [ebp - 0x86c], ebx
lea edi, [ebp - 0x854]
lea edx, [ebp - 0x894]
push 0xa
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0x28
push eax
lea eax, [ebp - 0x868]
xor ecx, ecx
push eax
push esi
call fcn.64613ff4
test eax, eax
je 0x6461201f
mov edx, dword [ebp - 0x850]
lea eax, [ebp - 0x41c]
mov ecx, dword [ebp - 0x860]
push eax
call fcn.64610c38
test eax, eax
jne 0x64611f86
mov esi, 0x65b
push dword [ebp - 0x850]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x64612027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64612027
test byte [eax + 0x1c], 2
je 0x64612027
cmp byte [eax + 0x19], 2
jb 0x64612027
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x52
jmp 0x64611e68
test al, 1
je 0x6461200c
push esi
push ebx
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x64612027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64612027
test byte [eax + 0x1c], 2
je 0x64612027
cmp byte [eax + 0x19], 2
jb 0x64612027
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x53
jmp 0x64611e68
push 0xd
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x64612027
push 0x6f
jmp 0x64611e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x64612043
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x64612046
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615e30
leave
ret 4