Function at 0x10042500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x440], eax
xor bl, bl
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 0x14]
push 0x410
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x43c]
push 0
push eax
mov dword [ebp - 0x448], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44c], 1
mov dword [ebp - 0x458], 0x410
test edi, edi
je 0x10042579
cmp dword [ebp + 0x1c], 0
je 0x10042579
xor eax, eax
mov word [edi], ax
movzx eax, byte [ebp + 8]
xor eax, 1
shl eax, 8
add eax, 0x20119
mov dword [ebp - 0x450], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100425a4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x100425d1
lea ecx, [ebp - 0x448]
push ecx
push dword [ebp - 0x450]
push 0
push dword [ebp - 0x454]
push dword [ebp - 0x440]
call eax
jmp 0x100425f2
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x450]
push 0
push dword [ebp - 0x454]
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x440], eax
test esi, esi
je 0x10042603
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x440], 0
jne 0x10042744
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x440], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10042632
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
test eax, eax
je 0x10042667
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x44c]
push ecx
push 0
push dword [ebp - 0x444]
push dword [ebp - 0x440]
call eax
jmp 0x10042690
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
push dword [ebp - 0x444]
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x444], eax
test esi, esi
je 0x100426a1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x444]
cmp eax, 0xea
jne 0x100426b2
mov bl, 1
jmp 0x10042704
test eax, eax
jne 0x10042704
mov bl, 1
test edi, edi
je 0x10042704
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x10042704
mov eax, dword [ebp - 0x44c]
cmp eax, 1
je 0x100426f6
cmp eax, 2
je 0x100426f6
cmp eax, 4
jne 0x10042704
push dword [ebp - 0x43c]
lea eax, [ebp - 0x2c]
push 0x102054a8
push 0x14
push eax
call fcn.1000aa70
add esp, 0x10
lea eax, [ebp - 0x2c]
jmp 0x100426fc
lea eax, [ebp - 0x43c]
push eax
push esi
push edi
call fcn.10026b00
mov edi, dword [ebp - 0x448]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10042720
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x10042733
call eax
jmp 0x10042739
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10042744
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret