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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x890
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 0x64611dba
test byte [eax + 0x1c], 2
je 0x64611dba
cmp byte [eax + 0x19], 5
jb 0x64611dba
push dword [eax + 0x14]
mov edx, 0x64602ff8
push dword [eax + 0x10]
push 0x4e
pop ecx
call fcn.64604423
lea eax, [ebp - 0x624]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x64611ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x646120f7
lea eax, [ebp - 0x82c]
push eax
push esi
push 0x64601508
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x64611dd0
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 0x646120e2
cmp eax, 0x104
ja 0x646120db
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x85c]
push eax
lea edx, [ebp - 0x214]
call fcn.6461103e
test eax, eax
mov eax, dword [ebp - 0x85c]
jne 0x64611e57
test al, 4
jne 0x64611e5f
or eax, 4
test al, 4
je 0x64611f4d
test edi, edi
je 0x646120e2
mov edx, dword [ebp - 0x858]
mov ecx, edi
push ebx
call fcn.6461211c
test eax, eax
je 0x646120e2
push ecx
push ecx
push 0x80
push 3
push ecx
push 1
mov edx, 0x80000000
mov ecx, ebx
call fcn.6460fc33
mov edi, eax
cmp edi, 0xffffffff
jne 0x64611ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646120ea
test byte [eax + 0x1c], 2
je 0x646120ea
cmp byte [eax + 0x19], 2
jb 0x646120ea
push esi
push ebx
push dword [eax + 0x14]
mov edx, 0x64602ff8
push dword [eax + 0x10]
push 0x4f
pop ecx
call fcn.64604465
jmp 0x646120ea
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 0x64611f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646120ea
test byte [eax + 0x1c], 2
je 0x646120ea
cmp byte [eax + 0x19], 2
jb 0x646120ea
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x50
mov edx, 0x64602ff8
pop ecx
call fcn.64604441
jmp 0x646120ea
test ebx, ebx
jne 0x646120ea
push 0xd
pop esi
jmp 0x646120ea
test al, 2
je 0x6461208b
test edi, edi
jne 0x64611f5d
push 0x57
jmp 0x64611f47
lea ecx, [ebp - 0x41c]
mov edx, 0x104
test al, 1
je 0x64611f74
push dword [ebp - 0x858]
jmp 0x64611f7b
lea eax, [ebp - 0x214]
push eax
call fcn.646042a0
mov edi, eax
test edi, edi
jns 0x64611fcf
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64611fb2
test byte [eax + 0x1c], 2
je 0x64611fb2
cmp byte [eax + 0x19], 2
jb 0x64611fb2
push edi
push dword [eax + 0x14]
mov edx, 0x64602ff8
push dword [eax + 0x10]
push 0x51
pop ecx
call fcn.64604441
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64611fc8
movzx esi, di
jmp 0x646120ea
mov esi, edi
jmp 0x646120ea
push 0x2c
pop edi
push edi
lea eax, [ebp - 0x890]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x890], edi
xor eax, eax
mov dword [ebp - 0x868], ebx
lea edi, [ebp - 0x854]
lea edx, [ebp - 0x890]
push 0xa
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0x28
push eax
lea eax, [ebp - 0x85c]
push eax
push ecx
call fcn.646140cd
test eax, eax
je 0x646120e2
mov edx, dword [ebp - 0x850]
lea eax, [ebp - 0x41c]
mov ecx, dword [ebp - 0x860]
push eax
call fcn.64610cf9
test eax, eax
jne 0x64612049
mov esi, 0x65b
push dword [ebp - 0x850]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x646120ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646120ea
test byte [eax + 0x1c], 2
je 0x646120ea
cmp byte [eax + 0x19], 2
jb 0x646120ea
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x52
jmp 0x64611f2d
test al, 1
je 0x646120cf
push esi
push ebx
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x646120ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646120ea
test byte [eax + 0x1c], 2
je 0x646120ea
cmp byte [eax + 0x19], 2
jb 0x646120ea
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x53
jmp 0x64611f2d
push 0xd
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x646120ea
push 0x6f
jmp 0x64611f47
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 0x64612106
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x64612109
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615f50
mov esp, ebp
pop ebp
ret 4