Function at 0x51baf8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x51bb00
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51c125
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404788
xor eax, eax
push ebp
push 0x51c0f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48e4c4]
call fcn.0048e630
mov dword [ebp - 0xc], eax
sub bl, 1
jb 0x51bc60
je 0x51bbb8
dec bl
je 0x51bf76
dec bl
jne 0x51c0e0
lea eax, [ebp - 4]
call fcn.00404788
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c13c
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bb9f
xor ecx, ecx
mov edx, 0x51c13c
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
mov edx, 0x51c188
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
cmp dword [ebp - 4], 0
je 0x51c0e0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004047dc
jmp 0x51c0e0
lea eax, [ebp - 4]
call fcn.00404788
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c1a0
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bc1e
xor ecx, ecx
mov edx, 0x51c1a0
mov eax, dword [ebp - 0xc]
call fcn.0048e774
test al, al
je 0x51bc03
lea ecx, [ebp - 4]
mov edx, 0x51c1e4
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
jmp 0x51bc37
push 0x51c1f8
mov ecx, 0x51c23c
mov edx, 0x51c24c
mov eax, dword [0x53645c]
mov ebx, dword [eax]
call dword [ebx + 4]
jmp 0x51bc37
push 0x51c1f8
mov ecx, 0x51c260
mov edx, 0x51c24c
mov eax, dword [0x53645c]
mov ebx, dword [eax]
call dword [ebx + 4]
cmp dword [ebp - 4], 0
je 0x51c0e0
mov eax, dword [ebp - 4]
call fcn.004658fc
test al, al
je 0x51c0e0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004047dc
jmp 0x51c0e0
lea eax, [ebp - 4]
call fcn.00404788
mov edx, 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c274
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bca2
xor ecx, ecx
mov edx, 0x51c274
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
cmp dword [ebp - 4], 0
je 0x51bd31
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0048ce40
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00404820
mov edx, dword [ebp - 4]
mov eax, 0x51c29c
call fcn.00404da0
mov ebx, eax
test ebx, ebx
jle 0x51bce4
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00404cfc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048ce40
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404820
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
mov eax, dword [ebp - 0x18]
mov edx, 0x51c29c
call fcn.00404ba4
jne 0x51bd31
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404cfc
lea ecx, [ebp - 0x1c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.004fe2e8
mov eax, dword [ebp - 0x1c]
mov edx, 0x51c2a8
call fcn.00464ef0
test al, al
je 0x51bd5a
lea eax, [ebp - 4]
call fcn.00404788
cmp dword [ebp - 4], 0
jne 0x51be68
mov dl, 1
mov eax, dword [0x48e4c4]
call fcn.0048e630
mov dword [ebp - 0xc], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c2b8
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bdb0
xor ecx, ecx
mov edx, 0x51c2b8
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
mov edx, 0x51c2d8
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
lea ecx, [ebp - 0x20]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.004fe2e8
mov eax, dword [ebp - 0x20]
mov edx, 0x51c2a8
call fcn.00464ef0
test al, al
je 0x51bdd9
lea eax, [ebp - 4]
call fcn.00404788
cmp dword [ebp - 4], 0
je 0x51be68
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0048ce40
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00404820
mov edx, dword [ebp - 4]
mov eax, 0x51c29c
call fcn.00404da0
mov ebx, eax
test ebx, ebx
jle 0x51be1b
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00404cfc
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0048ce40
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.00404820
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
mov eax, dword [ebp - 0x2c]
mov edx, 0x51c29c
call fcn.00404ba4
jne 0x51be68
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404cfc
lea ecx, [ebp - 0x30]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.004fe2e8
mov eax, dword [ebp - 0x30]
mov edx, 0x51c2a8
call fcn.00464ef0
test al, al
je 0x51be91
lea eax, [ebp - 4]
call fcn.00404788
cmp dword [ebp - 4], 0
jne 0x51bf4d
mov dl, 1
mov eax, dword [0x48e4c4]
call fcn.0048e630
mov dword [ebp - 0xc], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c304
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bee7
xor ecx, ecx
mov edx, 0x51c304
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
mov edx, 0x51c1e4
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
cmp dword [ebp - 4], 0
je 0x51bf24
mov edx, dword [ebp - 4]
mov eax, 0x51c350
call fcn.00404da0
mov ebx, eax
test ebx, ebx
jle 0x51bf24
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
mov ecx, 0x51c360
call fcn.00404aa4
lea ecx, [ebp - 0x38]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.004fe2e8
mov eax, dword [ebp - 0x38]
mov edx, 0x51c2a8
call fcn.00464ef0
test al, al
je 0x51bf4d
lea eax, [ebp - 4]
call fcn.00404788
cmp dword [ebp - 4], 0
je 0x51c0e0
mov eax, dword [ebp - 4]
call fcn.004658fc
test al, al
je 0x51c0e0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004047dc
jmp 0x51c0e0
lea eax, [ebp - 4]
call fcn.00404788
lea eax, [ebp - 8]
mov edx, 0x51c370
call fcn.00404820
mov eax, dword [ebp - 8]
call fcn.004658fc
test al, al
je 0x51bfa2
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404820
cmp dword [ebp - 4], 0
jne 0x51c010
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c3b8
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51bfe5
xor ecx, ecx
mov edx, 0x51c400
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
mov edx, 0x51c42c
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
mov eax, dword [ebp - 4]
call fcn.0051b014
mov eax, dword [ebp - 4]
call fcn.00404a58
mov edx, eax
sub edx, 2
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0048cee4
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00404820
cmp dword [ebp - 4], 0
jne 0x51c0c4
mov edx, 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0048e70c
mov edx, 0x51c400
mov eax, dword [ebp - 0xc]
call fcn.0048ee20
test al, al
je 0x51c054
xor ecx, ecx
mov edx, 0x51c400
mov eax, dword [ebp - 0xc]
call fcn.0048e774
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0048ec24
mov eax, dword [ebp - 4]
call fcn.0051b014
cmp dword [ebp - 4], 0
je 0x51c0c4
lea eax, [ebp - 0x40]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
mov eax, dword [ebp - 0x40]
mov edx, 0x51c29c
call fcn.00404ba4
jne 0x51c0bc
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404cfc
mov edx, dword [ebp - 4]
mov eax, 0x51c29c
call fcn.00404da0
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
mov eax, dword [ebp - 4]
call fcn.0051b014
cmp dword [ebp - 4], 0
je 0x51c0e0
mov eax, dword [ebp - 4]
call fcn.004658fc
test al, al
je 0x51c0e0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004047dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c0fd
mov eax, dword [ebp - 0xc]
call fcn.004038f0
ret