Function at 0x1035e290
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, edx
xor edx, edx
push edx
push edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push edx
push edx
push edx
mov edi, edx
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1035e616
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x1c], edi
je 0x1035e4d0
mov eax, dword [esp + 0x34]
inc eax
push eax
call sym.php5.dll__emalloc
mov ebx, eax
mov eax, dword [esp + 0x3c]
pop ecx
inc eax
push eax
mov dword [esp + 0x48], ebx
call sym.php5.dll__emalloc
pop ecx
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x1c], edi
jbe 0x1035e4b2
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
push 0
lea eax, [esp + 0x50]
push eax
push ebx
push ebp
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1035e3e6
cmp dword [esp + 0x3c], 1
je 0x1035e363
cmp dword [esp + 0x3c], 2
jne 0x1035e3e6
test edi, edi
jne 0x1035e38c
push 0x28
call dword [sym.imp.MSVCR110.dll_malloc]
mov edi, eax
pop ecx
mov dword [esp + 0x20], edi
test edi, edi
je 0x1035e3f6
push 1
push sym.php5.dll__zval_internal_ptr_dtor
push 0
push edi
call sym.php5.dll__zend_hash_init
add esp, 0x10
push 0x10
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebx, eax
pop ecx
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x1035e3f6
mov dword [ebx + 8], 1
mov byte [ebx + 0xd], 0
mov eax, dword [esp + 0x14]
dec eax
push eax
push dword [esp + 0x28]
call sym.php5.dll_zend_strndup
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
push 1
dec eax
mov dword [ebx + 4], eax
push 0
push 4
lea eax, [esp + 0x60]
push eax
mov byte [ebx + 0xc], 6
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
inc eax
push eax
push ebx
push edi
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x24
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x1035e3fd
mov ecx, dword [esp + 0x24]
jmp 0x1035e319
xor eax, eax
jmp 0x1035e61a
test edi, edi
je 0x1035e4b2
test esi, esi
je 0x1035e483
lea eax, [esp + 0x18]
push eax
push esi
call sym.php5.dll_zend_hash_internal_pointer_reset_ex
pop ecx
pop ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
push esi
call sym.php5.dll_zend_hash_get_current_data_ex
add esp, 0xc
test eax, eax
jne 0x1035e483
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
push esi
call sym.php5.dll_zend_hash_get_current_key_ex
add esp, 0x18
cmp eax, 1
jne 0x1035e483
mov ebx, dword [esp + 0x4c]
push 2
push 0
push 4
push ebx
push dword [esp + 0x60]
push dword [esp + 0x68]
push edi
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
test eax, eax
jne 0x1035e476
mov eax, dword [ebx]
inc dword [eax + 8]
lea eax, [esp + 0x18]
push eax
push esi
call sym.php5.dll_zend_hash_move_forward_ex
jmp 0x1035e414
mov ebx, dword [esp + 0x68]
xor ebp, ebp
inc ebp
push ebp
push 0
push 4
lea eax, [esp + 0x2c]
push eax
lea eax, [ebx + 1]
push eax
push dword [esp + 0x78]
push dword [esp + 0x60]
call sym.php5.dll__zend_hash_add_or_update
mov edi, dword [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x18], ebp
jmp 0x1035e4b6
mov ebx, dword [esp + 0x68]
push dword [esp + 0x44]
call sym.php5.dll__efree
pop ecx
push dword [esp + 0x24]
call sym.php5.dll__efree
pop ecx
test edi, edi
jne 0x1035e4d6
jmp 0x1035e4d4
mov ebx, dword [esp + 0x68]
mov edi, esi
cmp dword [esp + 0x30], 0
je 0x1035e616
mov eax, dword [esp + 0x28]
inc eax
push eax
call sym.php5.dll__emalloc
mov ebp, eax
mov eax, dword [esp + 0x2c]
add eax, 2
pop ecx
add eax, ebx
push eax
call sym.php5.dll__emalloc
xor esi, esi
pop ecx
mov ebx, eax
mov dword [esp + 0x40], esi
cmp dword [esp + 0x30], esi
jbe 0x1035e608
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push esi
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1035e5f9
lea eax, [esp + 0x44]
push eax
push 0x20019
push 0
push ebp
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1035e5f9
cmp dword [esp + 0x68], eax
je 0x1035e5ac
mov esi, dword [esp + 0x68]
push esi
push dword [esp + 0x68]
push ebx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0x2f
mov eax, dword [esp + 0x14]
inc eax
push eax
lea eax, [esi + 1]
add eax, ebx
push ebp
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
inc esi
add eax, esi
push eax
push ebx
call sym.php5.dll_zend_str_tolower
mov eax, dword [esp + 0x1c]
add eax, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x1035e5ca
mov eax, dword [esp + 0x14]
inc eax
push eax
push ebp
push ebx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
push dword [esp + 0x14]
push ebx
call sym.php5.dll_zend_str_tolower
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x48]
push edi
push eax
push ebx
call fcn.1035e290
mov ecx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
push 1
pop eax
push dword [esp + 0x44]
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [esp + 0x40], esi
cmp esi, dword [esp + 0x30]
jb 0x1035e511
push ebx
call sym.php5.dll__efree
pop ecx
push ebp
call sym.php5.dll__efree
pop ecx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret