Function at 0x42d2cb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
mov esi, 0x5211e0
push eax
push esi
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call sym.stub.exe_php_strtok_r
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x42d57e
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sym.stub.exe_php_strtok_r
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sym.stub.exe_php_strtok_r
add esp, 0x18
mov dword [ebp - 0x20], eax
push dword [ebp + 0x10]
push dword [0x54de2c]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call sym.stub.exe_php_char_to_OLECHAR
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x42d408
xor eax, eax
cmp ebx, edi
mov dword [ebp + 8], 1
je 0x42d375
cmp dword [ebp - 0x20], edi
je 0x42d375
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push ebx
call esi
push dword [ebp - 0x20]
mov dword [ebp + 8], eax
call esi
mov esi, dword [ebp - 0x2c]
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
test eax, eax
jge 0x42d3f9
cmp ebx, edi
je 0x42d395
cmp dword [ebp - 0x20], edi
jne 0x42d3f9
lea eax, [ebp + 8]
push eax
push 0x502de8
push 0x15
lea eax, [ebp - 0x40]
push edi
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x42d3ba
push esi
call sym.stub.exe__efree
jmp 0x42d57d
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x10]
push edx
push edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
test eax, eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
jl 0x42d3f1
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
jge 0x42d3f6
call dword [ecx + 8]
jmp 0x42d3af
call dword [ecx + 8]
push esi
call sym.stub.exe__efree
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jge 0x42d3f9
push esi
call sym.stub.exe__efree
pop ecx
lea eax, [ebp - 0x10]
push eax
push str.TypeLib
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42d57e
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x42d466
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d57e
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
call sym.stub.exe__emalloc
push dword [ebp + 8]
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sym.stub.exe__emalloc
add esp, 0xc
cmp dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
jbe 0x42d56c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x42d55d
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42d55d
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push edi
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x42d558
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
jbe 0x42d558
lea eax, [ebp - 0x54]
push 0x14
push eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x42d54d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
inc eax
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x42d54d
push dword [ebp + 8]
test byte [ebp + 0xc], 1
push dword [ebp - 0x14]
je 0x42d53c
call sub.MSVCRT.dll_strcmp
jmp 0x42d542
call dword [sym.imp.MSVCRT.dll__stricmp]
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
cmp eax, edi
jne 0x42d585
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jb 0x42d4f2
push dword [ebp - 4]
call esi
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jb 0x42d4a1
push dword [ebp - 8]
call sym.stub.exe__efree
push dword [ebp - 0x14]
call sym.stub.exe__efree
pop ecx
pop ecx
xor eax, eax
jmp 0x42d403
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x14]
call sym.stub.exe__efree
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push 0x523720
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x14
cmp eax, 2
je 0x42d5c0
mov dword [ebp - 0x20], 1
mov dword [ebp + 8], edi
push dword [ebp - 8]
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_strlen
lea eax, [esi + eax + 0x14]
push eax
call sym.stub.exe__emalloc
push dword [ebp + 8]
mov esi, eax
push dword [ebp - 0x20]
push dword [ebp - 8]
push str._s__d__d
push esi
call sym.stub.exe_php_sprintf
push dword [ebp - 8]
call sym.stub.exe__efree
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0042d2cb
push esi
mov dword [ebp - 0xc], eax
call sym.stub.exe__efree
add esp, 0x34
jmp 0x42d400