Function at 0x51a84c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x51a854
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x51ac72
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51ac1a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.0052e1c4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov ecx, 0x51ac8c
call fcn.00404204
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
call fcn.00462490
dec eax
test eax, eax
jl 0x51ac06
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [0x567568]
mov eax, dword [eax]
call fcn.0045184c
xor ebx, ebx
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov edx, 3
call fcn.00461ff0
test al, al
je 0x51a8f7
mov bl, 1
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
call fcn.00461e84
test al, al
je 0x51a91a
mov bl, 1
test bl, bl
je 0x51abfc
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [0x569758]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
je 0x51abfc
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x24]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
mov edx, 0x51aca0
call fcn.004042c8
je 0x51abfc
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x28]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, 0x51acb0
call fcn.004042c8
je 0x51abfc
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x51acc4
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004f8728
mov eax, dword [ebp - 0x2c]
call fcn.00409b08
mov ebx, eax
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
mov ecx, 0x51acd0
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0x20]
sub ebx, 1
jb 0x51aa02
je 0x51ab35
jmp 0x51abfc
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x51acc4
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.004f8728
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x51acc4
mov edx, 6
mov eax, dword [ebp - 0xc]
call fcn.004f8728
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040a10c
mov eax, dword [ebp - 0x30]
call fcn.005365a0
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x14]
call fcn.0040a044
mov eax, dword [ebp - 0x34]
call fcn.004b5a98
test al, al
jne 0x51aa6b
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.0040a044
mov eax, dword [ebp - 0x38]
call fcn.004b5abc
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.0040437c
push eax
push dword [ebp - 0x10]
push 0x51ace8
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x3c]
call fcn.0040437c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x51ab09
push dword [ebp - 0x10]
push 0x51ace8
push dword [ebp - 0x18]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x40]
call fcn.00506800
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
mov ecx, 0x51acb0
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 8]
xor edx, edx
mov eax, dword [0x569758]
call fcn.00413f14
xor ecx, ecx
mov edx, esi
mov eax, dword [0x569758]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x51abfc
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
mov ecx, 0x51acf4
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x51abfc
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x51acc4
mov edx, 7
mov eax, dword [ebp - 0xc]
call fcn.004f8728
push dword [ebp - 0x10]
push 0x51ace8
push dword [ebp - 0x18]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x44]
call fcn.0051a434
test al, al
je 0x51abd5
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
mov ecx, 0x51acb0
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
push dword [ebp - 0x10]
push 0x51ace8
push dword [ebp - 0x18]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x48]
call fcn.00506800
inc dword [ebp - 8]
xor edx, edx
mov eax, dword [0x569758]
call fcn.00413f14
xor ecx, ecx
mov edx, esi
mov eax, dword [0x569758]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x51abfc
mov eax, dword [0x569750]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x20c]
mov edx, esi
call fcn.004624c0
mov eax, dword [eax + 8]
mov ecx, 0x51acf4
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc esi
dec dword [ebp - 0x1c]
jne 0x51a8c1
cmp dword [ebp - 8], 0
jle 0x51ac10
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ac28
lea eax, [ebp - 0x4c]
call fcn.0052e1c4
lea eax, [ebp - 0x4c]
mov edx, 0x51ad04
call fcn.004041c0
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x569758]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ac79
lea eax, [ebp - 0x4c]
mov edx, 0xc
call fcn.00403f5c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00403f5c
ret