Function at 0x10024500
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d728
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1003fc88]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, 1
mov dword [ebp - 0x18], ebx
cmp eax, ebx
jne 0x1002468d
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x100407c8
push edi
push 0x10005b6c
push 0x10005b84
call dword [sym.imp.MSDATL3.dll_long_int___cdecl_LoadResourceDLL_unsigned_short_int___unsigned_short_int___void___void___]
add esp, 0x10
test eax, eax
jns 0x10024578
xor eax, eax
jmp 0x100247a0
push 0
push 0x100407ac
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10024571
push 0
push 0x100407a8
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10024571
push 0
push 0x100407a4
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10024571
push 0
push 0x100407a0
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10024571
xor esi, esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 1
push esi
push 0x10005c88
push SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10024632
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
push ecx
push 0x100407c4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push ecx
push esi
push 0x10005c78
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
lea ecx, [ebp - 0x1c]
sbb eax, eax
not eax
and dword [0x100407c4], eax
call fcn.100344d0
mov esi, dword [ebp - 0x1c]
jmp 0x1002463c
mov dword [0x100407c4], 0
push edi
mov dword [0x10040350], 0x28
mov dword [0x10040378], 0
call fcn.10032c40
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push 0x14
mov dword [0x100407b4], eax
call dword [sym.imp.MSDART.DLL_FXMemAttach]
add esp, 4
test esi, esi
je 0x1002479e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002479e
test eax, eax
jne 0x1002479e
mov dword [ebp - 4], 3
mov edi, dword [0x100407c0]
test edi, edi
je 0x100246c2
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10041308]
mov ecx, edi
call esi
mov dword [0x100407c0], 0
mov esi, dword [0x100407b0]
test esi, esi
je 0x100246f3
mov eax, dword [esi]
test eax, eax
je 0x100246d9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push dword [0x100407b4]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [0x100407b0], 0
mov edi, dword [0x10040360]
test edi, edi
je 0x10024733
lea ecx, [ecx]
cmp dword [edi], 0
je 0x10024733
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1002471c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10041308]
call esi
mov dword [edi + 0xc], 0
add edi, 0x18
jmp 0x10024700
push 0x1004036c
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x10040370
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x10040374
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
mov eax, dword [0x10040368]
add esp, 0xc
test eax, eax
je 0x10024767
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0x100407ac
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x100407a8
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x100407a4
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x100407a0
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x11
call dword [sym.imp.MSDART.DLL_FXMemDetach]
add esp, 0x14
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003cb60
mov esp, ebp
pop ebp
ret 0xc