Function at 0x510acc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xbd
push 0
push 0
dec ecx
jne 0x510ad4
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040436c
lea eax, [ebp - 0x180]
mov edx, dword [0x408a3c]
call fcn.00404948
xor eax, eax
push ebp
push 0x510ef8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x4783fc]
call fcn.004784fc
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebp
push 0x510e95
push dword fs:[ebx]
mov dword fs:[ebx], esp
mov eax, dword [ebp - 8]
mov edx, 0x510f0c
call fcn.004042c8
jne 0x510b5e
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0047859c
lea eax, [ebp - 0x10]
mov edx, 0x510f18
call fcn.00403fd0
jmp 0x510b78
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0047859c
lea eax, [ebp - 0x10]
mov edx, 0x510f18
call fcn.00403fd0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00478604
test al, al
je 0x510e7f
mov eax, dword [ebp - 8]
mov edx, 0x510f0c
call fcn.004042c8
jne 0x510bae
lea ecx, [ebp - 0x14]
mov edx, 0x510f64
mov eax, dword [ebp - 0xc]
call fcn.00478b80
jmp 0x510bbe
lea ecx, [ebp - 0x14]
mov edx, 0x510f74
mov eax, dword [ebp - 0xc]
call fcn.00478b80
cmp dword [ebp - 0x14], 0
je 0x510e7f
lea eax, [ebp - 0x5d0]
mov ecx, 0x510f8c
mov edx, dword [ebp - 0x14]
call fcn.00404204
mov eax, dword [ebp - 0x5d0]
lea ecx, [ebp - 0x180]
mov edx, 0x3f
call fcn.00409e64
test eax, eax
jne 0x510e7f
mov eax, dword [ebp - 0x174]
mov edx, 0x510f98
call fcn.004042c8
je 0x510e61
mov eax, dword [ebp - 0x174]
mov edx, 0x510fa4
call fcn.004042c8
je 0x510e61
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20c]
call fcn.00462450
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x18]
call fcn.00461f24
lea edx, [ebp - 0x1c]
mov eax, dword [0x56703c]
call fcn.0047a00c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, 0x510fa8
call fcn.00406428
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, 0x510fb8
call fcn.00406428
lea eax, [ebp - 0x5cc]
xor ecx, ecx
mov edx, 0x104
call fcn.00402de0
mov eax, dword [ebp - 0x14]
call fcn.0040437c
mov edx, eax
lea eax, [ebp - 0x3c4]
call fcn.0040a478
mov edx, 0x510fc8
lea eax, [ebp - 0x3c4]
call fcn.0040a518
mov eax, dword [ebp - 0x174]
call fcn.0040437c
mov edx, eax
lea eax, [ebp - 0x3c4]
call fcn.0040a518
lea eax, [ebp - 0x3c4]
call fcn.0040a410
mov ecx, eax
test ecx, ecx
jle 0x510ceb
lea eax, [ebp - 0x3c4]
lea edx, [ebp - 0x5cc]
xor ebx, ebx
mov bl, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x510cdd
push 0
lea eax, [ebp - 0x5cc]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test eax, eax
jne 0x510d31
lea eax, [ebp - 0x3c4]
mov cl, 0x20
mov edx, 0x104
call fcn.00402de0
push 2
lea eax, [ebp - 0x2c0]
push eax
push 0x104
lea eax, [ebp - 0x3c4]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0x5d8]
lea edx, [ebp - 0x3c4]
mov ecx, 0x104
call fcn.00404020
mov eax, dword [ebp - 0x5d8]
lea edx, [ebp - 0x5d4]
call fcn.004098e8
cmp dword [ebp - 0x5d4], 0
je 0x510d9b
lea eax, [ebp - 0x5e0]
lea edx, [ebp - 0x3c4]
mov ecx, 0x104
call fcn.00404020
mov eax, dword [ebp - 0x5e0]
lea edx, [ebp - 0x5dc]
call fcn.004098e8
mov edx, dword [ebp - 0x5dc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x510dca
push dword [ebp - 0x14]
push 0x510fd4
push dword [ebp - 0x174]
lea eax, [ebp - 0x5e4]
mov edx, 3
call fcn.00404278
mov edx, dword [ebp - 0x5e4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push dword [ebp - 0x14]
push 0x510fd4
push dword [ebp - 0x174]
lea eax, [ebp - 0x5e8]
mov edx, 3
call fcn.00404278
mov edx, dword [ebp - 0x5e8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x5ec]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x5ec]
call fcn.005101e0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0043f8dc
inc eax
je 0x510e55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0043f974
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004620c8
jmp 0x510e61
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004620c8
lea eax, [ebp - 0x180]
call fcn.00409eb4
test eax, eax
je 0x510bf9
lea eax, [ebp - 0x180]
call fcn.00409ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510e9c
mov eax, dword [ebp - 0xc]
call fcn.00403198
ret