Function at 0x1002f820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x100a1040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100a4098]
test esi, esi
je 0x1002f85c
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x1002f8a2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002f8a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002f8a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1002facd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x10094e2c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.10007ac0
test al, al
jne 0x1002f8e0
push 9
push 0x10094e2c
lea ecx, [ebp - 0x10]
call fcn.10007d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
push eax
call fcn.100113c0
lea ecx, [ebp - 0x4c]
call fcn.1002f600
mov byte [ebp - 4], 5
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1002fad7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x1008f490
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10007ac0
test al, al
jne 0x1002f93d
push 0
push 0x1008f490
lea ecx, [ebp - 0x14]
call fcn.10007d40
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002f95b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
call fcn.100452e0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1002fa54
cmp dword [esi - 4], 1
jle 0x1002f994
push eax
lea ecx, [ebp - 0x14]
call fcn.100116b0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push ecx
inc eax
lea ecx, [ebp - 0x18]
push eax
mov edx, esi
call fcn.10032c30
mov eax, dword [ebp - 0x18]
add esp, 8
mov ebx, eax
lea edx, [ebx + 2]
nop dword [eax]
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x1002f9b0
sub ebx, edx
mov edx, SysReAllocString
sar ebx, 1
mov dword [ebp - 0x20], edx
test edi, edi
je 0x1002f9fa
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002fa2b
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
lea ecx, [ebx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x10094e40
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp ecx, 0x80000001
je 0x1002fa2b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
sete cl
or ebx, 0xffffffff
mov dword [ebp - 0x20], ecx
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fa5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002fa5b
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002fa76
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.1002f710
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1002fa99
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002fab8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001410
push 0x80004005
call fcn.10001410
int3