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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x646180b0]
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 [0x6461800c]
cmp eax, 0x6461800c
je 0x646123e9
test byte [eax + 0x1c], 2
je 0x646123e9
cmp byte [eax + 0x19], 5
jb 0x646123e9
push dword [eax + 0x14]
mov edx, 0x64603dd0
push dword [eax + 0x10]
push 0x50
pop ecx
call fcn.6460534c
lea eax, [ebp - 0x624]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPath2W]
test eax, eax
jne 0x6461240c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x64612735
lea eax, [ebp - 0x82c]
push eax
push esi
push 0x646022f0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x646123ff
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 0x64612720
cmp eax, 0x104
ja 0x64612719
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x85c]
push eax
lea edx, [ebp - 0x214]
call fcn.64611790
test eax, eax
mov eax, dword [ebp - 0x85c]
jne 0x64612486
test al, 4
jne 0x6461248e
or eax, 4
test al, 4
je 0x6461257c
test edi, edi
je 0x64612720
mov edx, dword [ebp - 0x858]
mov ecx, edi
push ebx
call fcn.6461275e
test eax, eax
je 0x64612720
push ecx
push ecx
push 0x80
push 3
push ecx
push 1
mov edx, 0x80000000
mov ecx, ebx
call fcn.6461027f
mov edi, eax
cmp edi, 0xffffffff
jne 0x64612511
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64612728
test byte [eax + 0x1c], 2
je 0x64612728
cmp byte [eax + 0x19], 2
jb 0x64612728
push esi
push ebx
push dword [eax + 0x14]
mov edx, 0x64603dd0
push dword [eax + 0x10]
push 0x51
pop ecx
call fcn.6460539a
jmp 0x64612728
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 0x6461256c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64612728
test byte [eax + 0x1c], 2
je 0x64612728
cmp byte [eax + 0x19], 2
jb 0x64612728
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x52
mov edx, 0x64603dd0
pop ecx
call fcn.64605370
jmp 0x64612728
test ebx, ebx
jne 0x64612728
push 0xd
pop esi
jmp 0x64612728
test al, 2
je 0x646126c9
test edi, edi
jne 0x6461258c
push 0x57
jmp 0x64612576
mov edx, 0x104
test al, 1
je 0x646125a8
push dword [ebp - 0x858]
lea ecx, [ebp - 0x41c]
call fcn.646051c2
jmp 0x646125bc
push ecx
lea eax, [ebp - 0x214]
push eax
push ecx
lea ecx, [ebp - 0x41c]
call fcn.646052c7
mov edi, eax
test edi, edi
jns 0x6461260b
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x646125ee
test byte [eax + 0x1c], 2
je 0x646125ee
cmp byte [eax + 0x19], 2
jb 0x646125ee
push edi
push dword [eax + 0x14]
mov edx, 0x64603dd0
push dword [eax + 0x10]
push 0x53
pop ecx
call fcn.64605370
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64612604
movzx esi, di
jmp 0x64612728
mov esi, edi
jmp 0x64612728
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.646148c7
test eax, eax
je 0x64612720
mov edx, dword [ebp - 0x850]
lea eax, [ebp - 0x41c]
mov ecx, dword [ebp - 0x860]
push eax
call fcn.64611440
test eax, eax
jne 0x64612687
mov esi, 0x65b
push dword [ebp - 0x850]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x64612728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64612728
test byte [eax + 0x1c], 2
je 0x64612728
cmp byte [eax + 0x19], 2
jb 0x64612728
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x54
jmp 0x6461255c
test al, 1
je 0x6461270d
push esi
push ebx
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x64612728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64612728
test byte [eax + 0x1c], 2
je 0x64612728
cmp byte [eax + 0x19], 2
jb 0x64612728
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x55
jmp 0x6461255c
push 0xd
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x64612728
push 0x6f
jmp 0x64612576
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 0x64612744
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x64612747
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret 4