Function at 0x4140d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439a62
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x5058
call fcn.00417f10
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x5049], dl
mov dword [ebp - 0x5050], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x5024], 0
movq qword [ebp - 0x502c], xmm0
mov dword [ebp - 0x502c], 0
mov dword [ebp - 0x5028], 0
mov dword [ebp - 0x5024], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5068]
push 1
push 0x449cbc
mov dword [ebp - 0x5068], 0
mov dword [ebp - 0x5058], 0
mov dword [ebp - 0x5054], 0
call fcn.00402040
lea eax, [ebp - 0x5068]
mov byte [ebp - 4], 4
push eax
lea edx, [ebx + 8]
lea ecx, [ebp - 0x502c]
call fcn.004153d0
mov byte [ebp - 4], 3
add esp, 4
mov ecx, dword [ebp - 0x5054]
cmp ecx, 8
jb 0x4141ef
mov edx, dword [ebp - 0x5068]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4141e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
mov edi, dword [ebp - 0x5028]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x502c]
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x414240
lea eax, [ebx + 8]
push eax
cmp edi, dword [ebp - 0x5024]
je 0x41422e
mov ecx, edi
call fcn.00403380
add dword [ebp - 0x5028], 0x18
jmp 0x41423a
push edi
lea ecx, [ebp - 0x502c]
call fcn.0040cb30
mov esi, dword [ebp - 0x502c]
mov eax, esi
mov edx, eax
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x5020], ecx
cmp ecx, 8
jb 0x414254
mov eax, dword [esi]
mov edx, dword [edx + 0x10]
cmp edx, 0x11
jne 0x414297
mov ecx, str.HKEY_CLASSES_ROOT
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x414291
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x414270
mov esi, 0x80000000
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x4142a0
mov eax, dword [esi]
cmp edx, 0x11
jne 0x4142db
mov ecx, str.HKEY_CURRENT_USER
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4142d5
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x4142b4
mov esi, 0x80000001
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x4142e4
mov eax, dword [esi]
cmp edx, 0x12
jne 0x414327
mov ecx, str.HKEY_LOCAL_MACHINE
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x414321
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x414300
mov esi, 0x80000002
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x414330
mov eax, dword [esi]
cmp edx, 0xa
jne 0x41436b
mov ecx, str.HKEY_USERS
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x414365
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x414344
mov esi, 0x80000003
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x414374
mov eax, dword [esi]
cmp edx, 0x13
jne 0x4143b7
mov ecx, str.HKEY_CURRENT_CONFIG
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4143b1
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x414390
mov esi, VariantCopy
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x4143c0
mov eax, dword [esi]
cmp edx, 0x15
jne 0x4143f8
mov ecx, str.HKEY_PERFORMANCE_DATA
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4143f2
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x4143d4
mov esi, 0x80000004
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
mov eax, esi
cmp ecx, 8
jb 0x414401
mov eax, dword [esi]
cmp edx, 0x18
jne 0x414439
mov ecx, str.HKEY_PERFORMANCE_NLSTEXT
mov edi, edx
sub eax, ecx
mov dword [ebp - 0x501c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x414433
mov eax, dword [ebp - 0x501c]
add ecx, 2
sub edi, 1
jne 0x414415
mov esi, 0x80000060
jmp 0x41446a
mov ecx, dword [ebp - 0x5020]
cmp ecx, 8
jb 0x414440
mov esi, dword [esi]
cmp edx, 0x15
jne 0x4148f6
mov ecx, str.HKEY_PERFORMANCE_TEXT
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x4148f6
add ecx, 2
sub edx, 1
jne 0x414450
mov esi, 0x80000050
mov edi, 7
mov dword [ebp - 0x5044], 0
xor eax, eax
mov dword [ebp - 0x5034], 0
mov dword [ebp - 0x5030], edi
mov word [ebp - 0x5044], ax
sub esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebx + 8]
call fcn.00414a10
cmp eax, 0xffffffff
je 0x414560
lea edx, [eax + 1]
mov dword [ebp - 0x5068], 0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x5058], 0
mov dword [ebp - 0x5054], 0
cmp eax, edx
jb 0x4149fa
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x5068]
lea eax, [eax + edx*2]
push eax
call fcn.00402040
mov ecx, dword [ebp - 0x5030]
cmp ecx, 8
jb 0x41453c
mov edx, dword [ebp - 0x5044]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414532
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
movups xmm0, xmmword [ebp - 0x5068]
movups xmmword [ebp - 0x5044], xmm0
movq xmm0, qword [ebp - 0x5058]
movq qword [ebp - 0x5034], xmm0
mov edi, dword [ebp - 0x5030]
cmp byte [ebp - 0x5049], 0
lea ecx, [ebp - 0x5048]
lea eax, [ebp - 0x5044]
push ecx
je 0x41457d
push 0x20019
jmp 0x414582
push 0x20119
cmp edi, 8
push 0
cmovae eax, dword [ebp - 0x5044]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x414614
mov esi, dword [0x4511b0]
test esi, esi
je 0x4145d9
push eax
push str.getRegistryValue:_RegOpenKeyExW_failed_with_error__ld
push 0x446ee0
push 0x446ee0
push str.OSUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x43b228]
call esi
add esp, 0x1c
mov byte [ebp - 0x5049], 0
jmp 0x414897
mov ecx, dword [0x4511b4]
test ecx, ecx
je 0x414608
mov esi, dword [ecx]
push eax
push str.getRegistryValue:_RegOpenKeyExW_failed_with_error__ld
push str.OSUtils
mov esi, dword [esi + 0x34]
push 0x446ee0
push 0x28
push ecx
mov ecx, esi
call dword [0x43b228]
call esi
add esp, 0x18
mov byte [ebp - 0x5049], 0
jmp 0x414897
cmp dword [ebx + 0x4c], 8
lea esi, [ebx + 0x38]
mov edx, dword [ebx + 0x48]
cmovae esi, dword [ebx + 0x38]
mov byte [ebp - 0x5049], 0
cmp edx, 9
jne 0x41473b
mov ecx, str.REG_DWORD
test edx, edx
je 0x414655
sub esi, ecx
nop dword [eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x41473b
add ecx, 2
sub edx, 1
jne 0x414640
cmp dword [ebx + 0x34], 8
lea ecx, [ebp - 0x501c]
push ecx
lea ecx, [ebp - 0x5020]
mov dword [ebp - 0x501c], 4
push ecx
push 0
lea eax, [ebx + 0x20]
mov dword [ebp - 0x5020], 0
cmovae eax, dword [ebx + 0x20]
push 0
push eax
push dword [ebp - 0x5048]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x4146ff
mov esi, dword [ebp - 0x5020]
push 0xb0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00418fc0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00408b60
push 0
push esi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.00414b40
mov edi, dword [ebp - 0x5050]
lea ecx, [ebp - 0xc8]
mov edx, edi
call fcn.00414ce0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.004051c0
mov byte [ebp - 0x5049], 1
jmp 0x4147ef
mov esi, dword [0x4511b0]
test esi, esi
je 0x4147bb
push ecx
push str.getRegistryValue:_RegQueryValueExW_failed_with_error__ld
push 0x446ee0
push 0x446ee0
push str.OSUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x43b228]
call esi
add esp, 0x1c
jmp 0x4147e9
cmp dword [ebx + 0x34], 8
lea ecx, [ebp - 0x501c]
push ecx
lea ecx, [ebp - 0x5018]
mov dword [ebp - 0x501c], 0x5000
push ecx
push 0
lea eax, [ebx + 0x20]
cmovae eax, dword [ebx + 0x20]
push 0
push eax
push dword [ebp - 0x5048]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x4147ad
lea ecx, [ebp - 0x5018]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414780
mov edi, dword [ebp - 0x5050]
lea eax, [ebp - 0x5018]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040a120
mov byte [ebp - 0x5049], 1
jmp 0x4147ef
mov esi, dword [0x4511b0]
test esi, esi
jne 0x41470d
mov eax, dword [0x4511b4]
test eax, eax
je 0x4147e9
mov esi, dword [eax]
push ecx
push str.getRegistryValue:_RegQueryValueExW_failed_with_error__ld
push str.OSUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x446ee0
push 0x28
push eax
call dword [0x43b228]
call esi
add esp, 0x18
mov edi, dword [ebp - 0x5050]
push dword [ebp - 0x5048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4511b0], 0
je 0x41484c
cmp dword [edi + 0x14], 8
jb 0x41480c
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4511b0]
mov ecx, esi
push eax
movzx eax, byte [ebp - 0x5049]
push edi
push eax
push str.getRegistryValue:_Status:_d_Value:_s_Error:_d
push 0x446ee0
push 0x446ee0
push str.OSUtils
push str.OOBEUtils
push 0xa
call dword [0x43b228]
call esi
add esp, 0x24
jmp 0x414897
mov esi, dword [0x4511b4]
test esi, esi
je 0x414897
cmp dword [edi + 0x14], 8
jb 0x41485e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
movzx eax, byte [ebp - 0x5049]
push edi
push eax
push str.getRegistryValue:_Status:_d_Value:_s_Error:_d
push str.OSUtils
push 0x446ee0
push 0xa
push dword [0x4511b4]
call dword [0x43b228]
call esi
add esp, 0x20
mov ecx, dword [ebp - 0x5030]
cmp ecx, 8
jb 0x4148d7
mov edx, dword [ebp - 0x5044]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4148cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
xor eax, eax
mov dword [ebp - 0x5034], 0
mov dword [ebp - 0x5030], 7
mov word [ebp - 0x5044], ax
jmp 0x4148fd
mov byte [ebp - 0x5049], 0
lea ecx, [ebp - 0x502c]
call fcn.00401dd0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 8
jb 0x414942
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414938
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp ecx, 8
jb 0x41498c
mov edx, dword [ebx + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414982
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [ebx + 0x4c]
xor eax, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 7
mov word [ebx + 0x20], ax
cmp ecx, 8
jb 0x4149d6
mov edx, dword [ebx + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4149cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ff
push ecx
push edx
call fcn.00417151
add esp, 8
mov al, byte [ebp - 0x5049]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416ec0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
call fcn.0040b420
call fcn.0041c06f
int3