Function at 0x41c270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6691
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
jb 0x41c2d2
mov eax, dword [edi]
jmp 0x41c2d4
mov eax, edi
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x18]
or edx, 0x20019
push edx
xor ebx, ebx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41c4cc
push 1
push 2
lea ecx, [esp + 0x3c]
call fcn.00413cc0
mov dword [esp + 0x130], 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 + 0x5c]
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 + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 2
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.00413de0
mov byte [esp + 0x130], 3
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x42
lea edx, [esp + 0xf4]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x41c425
mov eax, dword [esp + 0x104]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
mov byte [esp + 0x130], 1
mov edi, 0x10
cmp dword [esp + 0xfc], edi
jb 0x41c467
mov edx, dword [esp + 0xe8]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov byte [esp + 0x130], bl
cmp dword [esp + 0xe0], edi
jb 0x41c49c
mov eax, dword [esp + 0xcc]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00412cc0
xor al, al
jmp 0x41ca8c
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
mov dword [ecx], ebx
push ebx
mov ecx, esi
mov byte [esp + 0x27], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0040f1e0
mov ecx, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x41c50c
cmp eax, ebx
jne 0x41c843
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490047
mov ecx, dword [esp + 0x24]
add esp, 4
mov edi, eax
mov dword [esp + 0x18], edi
cmp ecx, ebx
jbe 0x41c550
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
mov ecx, esi
call fcn.0040f1e0
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x41c749
push 1
push 2
lea ecx, [esp + 0x3c]
call fcn.00413cc0
mov dword [esp + 0x130], 4
mov eax, dword [esp + 0x28]
push esi
push ecx
push str.__strKeyName:
push ecx
push eax
push ecx
push str.._strSubKey:
push ecx
push edi
push ecx
lea ecx, [esp + 0x5c]
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
mov edi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 6
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x38]
call fcn.00413de0
mov byte [esp + 0x130], 7
push eax
lea eax, [esp + 0xec]
push eax
push 0x5b
lea ecx, [esp + 0xd8]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x41c6a6
mov edx, dword [esp + 0x104]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], ax
mov byte [esp + 0x130], 5
cmp dword [esp + 0xe0], 0x10
jb 0x41c6e4
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 4
cmp dword [esp + 0xfc], 0x10
jb 0x41c71b
mov edx, dword [esp + 0xe8]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00412cc0
jmp 0x41c82e
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x41c77f
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
jmp 0x41c760
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c760
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.0040e680
jmp 0x41c81f
cmp eax, 7
je 0x41c78d
cmp eax, 2
jne 0x41c823
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov word [esp + 0xd0], cx
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
call fcn.0040e680
mov edi, 8
mov dword [esp + 0x130], edi
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xcc]
push eax
call fcn.00409ad0
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], edi
jb 0x41c803
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], dx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41c83f
push eax
call fcn.004913ca
add esp, 4
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call fcn.00413cc0
mov dword [esp + 0x130], 9
mov eax, 0x4c5170
cmp byte [esp + 0x17], bl
jne 0x41c87a
mov eax, str.FAILED.
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
push ecx
push ecx
push str.._dwType:
push ecx
push edx
push ecx
push str.._strKeyValue:
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 + 0x8c]
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.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 + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 0xa
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.0040ebe0
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0x38]
call fcn.00413de0
mov byte [esp + 0x130], 0xc
push eax
lea edx, [esp + 0xec]
push edx
push 0x70
lea eax, [esp + 0xd8]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x41c9e7
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], dx
mov byte [esp + 0x130], 0xa
mov edi, 0x10
cmp dword [esp + 0xe0], edi
jb 0x41ca29
mov eax, dword [esp + 0xcc]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 9
cmp dword [esp + 0xfc], edi
jb 0x41ca5f
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00412cc0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret 0x14