Function at 0x54d5b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x54d5bd
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54d8da
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x54d8b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0045bd7c
test al, al
jne 0x54d646
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, 0x54d8f8
call fcn.0040513c
je 0x54d62d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, 0x54d8f8
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
call fcn.00597b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d8bf
push 2
mov ecx, 0x54d908
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0054af04
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0040a49c
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0040eca4
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
pop ecx
call fcn.0040503c
xor eax, eax
push ebp
push 0x54d6ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0054ad34
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00409ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d6c2
xor eax, eax
push ebp
push 0x54d6f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0054ae18
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.0040cd9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d70b
xor eax, eax
push ebp
push 0x54d738
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054ad34
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d74f
xor eax, eax
push ebp
push 0x54d781
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054ae18
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x24]
call fcn.0040cd9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d798
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.0040513c
jne 0x54d7b6
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.0040513c
je 0x54d8a7
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
mov edx, 0x54d938
call fcn.0040513c
je 0x54d7e7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, 0x54d938
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
xor eax, eax
push ebp
push 0x54d830
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004d9000
test al, al
jne 0x54d826
mov eax, dword [ebp - 0xc]
call fcn.004d9008
test al, al
jne 0x54d826
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d8bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d84d
mov eax, dword [ebp - 4]
mov byte [eax + 0x6a], 1
push 0
mov eax, dword [ebp - 0x14]
call fcn.004051f0
push eax
mov eax, dword [ebp - 8]
call fcn.004051f0
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
mov edx, 0x54d948
call fcn.0040513c
je 0x54d8a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, 0x54d948
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d8bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54d8e1
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00404d54
ret