Function at 0x41bb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6744
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, edx
cmp dword [edi + 0x14], 8
mov dword [esp + 0x1c], ecx
jb 0x41bbe6
mov ecx, dword [edi]
jmp 0x41bbe8
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41bddb
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x538], ebx
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push ecx
lea edx, [esp + 0x4c]
push str.RegOpenKeyEx_Failed._lStatus:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 2
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x538], 3
push eax
lea ecx, [esp + 0xc4]
push ecx
push 0x1c
lea edx, [esp + 0xe8]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x538], 2
cmp dword [esp + 0x10c], 8
jb 0x41bd34
mov eax, dword [esp + 0xf8]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], cx
mov byte [esp + 0x538], 1
mov edi, 0x10
cmp dword [esp + 0xf0], edi
jb 0x41bd76
mov edx, dword [esp + 0xdc]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x538], bl
cmp dword [esp + 0xd4], edi
jb 0x41bdab
mov eax, dword [esp + 0xc0]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
xor al, al
jmp 0x41c247
push 0x40e
lea edx, [esp + 0x11a]
xor ecx, ecx
push ebx
push edx
mov byte [esp + 0x1f], bl
mov word [esp + 0x120], cx
call fcn.004911e0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
mov ecx, esi
mov dword [esp + 0x28], 0x410
call fcn.0040f1e0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41c009
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x538], 4
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push ebx
push ecx
lea ecx, [esp + 0x4c]
push str.RegQueryValueEx_Failed._lStatus:
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x19
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 6
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x538], 7
push eax
lea eax, [esp + 0xe0]
push eax
push 0x29
lea ecx, [esp + 0xcc]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x538], 6
cmp dword [esp + 0x10c], 8
jb 0x41bf61
mov edx, dword [esp + 0xf8]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], ax
mov byte [esp + 0x538], 5
cmp dword [esp + 0xd4], 0x10
jb 0x41bf9f
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x538], 4
cmp dword [esp + 0xf0], 0x10
jb 0x41bfda
mov edx, dword [esp + 0xdc]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
jmp 0x41c022
cmp dword [esp + 0x20], 4
jne 0x41c022
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
call fcn.00413cc0
mov dword [esp + 0x538], 8
mov eax, 0x4c5170
cmp byte [esp + 0x13], bl
jne 0x41c059
mov eax, str.FAILED.
push ebx
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push edx
push ecx
push str.._dwKeyValue:
push ecx
push esi
push ecx
push str.._strKeyName:
push ecx
push edi
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea eax, [esp + 0x6c]
push str.ReadRegValue
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.0040ebe0
mov byte [esp + 0x538], 0xa
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x538], 0xb
push eax
lea edx, [esp + 0xe0]
push edx
push 0x38
lea eax, [esp + 0xcc]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x538], 0xa
cmp dword [esp + 0x10c], 8
jb 0x41c1a2
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], dx
mov byte [esp + 0x538], 9
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jb 0x41c1e4
mov eax, dword [esp + 0xc0]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x538], 8
cmp dword [esp + 0xf0], edi
jb 0x41c21a
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret 8