Function at 0x10087b1
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
je 0x10087e9
xor eax, eax
jmp 0x1008d63
mov ecx, dword [ebp - 4]
push edi
push 9
xor edx, edx
lea eax, [ecx - 1]
pop edi
div edi
test edx, edx
jne 0x1008cf5
cmp ecx, edi
jb 0x1008cf5
cmp dword [ebp - 0x14], 7
je 0x1008828
cmp dword [ebp + 0x10], ebx
jne 0x1008cfa
push dword [ebp + 0xc]
push 0x1001fe8
push 0x1002298
jmp 0x1008d58
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push ecx
call edi
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x1008916
cmp dword [ebp + 0x10], ebx
je 0x1008903
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x1008d60
cmp dword [eax + 0x6c], ebx
jge 0x1008875
cmp dword [eax + 4], ebx
je 0x1008d60
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1008d60
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0xd0], 0xc00003f2
mov dword [ebp - 0x94], 5
mov dword [ebp - 0x90], eax
xor esi, esi
inc esi
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call sym.ISMSERV.EXE_DoLogEventAndTrace
jmp 0x1008d60
push dword [ebp - 4]
push 0x1002250
call sub.ntdll.dll_DbgPrint
pop ecx
jmp 0x1008cf2
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x100895c
cmp dword [ebp + 0x10], ebx
je 0x1008941
push 1
mov edx, eax
mov ecx, 0x364
call sym.ISMSERV.EXE_DoLogUnhandledError
jmp 0x100894e
push eax
push 0x100222c
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x1008cf2
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
dec dword [ebp - 4]
shl eax, 2
push eax
call edi
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1008a45
cmp dword [ebp + 0x10], ebx
je 0x1008a35
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x100894e
cmp dword [eax + 0x6c], ebx
jge 0x10089a2
cmp dword [eax + 4], ebx
je 0x100894e
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x100894e
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
shl eax, 2
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
xor esi, esi
inc esi
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd0], 0xc00003f2
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x94], 5
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call sym.ISMSERV.EXE_DoLogEventAndTrace
jmp 0x100894e
mov eax, dword [esi]
shl eax, 2
push eax
push 0x1002250
jmp 0x1008947
cmp dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jbe 0x1008b97
xor esi, esi
inc esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea edi, [ecx + eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cmp eax, dword [ecx]
jb 0x1008b43
cmp dword [ebp + 0x10], ebx
je 0x1008b30
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x1008b3b
cmp dword [eax + 0x6c], ebx
jge 0x1008aa1
cmp dword [eax + 4], ebx
je 0x1008b3b
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1008b3b
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd0], 0x8000048c
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x94], 5
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call sym.ISMSERV.EXE_DoLogEventAndTrace
jmp 0x1008b3b
push 0x10021e8
call sub.ntdll.dll_DbgPrint
pop ecx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x1008b84
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax + edi]
push eax
call dword [sym.imp.msvcrt.dll_isxdigit]
test eax, eax
pop ecx
je 0x1008bae
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jb 0x1008b46
cmp byte [edi + 8], bl
jne 0x1008c96
push 0x10
push ebx
push edi
call dword [sym.imp.msvcrt.dll_strtoul]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
inc dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
add dword [ebp + 8], 9
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x1008a57
mov esi, dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
pop ecx
jmp 0x1008d62
push dword [ebp - 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
cmp dword [ebp + 0x10], ebx
pop ecx
je 0x1008c8f
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x1008ced
cmp dword [eax + 0x6c], ebx
jge 0x1008bf2
cmp dword [eax + 4], ebx
je 0x1008ced
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1008ced
mov eax, dword [0x100a1e4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xcc], eax
push 5
pop eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0x88]
push eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd0], 0xc0000487
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xd4], 2
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call sym.ISMSERV.EXE_DoLogEventAndTrace
jmp 0x1008ced
push 0x10021b0
jmp 0x1008ce7
push dword [ebp - 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
cmp dword [ebp + 0x10], ebx
pop ecx
je 0x1008ce2
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x1008ced
cmp dword [eax + 0x6c], ebx
jge 0x1008cca
cmp dword [eax + 4], ebx
je 0x1008ced
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1008ced
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x88], 8
jmp 0x1008c04
push 0x1002174
call sub.ntdll.dll_DbgPrint
pop ecx
push dword [ebp - 0x10]
call edi
pop ecx
jmp 0x1008d60
cmp dword [ebp + 0x10], ebx
je 0x1008d4b
mov eax, dword [0x100a1e4]
cmp eax, ebx
je 0x1008d60
cmp dword [eax + 0x6c], ebx
jge 0x1008d1d
cmp dword [eax + 4], ebx
je 0x1008d60
push ebx
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1008d60
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], 0xc0000488
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], 0x1002130
jmp 0x10088ad
push dword [ebp + 0xc]
push 0x1001fe8
push 0x1002104
call sub.ntdll.dll_DbgPrint
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10