Function at 0x1030a20
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1030a60
mov eax, 0x80004003
jmp 0x1030e2c
test edi, edi
jne 0x1030a6f
test eax, eax
jne 0x1030a6f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0102e8b9
test eax, eax
jne 0x1030a89
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x80070002
jmp 0x1030e2c
push ebx
mov ebx, 0x208
test edi, edi
je 0x1030ba3
cmp dword [ebp + 0x14], 0
je 0x1030aaf
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.0102e8e6
call fcn.0102f14f
cmp dword [ebp + 0x10], 0
je 0x1030ba3
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
test edi, edi
jne 0x1030ad0
mov eax, 0x8007000e
jmp 0x1030e2b
mov esi, 0x104
push esi
push edi
push dword [ebp - 0x418]
call fcn.0102fcc4
push edi
call fcn.0102e61a
cmp dword [ebp - 0x424], 0
je 0x1030b0f
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push edi
push 0x1003bc0
push esi
push eax
call fcn.01027f64
add esp, 0x14
jmp 0x1030b41
push dword [0x10412d0]
lea eax, [ebp - 0x20c]
push edi
push 0x1005c90
push esi
push eax
call fcn.01027f64
add esp, 0x14
inc dword [0x10412d0]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
jne 0x1030b0f
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1030bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1030b70
push 0x57
pop eax
test eax, eax
jle 0x1030b7c
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push 0x1005c40
push 0
call fcn.01039f55
add esp, 0x14
mov eax, 0x80004005
jmp 0x1030e2b
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
jmp 0x1030bbe
mov edi, dword [ebp - 0x418]
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x420], eax
mov ebx, 0x10411c0
test eax, eax
je 0x1030d73
and dword [ebp - 0x41c], 0
push eax
push esi
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1030d51
push dword [ebp - 0x420]
call fcn.0102fede
push dword [ebp - 0x420]
call fcn.0102e61a
and dword [0x10412d0], 0
cmp dword [ebp - 0x424], 0
je 0x1030c3d
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x1003bc0
push esi
push eax
call fcn.01027f64
add esp, 0x14
jmp 0x1030c74
push dword [0x10412d0]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x1005c90
push esi
push eax
call fcn.01027f64
add esp, 0x14
inc dword [0x10412d0]
lea eax, [ebp - 0x414]
push eax
call fcn.0102e8b9
test eax, eax
jne 0x1030c3d
xor esi, esi
lea eax, [ebp - 0x414]
push eax
cmp dword [ebp - 0x418], esi
je 0x1030cf2
push dword [ebp - 0x418]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x1030d51
push dword [ebp - 0x418]
call fcn.0102e8b9
test eax, eax
je 0x1030cbf
push dword [ebp - 0x418]
push 0x1005bf8
push 1
call fcn.01039f55
add esp, 0xc
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
mov dword [ebp - 0x41c], eax
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.010306d8
mov edi, eax
cmp edi, 0xd2af9
jne 0x1030d51
push 0
jmp 0x1030d3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1030d51
lea eax, [ebp - 0x20c]
push eax
push 0x1005bb8
push 4
call fcn.01039f55
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x41c], 1
call fcn.010306d8
mov edi, eax
cmp edi, 0xd2af9
jne 0x1030d51
push esi
lea eax, [ebp - 0x414]
push eax
push 2
mov ecx, ebx
mov edi, 0xd2af8
call fcn.01030187
push dword [ebp - 0x420]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x41c], 0
pop ecx
je 0x1030d6d
mov eax, edi
jmp 0x1030e2b
mov edi, dword [ebp - 0x418]
push 5
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1030dec
test edi, edi
je 0x1030da7
push 0x5c
push edi
call fcn.0102e672
test eax, eax
je 0x1030da7
push edi
push 0x1005b94
push 2
call fcn.01039f55
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x1005b64
push 2
call fcn.01039f55
add esp, 0xc
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
je 0x1030ddb
push edi
push eax
push 8
call fcn.01030187
mov eax, 0xd2af9
jmp 0x1030e2b
push 0
push eax
push 2
call fcn.01030187
mov eax, 0xd2af8
jmp 0x1030e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1030dfb
push 0x57
pop eax
test eax, eax
jle 0x1030e07
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x1030e12
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1005b28
push 2
call fcn.01039f55
add esp, 0x10
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 0x18