Function at 0x716614
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x71661d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x71695c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a3b8
lea eax, [ebp - 8]
mov edx, edi
call fcn.0040a3b8
mov eax, esi
test eax, eax
je 0x716666
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004271e8
test al, al
jne 0x7166aa
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x71697c
call fcn.004286c4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.0040a370
jmp 0x716917
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x7169dc
call fcn.004286c4
mov edx, dword [ebp - 0x24]
mov eax, dword [0x79b9d4]
call fcn.00407cc0
call fcn.00407dc0
call fcn.00406834
test ebx, ebx
jne 0x7166fb
mov dword [ebp - 0x14], 4
mov eax, dword [ebp + 8]
mov edx, 0x716a2c
call fcn.0040a370
jmp 0x716917
xor edx, edx
push ebp
push 0x716910
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], 0x11
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x716a74
call fcn.004286c4
mov edx, dword [ebp - 0x28]
mov eax, dword [0x79b9d4]
call fcn.00407cc0
call fcn.00407dc0
call fcn.00406834
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0071595c
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x71675d
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
add ebx, ebx
test ebx, ebx
jne 0x716783
mov dword [ebp - 0x14], 4
mov eax, dword [ebp + 8]
mov edx, 0x716a2c
call fcn.0040a370
call fcn.00409704
jmp 0x716917
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x716abc
call fcn.004286c4
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x79b9d4]
call fcn.00407cc0
call fcn.00407dc0
call fcn.00406834
push 0
mov eax, dword [ebp - 8]
call fcn.0040aec8
mov esi, eax
push esi
mov eax, dword [ebp - 4]
call fcn.0040aec8
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x716844
call sub.kernel32.dll_GetLastError_2
mov esi, eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0x11
lea edx, [ebp - 0x5c]
mov eax, esi
call fcn.0042be2c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea edx, [ebp - 0x58]
mov ecx, 2
mov eax, 0x716b5c
call fcn.004286c4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
call fcn.0040a370
call fcn.00409704
jmp 0x716917
push 0
push esi
call sub.kernel32.dll_BeginUpdateResourceW
mov edi, eax
call sub.kernel32.dll_GetLastError_2
mov esi, eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
test edi, edi
je 0x7168ed
push ebx
mov eax, dword [ebp - 0xc]
call fcn.0040aec8
push eax
xor edx, edx
xor eax, eax
call fcn.005db1b0
push eax
mov eax, dword [ebp + 0x10]
call fcn.0040aec8
push eax
push 0x716bd0
push edi
call sub.kernel32.dll_UpdateResourceW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.kernel32.dll_GetLastError_2
mov esi, eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
test bl, bl
je 0x7168cb
push 0
push edi
call sub.kernel32.dll_EndUpdateResourceW
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.kernel32.dll_GetLastError_2
mov esi, eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
test bl, bl
jne 0x716902
lea edx, [ebp - 0x60]
mov eax, esi
call fcn.0042be2c
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.0040a370
mov dword [ebp - 0x14], 6
jmp 0x716902
lea edx, [ebp - 0x64]
mov eax, esi
call fcn.0042be2c
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.0040a370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x716917
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x716963
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00409ff0
lea eax, [ebp - 0x40]
call fcn.00409f90
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00409ff0
lea eax, [ebp - 0x18]
call fcn.00409f90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409ff0
ret