Function at 0x10348fd
Capabilities:
Copy file
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jne 0x1034917
xor eax, eax
jmp 0x1034b1d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, 0x4000
test edi, eax
je 0x1034972
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.010323e9
test eax, eax
je 0x103496a
push ebx
push dword [ebp + 8]
call dword [ebp - 8]
test eax, eax
jne 0x103496a
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x1006e8c
push 2
call fcn.01036b8b
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.010323d5
cmp dword [ebp + 0x10], ebx
je 0x1034ac1
test byte [0x1048bdc], 1
jne 0x1034995
or dword [0x1048bdc], 1
call fcn.0103295c
mov dword [0x1048bd8], eax
cmp dword [0x1048bd8], 5
jne 0x1034ac1
mov ebx, 0x208
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x10349cc
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x10349db
push dword [ebp + 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1034b1b
mov ebx, 0x104
push ebx
push eax
push dword [ebp + 0xc]
call fcn.01033c4f
push dword [ebp - 4]
call fcn.01032458
push dword [0x1048bd4]
push dword [ebp - 4]
push 0x1006e70
push ebx
push dword [ebp + 0x10]
call fcn.01028b64
add esp, 0x14
push dword [ebp + 0x10]
inc dword [0x1048bd4]
call fcn.010326f3
test eax, eax
jne 0x10349f2
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp + 0x10]
pop ecx
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1034ab8
cmp dword [ebp - 0xc], 0
je 0x1034a85
push ebx
call esi
test edi, eax
je 0x1034a85
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.010323e9
test eax, eax
je 0x1034a7d
push esi
push ebx
call dword [ebp - 0x10]
test eax, eax
jne 0x1034a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x1006e8c
push 2
call fcn.01036b8b
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.010323d5
push 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
push ebx
je 0x1034aa7
push 0x103
push dword [ebp + 8]
call fcn.01028a67
jmp 0x1034aad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, esi
jmp 0x1034b1b
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov ebx, eax
call esi
test edi, eax
je 0x1034b19
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.010323e9
test eax, eax
je 0x1034b11
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x1034b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x1006e8c
push 2
call fcn.01036b8b
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.010323d5
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10