Function at 0x5165a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x5165a8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x516c56
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040ae80
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x516c6c
call fcn.0040bafc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x516c84
call fcn.00409e28
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00404700
mov eax, dword [ebp - 0x20]
mov edx, 0x516c94
call fcn.004045ec
jne 0x516642
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404740
mov eax, dword [ebp - 4]
call fcn.00409298
test al, al
je 0x516c2b
push dword [ebp - 4]
push 0x516c94
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x24]
call fcn.00409298
test al, al
jne 0x516696
push dword [ebp - 4]
push 0x516c94
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x28]
call fcn.00409718
push dword [ebp - 4]
push 0x516c94
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00404700
mov eax, dword [ebp - 0x2c]
mov edx, 0x516c94
call fcn.004045ec
jne 0x5166ef
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404740
lea eax, [ebp - 8]
mov edx, 0x516c94
call fcn.004044a8
lea eax, [ebp - 0x30]
mov ecx, 0x516ca0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x30]
call fcn.00409288
test al, al
je 0x51675b
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516ca0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x34]
call fcn.004046a0
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x516ca0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x38]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x3c]
mov ecx, 0x516cc0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x3c]
call fcn.00409288
test al, al
je 0x5167ba
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516cc0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x40]
call fcn.004046a0
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x516cc0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x44]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x48]
mov ecx, 0x516ccc
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x48]
call fcn.00409288
test al, al
je 0x516819
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516ccc
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x4c]
call fcn.004046a0
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x516ccc
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x50]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x54]
mov ecx, 0x516ce0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x54]
call fcn.00409288
test al, al
je 0x516878
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516ce0
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x58]
call fcn.004046a0
push eax
lea eax, [ebp - 0x5c]
mov ecx, 0x516ce0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x5c]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x60]
mov ecx, 0x516cf4
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x60]
call fcn.00409288
test al, al
je 0x5168d7
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516cf4
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x64]
call fcn.004046a0
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x516cf4
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x68]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x6c]
mov ecx, 0x516d04
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x6c]
call fcn.00409288
test al, al
je 0x516936
push 0
push dword [ebp - 8]
push 0x516cb0
push 0x516d04
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x70]
call fcn.004046a0
push eax
lea eax, [ebp - 0x74]
mov ecx, 0x516d04
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x74]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0xc]
call fcn.0053bf08
mov eax, dword [ebp - 0xc]
mov edx, 0x516d18
call fcn.004045ec
je 0x516c2b
mov eax, dword [ebp - 0xc]
mov edx, 0x516d28
call fcn.004045ec
je 0x516c2b
mov eax, dword [ebp - 0xc]
mov edx, 0x516d38
call fcn.004045ec
je 0x516c2b
mov eax, dword [ebp - 0xc]
mov edx, 0x516d48
call fcn.004045ec
je 0x516c2b
xor eax, eax
push ebp
push 0x5169ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x78]
mov ecx, 0x516ca0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x78]
call fcn.004093d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5169c4
lea eax, [ebp - 0x7c]
mov edx, 0x516d50
call fcn.004043d8
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x516ca0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0x80]
mov eax, 3
pop edx
call fcn.005163a8
xor eax, eax
push ebp
push 0x516a29
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x84]
mov ecx, 0x516cc0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x84]
call fcn.004093d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516a33
lea eax, [ebp - 0x88]
mov edx, 0x516d5c
call fcn.004043d8
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
mov ecx, 0x516cc0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0x8c]
mov eax, 2
pop edx
call fcn.005163a8
xor eax, eax
push ebp
push 0x516aa4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x90]
mov ecx, 0x516ccc
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x90]
call fcn.004093d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516aae
lea eax, [ebp - 0x94]
mov edx, 0x516d60
call fcn.004043d8
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov ecx, 0x516ccc
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0x98]
mov eax, 2
pop edx
call fcn.005163a8
xor eax, eax
push ebp
push 0x516b1f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x9c]
mov ecx, 0x516ce0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x9c]
call fcn.004093d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516b29
lea eax, [ebp - 0xa0]
mov edx, 0x516d6c
call fcn.004043d8
mov eax, dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
mov ecx, 0x516ce0
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0xa4]
mov eax, 2
pop edx
call fcn.005163a8
xor eax, eax
push ebp
push 0x516b9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa8]
mov ecx, 0x516cf4
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0xa8]
call fcn.004093d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516ba4
lea eax, [ebp - 0xac]
mov edx, 0x516d78
call fcn.004043d8
mov eax, dword [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
mov ecx, 0x516cf4
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0xb0]
mov eax, 2
pop edx
call fcn.005163a8
call fcn.004a72f4
test al, al
je 0x516c23
lea eax, [ebp - 0xb4]
mov edx, 0x516d80
call fcn.004043d8
mov eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov ecx, 0x516d04
mov edx, dword [ebp - 8]
call fcn.004044ec
mov ecx, dword [ebp - 0xb8]
mov eax, 2
pop edx
call fcn.005163a8
mov eax, dword [ebp - 4]
call fcn.0051511c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516c5d
lea eax, [ebp - 0xb8]
mov edx, 0x27
call fcn.00404204
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404204
ret