Function at 0x1002ef60
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082e8d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 dword [ebp - 0x24], ecx
mov eax, dword [0x100a4584]
test al, 1
jne 0x1002efc5
or eax, 1
mov dword [0x100a4584], eax
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1002f280
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x10086330
mov dword [0x100a4588], eax
call fcn.10053bdc
add esp, 4
mov eax, dword [0x100a4588]
cmp dword [eax - 0xc], 0
jne 0x1002f256
mov esi, dword [0x100a4098]
test esi, esi
je 0x1002efe8
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x1002f02e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002f02e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1002f02e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x10093164
push dword [ebp - 0x10]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.100437f0
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov esi, dword [0x100a4588]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1002f0a1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1002f093
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1002f093
call fcn.10007880
mov dword [ebp - 0x18], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1002f089
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [0x100a4588], eax
jmp 0x1002f0a1
push dword [edx - 0xc]
mov ecx, 0x100a4588
push edx
call fcn.10007d40
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002f0bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100a4588]
cmp dword [eax - 0xc], 0
jne 0x1002f237
lea ecx, [ebp - 0x14]
call fcn.10044720
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [0x100a4588]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1002f131
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1002f123
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1002f123
call fcn.10007880
mov dword [ebp - 0x18], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1002f119
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [0x100a4588], eax
jmp 0x1002f131
push dword [edx - 0xc]
mov ecx, 0x100a4588
push edx
call fcn.10007d40
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002f14f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100a4588]
mov esi, eax
mov dword [ebp - 0x1c], eax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002f160
mov eax, dword [ebp - 0x10]
sub esi, ecx
sar esi, 1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x1002f1b0
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1002f1e2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x1c]
push 1
push 0
push 0x10093164
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x1002f1de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1002f237
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1002f28a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push 0x10094e10
push eax
call fcn.10007310
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002f237
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1002f256
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x100a4588]
lea ecx, [ecx - 0x10]
call fcn.10007880
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
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