Function at 0x766ae4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x766aec
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x766e2d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0x80000001
jne 0x766b1d
lea eax, [ebp - 4]
mov edx, 0x766e48
call fcn.00409f38
cmp dword [ebp - 0x14], 0x80000002
jne 0x766b33
lea eax, [ebp - 4]
mov edx, 0x766e64
call fcn.00409f38
mov dl, 1
mov eax, dword [0x477334]
call fcn.004a1dec
mov ebx, eax
mov ecx, ebx
mov edx, 0x766e80
mov eax, dword [ebp - 0x14]
call fcn.005b825c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x766cf5
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x766cf5
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
mov eax, dword [0x7c84f4]
mov eax, dword [eax]
call fcn.005a9f84
mov eax, dword [0x7c7c0c]
cmp byte [eax], 0
je 0x766ceb
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x766ba7
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x766ceb
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, 0x766e80
mov eax, dword [ebp - 0x14]
call fcn.005b8330
mov eax, dword [ebp - 8]
test eax, eax
je 0x766bdb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x766c33
push dword [ebp - 4]
push 0x766e80
push 0x766ee8
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a930
mov eax, dword [0x7c8ab8]
inc dword [eax]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, 0x766ef8
call fcn.0040a8a8
mov edx, dword [ebp - 0x28]
mov eax, dword [0x7c8600]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x766ceb
push dword [ebp - 4]
push 0x766e80
push 0x766ee8
lea ecx, [ebp - 0x2c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a930
mov eax, dword [0x7c7f94]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jg 0x766ceb
mov eax, dword [0x7c80dc]
cmp byte [eax], 0
je 0x766c8a
mov eax, dword [0x7c801c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jg 0x766ceb
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.00752a28
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.00409f38
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00424a54
test al, al
jne 0x766ceb
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00425158
mov eax, dword [ebp - 0xc]
call fcn.007520d4
test al, al
jne 0x766ceb
mov eax, dword [0x7c8ab8]
inc dword [eax]
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, 0x766ef8
call fcn.0040a8a8
mov edx, dword [ebp - 0x34]
mov eax, dword [0x7c8600]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec dword [ebp - 0x18]
jne 0x766b75
mov ecx, ebx
mov edx, 0x766f10
mov eax, dword [ebp - 0x14]
call fcn.005b825c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x766dfc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x766dfc
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
mov eax, dword [0x7c84f4]
mov eax, dword [eax]
call fcn.005a9f84
mov eax, dword [0x7c7c0c]
cmp byte [eax], 0
je 0x766df2
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x766d5b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x766df2
lea ecx, [ebp - 0x3c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x766e80
mov eax, dword [ebp - 0x14]
call fcn.005b8bac
test al, al
jne 0x766df2
lea ecx, [ebp - 0x40]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x40]
mov edx, 0x766fac
mov eax, dword [ebp - 0x14]
call fcn.005b8bac
test al, al
jne 0x766df2
push dword [ebp - 4]
push 0x76701c
push 0x7670b0
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x44]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a930
mov eax, dword [0x7c8ab8]
inc dword [eax]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov edx, 0x766ef8
call fcn.0040a8a8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x7c8600]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec dword [ebp - 0x18]
jne 0x766d29
mov eax, ebx
call fcn.00407e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x766e34
lea eax, [ebp - 0x48]
mov edx, 0xc
call fcn.00409b60
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409b60
pop eax
jmp eax