Function at 0x4dab28
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, edx
mov eax, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x14], eax
mov ebx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
push edi
mov edi, edx
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x4dab52
mov dword [ecx], edx
test esi, esi
je 0x4db043
cmp dword [ebp + 8], edx
je 0x4db043
test ecx, ecx
je 0x4db043
cmp dword [ebp + 0x10], edx
je 0x4db043
cmp dword [ebp + 0x14], edx
je 0x4db043
mov edx, 0x42f59c
test eax, eax
jne 0x4dab8b
mov edx, 0x42f5b8
mov ecx, esi
mov dword [ebp - 0x20], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x4dab96
sub ecx, dword [ebp - 0x10]
lea eax, [edx + 2]
sar ecx, 1
mov dword [ebp - 0x10], eax
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x18]
jne 0x4dabad
sub edx, dword [ebp - 0x10]
lea eax, [ecx + 0x3a]
sar edx, 1
add eax, edx
mov dword [ebp - 0x18], eax
add eax, eax
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4dabe9
mov edi, 0x8007000e
push edi
push 0x13101a4
jmp 0x4db04e
mov edx, dword [ebp - 0x18]
mov ecx, eax
push 0x42f2f8
call fcn.0043eb7d
mov ecx, dword [ebp - 0x10]
push esi
mov esi, dword [ebp - 0x18]
mov edx, esi
call fcn.0043eadb
mov ecx, dword [ebp - 0x10]
mov edx, esi
push 0x4050fc
call fcn.0043eadb
push dword [ebp - 0x20]
mov edx, esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.0043eadb
lea eax, [ebp - 0xc]
push eax
push 0xf003f
xor eax, eax
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4dac58
push 2
push esi
push 0x14001a4
push dword [ebp - 0x10]
call dword [sym.imp.certcli.dll_Ordinal_360]
jmp 0x4db01d
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push 0x42f56c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dac8c
push esi
push 0x14a01a4
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4db01d
cmp dword [ebp - 8], 1
je 0x4daca1
mov eax, 0x80070057
push eax
mov esi, eax
push 0x14f01a4
jmp 0x4dac81
mov eax, dword [ebp - 4]
xor esi, esi
add eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4dacc7
mov edi, 0x8007000e
push edi
mov esi, edi
push 0x15801a4
jmp 0x4dac81
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x42f56c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dacf0
push esi
push 0x16101a4
jmp 0x4dafd6
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0x18]
shr eax, 1
mov word [ecx + eax*2], dx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
xor eax, eax
push eax
push 0x42f580
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dad32
push esi
push 0x16d01a4
jmp 0x4dafd6
push 4
pop ecx
cmp dword [ebp - 8], ecx
je 0x4dad4c
mov eax, 0x80070057
push eax
mov esi, eax
push 0x17201a4
jmp 0x4dafd6
mov eax, dword [ebp + 8]
xor edx, edx
cmp dword [eax], edx
je 0x4dadef
mov eax, 0x42f528
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x14], edx
jne 0x4dad6b
mov eax, 0x42f550
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dadd3
cmp dword [ebp - 0x14], ebx
je 0x4dadc8
push 2
push esi
push 0x18701a4
push 0x42f528
call dword [sym.imp.certcli.dll_Ordinal_360]
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0x42f550
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dadd3
push esi
push 0x19101a4
jmp 0x4dafd6
push 4
pop ecx
cmp dword [ebp - 8], ecx
je 0x4daded
mov eax, 0x80070057
push eax
mov esi, eax
push 0x19601a4
jmp 0x4dafd6
xor edx, edx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edx
push 0x42f50c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dae1d
push esi
push 0x1a201a4
jmp 0x4dafd6
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x4dae37
mov eax, 0x80070057
push eax
mov esi, eax
push 0x1a701a4
jmp 0x4dafd6
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x4dae92
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0x42f454
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4dae70
push eax
push 0x1de01a4
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4dae92
cmp dword [ebp - 8], 4
je 0x4dae88
mov eax, 0x80070057
push eax
mov esi, eax
push 0x1e501a4
jmp 0x4dafd6
xor eax, eax
cmp dword [ebp - 0x24], eax
setne al
mov dword [esi], eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push esi
push 0x42f4e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4daf29
cmp dword [ebp - 8], 1
je 0x4daecb
mov eax, 0x80070057
push eax
mov esi, eax
push 0x1f801a4
jmp 0x4dafd6
mov eax, dword [ebp - 4]
add eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4daef1
mov edi, 0x8007000e
push edi
mov esi, edi
push 0x20101a4
jmp 0x4dafd6
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push esi
push 0x42f4e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4daf1a
push esi
push 0x20a01a4
jmp 0x4dafd6
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
xor esi, esi
mov word [ebx + eax*2], cx
jmp 0x4daf3a
push eax
push 0x21001a4
push 0x42f4e0
call dword [sym.imp.certcli.dll_Ordinal_359]
mov dword [ebp - 4], esi
mov esi, 0x42f48c
mov eax, esi
cmp dword [ebp - 0x14], edi
jne 0x4daf4e
mov eax, 0x42f4bc
lea ecx, [ebp - 4]
xor edx, edx
push ecx
push edx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4daff2
cmp dword [ebp - 8], 1
je 0x4daf81
mov eax, 0x80070057
push eax
mov esi, eax
push 0x22201a4
jmp 0x4dafd6
mov eax, dword [ebp - 4]
add eax, 2
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4dafa9
mov edi, 0x8007000e
push edi
mov esi, edi
push 0x22b01a4
jmp 0x4dafd6
cmp dword [ebp - 0x14], 0
jne 0x4dafb4
mov esi, 0x42f4bc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4dafe7
push esi
push 0x23601a4
call dword [sym.imp.certcli.dll_Ordinal_357]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4db01d
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0x20]
xor edx, edx
test eax, eax
je 0x4db003
test ebx, ebx
je 0x4db003
mov dword [eax], ebx
mov ebx, edx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4db013
test edi, edi
je 0x4db013
mov dword [eax], edi
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
push dword [ebp - 0x10]
mov edi, esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4db036
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4db054
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4db054
mov edi, 0x80004003
push edi
push 0x12401a4
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [ebp - 0xc], 0
je 0x4db063
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.004c738c
pop edi
pop esi
pop ebx
leave
ret 0x24