Function at 0x1004d7b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1006ea78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x114]
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x34], eax
call dword [0x100913cc]
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x60], edi
cmp esi, edi
mov byte [ebp - 4], 1
jne 0x1004d81a
xor esi, esi
jmp 0x1004d846
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004d82f
xor esi, esi
jmp 0x1004d846
lea edi, [eax + eax]
mov eax, edi
call fcn.100524c0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.10009c9a
mov esi, eax
mov edx, dword [0x100a61f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a61f4
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
mov byte [ebp - 4], 2
call fcn.1004d5a0
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x1004da2c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004d93f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
xor esi, esi
mov edi, edi
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push esi
push ecx
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x1004da11
add esi, 1
lea edx, [ebp - 0x30]
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push edx
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea ecx, [ebp]
push ecx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x1004d95b
lea eax, [esi + esi]
call fcn.100524c0
mov edi, esp
test edi, edi
je 0x1004d95b
mov eax, dword [ebp - 0x38]
push esi
push edi
push 0xffffffffffffffff
lea edx, [ebp]
push edx
push ebx
push eax
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
mov esi, eax
jmp 0x1004d95d
jg 0x1004d949
mov dword [ebp - 0x10], eax
jmp 0x1004da2c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x1004da2c
xor esi, esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x30]
push ecx
call edi
push esi
mov word [ebp - 0x30], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x28], eax
jne 0x1004d983
cmp esi, ecx
jne 0x1004d9de
mov eax, dword [ebp - 0x34]
push ecx
push ecx
lea esi, [ebp - 0x4c]
push esi
lea esi, [ebp - 0x5c]
push esi
push 1
push 0x400
push 0x10075674
lea edx, [ebp - 0x30]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], ecx
call eax
test eax, eax
jl 0x1004d9f5
cmp word [ebp - 0x4c], 0xb
jne 0x1004d9ca
cmp word [ebp - 0x44], 0
je 0x1004da03
lea ecx, [ebp - 0x4c]
push ecx
call edi
lea edx, [ebp - 0x30]
push edx
call edi
mov esi, dword [ebp - 0x3c]
jmp 0x1004d8b0
push 0x8007000e
mov word [ebp - 0x30], 0xa
mov dword [ebp - 0x28], 0x8007000e
call fcn.1000199e
lea eax, [ebp - 0x4c]
push eax
call edi
lea ecx, [ebp - 0x30]
push ecx
call edi
jmp 0x1004da2c
lea edx, [ebp - 0x4c]
push edx
call edi
lea eax, [ebp - 0x30]
push eax
call edi
jmp 0x1004da29
cmp ebx, 0x103
je 0x1004da2c
test ebx, ebx
jle 0x1004da29
and ebx, 0xffff
or ebx, 0x80070000
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004da4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.10051858
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x1004da67
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.100511f7
add ebp, 0x108
mov esp, ebp
pop ebp
ret