Function at 0x401314
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x20
call fcn.00401626
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401356
mov eax, 0x455f4c
push eax
push 1
mov ebx, 0x130
call fcn.00401d90
add esp, 0x10
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 4
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40139c
mov eax, 0x455f4c
push eax
push 1
mov ebx, 0x198
call fcn.00401e90
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x455f4d
push dword [ebp - 0x10]
mov ecx, 2
call fcn.0040121b
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4013da
push ebx
call fcn.00401620
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4013f0
push ebx
call fcn.00401620
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x401414
mov eax, 0x455f4c
push eax
push 1
mov ebx, 0x198
call fcn.00401e90
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x455f4d
push dword [ebp - 0x10]
mov ecx, 2
call fcn.0040121b
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401452
push ebx
call fcn.00401620
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401468
push ebx
call fcn.00401620
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0x40
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 8]
push eax
push 0x1e
call fcn.00401626
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x4014bd
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x4014ce
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401518
push 6
call fcn.0040162c
add esp, 4
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 8
add ebx, 8
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.004012dd
call fcn.00401620
add esp, 4
pop eax
jmp 0x40156c
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x401584
push ebx
call fcn.00401620
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x401598
push ebx
call fcn.00401620
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4015ac
push ebx
call fcn.00401620
add esp, 4
pop ebx
call fcn.00401620
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8