Function at 0x5065e0
Capabilities:
Copy file
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x5065e8
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x506cef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov ecx, 4
mov edx, 2
mov eax, 0x506d04
call fcn.00404154
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 8]
mov ecx, 0x506d14
call fcn.00403f98
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x148e4]
call fcn.00403d64
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyA
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
push 1
push 0x506d1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
lea eax, [ebp - 8]
mov edx, 0x506d04
call fcn.00403d64
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov ecx, 0x506d14
call fcn.00403f98
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyA
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
push 1
push 0x506d1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
mov dl, 1
mov eax, dword [0x46cb40]
call fcn.0046cc40
mov esi, eax
mov edx, 0x80000000
mov eax, esi
call fcn.0046cce0
lea eax, [ebp - 0x30]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
lea eax, [ebp - 0x30]
mov edx, 0x506d28
call fcn.00403f54
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, esi
call fcn.0046cd48
test al, al
je 0x50672b
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, esi
call fcn.0046d110
mov eax, esi
call fcn.0046ccb0
mov eax, esi
call fcn.00402f80
push dword [ebx + 0x15560]
push dword [ebx + 0x148e4]
push 0x506d40
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0x10]
mov edx, 0x506d50
call fcn.0040405c
jb 0x506776
mov eax, dword [ebp - 0x14]
call fcn.00409718
test al, al
jne 0x506a8b
mov eax, dword [ebx + 0x1448c]
call fcn.00409718
test al, al
je 0x5067bb
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404110
push eax
mov eax, dword [ebx + 0x1448c]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x5067bb
lea eax, [ebp - 0x18]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404154
lea eax, [ebp - 0x34]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
mov ecx, 0x506d14
call fcn.00403f98
lea eax, [ebp - 0xc]
mov edx, 0x506d50
call fcn.00403d64
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyA
push 0x104
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
push 1
push 0x506d58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
lea edx, [ebp - 0x3c]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004097fc
push dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
push dword [ebp - 0x40]
push 0x506d68
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040400c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004f09f0
mov esi, eax
push dword [ebx + 0x15560]
lea eax, [ebp - 0x44]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
push dword [ebp - 0x44]
push 0x506d68
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040400c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004f09f0
cmp eax, esi
jge 0x5068d5
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404110
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebx + 0x15560]
push 0x506d7c
push 0x506d04
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040400c
lea edx, [ebp - 0x50]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.004097fc
push dword [ebp - 0x4c]
push 0x506d7c
push 0x506d04
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0x48]
call fcn.00409718
test al, al
je 0x50697f
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404110
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.004097fc
push dword [ebp - 0x58]
push 0x506d7c
push 0x506d04
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0x54]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x24]
mov ecx, 0x506d8c
mov edx, dword [ebx + 0x15560]
call fcn.00403f98
lea edx, [ebp - 0x64]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.004097fc
lea eax, [ebp - 0x60]
mov edx, 0x506d8c
call fcn.00403f54
mov eax, dword [ebp - 0x60]
call fcn.00409718
test al, al
je 0x506a05
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404110
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.004097fc
lea eax, [ebp - 0x68]
mov edx, 0x506d8c
call fcn.00403f54
mov eax, dword [ebp - 0x68]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x24]
mov ecx, 0x506da0
mov edx, dword [ebx + 0x1555c]
call fcn.00403f98
lea edx, [ebp - 0x74]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.004097fc
lea eax, [ebp - 0x70]
mov edx, 0x506da0
call fcn.00403f54
mov eax, dword [ebp - 0x70]
call fcn.00409718
test al, al
je 0x506a8b
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404110
push eax
lea edx, [ebp - 0x7c]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.004097fc
lea eax, [ebp - 0x78]
mov edx, 0x506da0
call fcn.00403f54
mov eax, dword [ebp - 0x78]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x80]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 8]
mov ecx, 0x506d14
call fcn.00403f98
lea eax, [ebp - 0xc]
mov ecx, 0x506db4
mov edx, dword [ebp - 0x14]
call fcn.00403f98
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyA
push 0x104
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
push 1
push 0x506db8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
lea eax, [ebp - 0x84]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 8]
mov ecx, 0x506d14
call fcn.00403f98
push dword [ebp - 0x14]
push 0x506dd4
lea edx, [ebp - 0x88]
mov eax, 1
call fcn.00409428
push dword [ebp - 0x88]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040400c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyA
push 0x104
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
push 1
push 0x506dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueA
lea eax, [ebp - 0x8c]
mov ecx, 0x506dec
mov edx, dword [ebx + 0x1555c]
call fcn.00403f98
mov eax, dword [ebp - 0x8c]
call fcn.00409764
lea eax, [ebp - 0x90]
mov ecx, 0x506e00
mov edx, dword [ebx + 0x1555c]
call fcn.00403f98
mov eax, dword [ebp - 0x90]
call fcn.00409764
push dword [ebx + 0x15560]
lea eax, [ebp - 0x98]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
push dword [ebp - 0x98]
push 0x506d68
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0x94]
call fcn.00409718
test al, al
jne 0x506cd1
push 0
push dword [ebx + 0x15560]
lea eax, [ebp - 0xa0]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
push dword [ebp - 0xa0]
push 0x506d68
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0x9c]
call fcn.00404110
push eax
lea edx, [ebp - 0xac]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.004097fc
push dword [ebp - 0xa8]
lea eax, [ebp - 0xb0]
push eax
mov eax, 0x506d04
mov ecx, 4
mov edx, 2
call fcn.00404154
push dword [ebp - 0xb0]
push 0x506d68
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.0040400c
mov eax, dword [ebp - 0xa4]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506cf6
lea eax, [ebp - 0xb0]
mov edx, 0x2b
call fcn.00403cf0
ret