Function at 0x52c7e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x52c7e9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x52ca78
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004179d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x10]
mov edx, 0x52ca94
call fcn.00418694
lea edx, [ebp - 0x30]
mov eax, dword [0x543384]
mov eax, dword [eax + 0x10]
call fcn.00415bec
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.0040795c
push dword [ebp - 0x2c]
push 0x52cac4
push dword [ebp - 0x10]
push 0x52cadc
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.004150ec
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00407d98
lea eax, [ebp - 0x38]
mov ecx, 0x52caec
mov edx, dword [ebp - 0xc]
call fcn.00407cb4
mov eax, dword [ebp - 0x38]
call fcn.0040785c
mov dword [ebp - 0x24], eax
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x44c758]
call fcn.0044d9a0
mov dword [ebp - 0x1c], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0044da44
lea eax, [ebp - 0x3c]
mov ecx, ebx
mov edx, 0x52cb04
call fcn.00407cb4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.0044dcc0
lea ecx, [ebp - 8]
mov edx, 0x52cb8c
mov eax, dword [ebp - 0x1c]
call fcn.0044e5bc
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.00405764
cmp dword [ebp - 8], 0
jne 0x52c933
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x44c758]
call fcn.0044d9a0
mov dword [ebp - 0x1c], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0044da44
mov edx, 0x52cbb8
mov eax, dword [ebp - 0x1c]
call fcn.0044dcc0
lea ecx, [ebp - 8]
mov edx, 0x52cc3c
mov eax, dword [ebp - 0x1c]
call fcn.0044e5bc
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.00405764
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 4]
call fcn.004150ec
jmp 0x52c954
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x52cc74
call fcn.00407cb4
lea eax, [ebp - 4]
call fcn.00406c3c
call fcn.00407b50
cmp eax, 5
jl 0x52c944
push dword [ebp - 8]
push 0x52cc84
push dword [ebp - 4]
push 0x52caec
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00407d98
mov eax, dword [ebp - 0x40]
call fcn.0040785c
mov dword [ebp - 0x20], eax
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
call fcn.004388d8
mov edi, eax
xor eax, eax
push ebp
push 0x52ca49
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [edi + 8]
dec ebx
test ebx, ebx
jl 0x52ca26
inc ebx
xor esi, esi
mov edx, esi
mov eax, edi
call fcn.00437df0
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x18]
jne 0x52ca22
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
call fcn.0040798c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.0052cd9c
test eax, eax
jne 0x52c9fb
mov edx, esi
mov eax, edi
call fcn.00437df0
add eax, 0x1c
xor edx, edx
call fcn.004077d0
jmp 0x52ca22
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x52ca22
mov edx, esi
mov eax, edi
call fcn.00437df0
add eax, 0x1c
mov edx, dword [ebp - 0x24]
call fcn.0040798c
inc esi
dec ebx
jne 0x52c9bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ca50
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
ret