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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070695
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10087040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x10088de8]
mov edx, dword [eax + edx*4]
mov eax, dword [0x1008a31c]
cmp eax, dword [edx + 4]
jle 0x10024943
push 0x1008a31c
call fcn.10042890
add esp, 4
cmp dword [0x1008a31c], 0xffffffff
jne 0x10024943
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10024bee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x10072b50
mov dword [0x1008a320], eax
call fcn.1004245d
add esp, 4
push 0x1008a31c
call fcn.1004283f
add esp, 4
mov eax, dword [0x1008a320]
cmp dword [eax - 0xc], 0
jne 0x10024bc4
mov eax, dword [0x10089eac]
test al, 1
jne 0x10024986
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
mov ecx, dword [0x10089e60]
lea ecx, [ecx - 0x10]
call fcn.10005bd0
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
push 0x1007c464
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10027210
add esp, 8
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [eax]
mov esi, dword [0x1008a320]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10024a10
cmp dword [esi + 0xc], 0
jl 0x10024a02
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10024a02
call fcn.10005bd0
mov dword [ebp - 0x10], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100249f8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [0x1008a320], eax
jmp 0x10024a10
push dword [edx - 0xc]
mov ecx, 0x1008a320
push edx
call fcn.10005aa0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10024a2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1008a320]
cmp dword [eax - 0xc], 0
jne 0x10024ba8
lea ecx, [ebp - 0x10]
call fcn.10028200
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov esi, dword [0x1008a320]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10024aa0
cmp dword [esi + 0xc], 0
jl 0x10024a92
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10024a92
call fcn.10005bd0
mov dword [ebp - 0x14], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10024a88
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [0x1008a320], eax
jmp 0x10024aa0
push dword [edx - 0xc]
mov ecx, 0x1008a320
push edx
call fcn.10005aa0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10024abe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1008a320]
mov esi, eax
mov dword [ebp - 0x14], eax
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024ad0
sub esi, ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x10024b19
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x10024b4b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push 0
push 0x1007c464
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x10024b47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10024ba5
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10024bf8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push 0x1007cc48
push eax
call fcn.10004ea0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10024ba8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10024ba8
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10024bc4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x1008a320]
lea ecx, [ecx - 0x10]
call fcn.10005bd0
mov ecx, dword [ebp - 0x18]
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.100013a0
push 0x80004005
call fcn.100013a0
int3