Function at 0x41db8e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x20]
mov esi, 0x406610
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x24]
movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [ebp - 0x1c], eax
setne al
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x28]
movzx eax, al
movsw word es:[edi], word [esi]
push eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x30]
mov esi, 0x40429c
push esi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x38]
push 0x65d
xor edi, edi
inc edi
push edi
mov dword [ebp - 0x30], ecx
push 3
mov ecx, 0x406620
mov dword [ebp - 0x28], ebx
call fcn.0042ba80
cmp dword [ebp - 0x38], 0
mov ecx, 0x4066d8
setne al
movzx eax, al
push eax
push esi
push 0x65e
push edi
push 3
call fcn.0042ba80
cmp dword [ebp - 0x14], 0
mov ecx, 0x406790
setne al
movzx eax, al
push eax
push esi
push 0x65f
push edi
push 3
call fcn.0042ba80
cmp dword [ebp - 0x2c], 0
mov ecx, 0x406848
setne al
movzx eax, al
push eax
push esi
push 0x660
push edi
push 3
call fcn.0042ba80
push edi
push esi
push 0x661
push edi
push 3
mov ecx, 0x406900
call fcn.0042ba80
cmp dword [ebp - 0x34], 0
setne al
movzx eax, al
push eax
push esi
push 0x662
push edi
push 3
mov ecx, 0x4069b8
call fcn.0042ba80
cmp dword [ebp - 0x3c], 0
mov ecx, 0x406a70
setne al
movzx eax, al
push eax
push esi
push 0x663
push edi
push 3
call fcn.0042ba80
mov esi, dword [ebp + 0x34]
test esi, esi
setne al
movzx eax, al
push eax
push 0x40429c
push 0x664
push edi
push 3
mov ecx, 0x406b28
call fcn.0042ba80
cmp dword [ebp - 0x30], 0
mov ecx, 0x406be0
setne al
movzx eax, al
push eax
push 0x40429c
push 0x665
push edi
push 3
call fcn.0042ba80
mov ecx, dword [0x42da88]
mov edx, dword [ecx]
lea eax, [ebx + 0x64]
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
je 0x41dd3f
mov ecx, dword [0x42da88]
mov edx, dword [ecx]
lea eax, [ebx + 0xcc]
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
je 0x41dd3f
mov ecx, dword [0x42da88]
mov edx, dword [ecx]
lea eax, [ebx + 0xe0]
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
jne 0x41dd7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41dd59
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x41dd60
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.0042b5de
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bdaf
leave
ret 0x38
mov eax, dword [0x42da88]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc0]
xor ecx, ecx
push 0x20
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0042b9fe
test eax, eax
je 0x41ddd4
mov dword [eax], esi
lea esi, [eax + 4]
mov eax, dword [ebp + 0x34]
dec eax
mov edi, esi
js 0x41ddd6
mov ebx, eax
mov ecx, edi
call fcn.00421b71
add edi, 0x20
dec ebx
jns 0x41ddc2
mov ebx, dword [ebp - 0x28]
jmp 0x41ddd6
xor esi, esi
mov dword [ebx + 0x18], esi
test esi, esi
jne 0x41de1e
mov ecx, 0x8007000e
mov esi, ecx
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
cmp byte [eax + 0xb9], 2
jb 0x41dd60
push ecx
push 0x40bf9c
push 0x10
jmp 0x41e45a
mov edx, dword [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x7fffffff
lea eax, [ebp - 0x18]
call fcn.0041bed4
mov esi, eax
test esi, esi
jns 0x41de72
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
cmp byte [eax + 0xb9], 2
jb 0x41dd60
push esi
push 0x40bf9c
push 0x11
jmp 0x41e45a
mov eax, dword [ebp - 0x18]
push 2
inc eax
xor ecx, ecx
pop edx
mov dword [ebp - 0x28], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b9fe
mov dword [ebx + 0x28], eax
mov edi, 0x8007000e
test eax, eax
jne 0x41ded4
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41ded2
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41ded2
cmp byte [eax + 0xb9], 1
jb 0x41ded2
push 0x40bf9c
push 0x12
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.00415ddb
mov esi, edi
test esi, esi
js 0x41dd60
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx + 0x28]
call fcn.00416fde
mov esi, eax
test esi, esi
jns 0x41df2c
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
push 2
pop edx
cmp byte [eax + 0xb9], dl
jb 0x41dd60
push esi
push 0x40bf9c
push 0x13
jmp 0x41e45a
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x18], 0
push 0x7fffffff
lea eax, [ebp - 0x18]
call fcn.0041bed4
mov esi, eax
test esi, esi
jns 0x41df82
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
push 2
pop edx
cmp byte [eax + 0xb9], dl
jb 0x41dd60
push esi
push 0x40bf9c
push 0x14
jmp 0x41e45a
mov eax, dword [ebp - 0x18]
push 2
add eax, 5
xor ecx, ecx
pop edx
mov dword [ebp - 0x1c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b9fe
mov dword [ebx + 0x40], eax
test eax, eax
jne 0x41dfe1
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dfdf
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dfdf
cmp byte [eax + 0xb9], 1
jb 0x41dfdf
push 0x40bf9c
push 0x15
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.00415ddb
mov esi, edi
test esi, esi
js 0x41dd60
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00416fde
mov esi, eax
test esi, esi
jns 0x41e03c
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41dd60
push esi
push 0x40bf9c
push 0x16
jmp 0x41e45a
push dword [ebp - 0x14]
mov edx, edi
push dword [ebx + 0x40]
call fcn.004171bf
mov esi, eax
test esi, esi
jns 0x41e09b
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41dd60
push 0x40bf9c
push 0x17
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.00415ddb
jmp 0x41dd60
mov ecx, dword [ebp - 0x2c]
push 2
xor edi, edi
lea eax, [ebx + 0x44]
pop edx
mov dword [ebp - 0x14], eax
cmp edi, edx
jae 0x41e1f8
mov edx, dword [ecx + edi*4]
test edx, edx
je 0x41e11f
and dword [ebp - 0x18], 0
push 0x7fffffff
lea eax, [ebp - 0x18]
call fcn.0041bed4
mov esi, eax
test esi, esi
js 0x41e1b9
mov esi, dword [ebp - 0x18]
inc esi
push 2
xor ecx, ecx
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x28], esi
neg ecx
or ecx, eax
push ecx
call fcn.0042b9fe
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
test edx, edx
je 0x41e170
mov eax, dword [ebp - 0x2c]
push dword [eax + edi*4]
mov eax, esi
call fcn.00416fde
mov esi, eax
test esi, esi
js 0x41e136
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jbe 0x41e11c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
push 2
inc edi
add eax, 4
pop edx
mov dword [ebp - 0x14], eax
cmp edi, edx
jl 0x41e0ab
jmp 0x41e212
mov eax, dword [0x42d05c]
push 2
pop edx
cmp eax, 0x42d05c
je 0x41e212
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e212
cmp byte [eax + 0xb9], dl
jb 0x41e212
push esi
push edi
push 0x40bf9c
push LeaveCriticalSection
jmp 0x41e1e5
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41e1af
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e1af
cmp byte [eax + 0xb9], 1
jb 0x41e1af
push 0x40bf9c
push 0x19
push dword [eax + 0xb4]
push dword [eax + 0xb0]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edi*4]
call fcn.004160dd
mov esi, 0x8007000e
jmp 0x41dd60
mov eax, dword [0x42d05c]
push 2
pop edx
cmp eax, 0x42d05c
je 0x41e212
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e212
cmp byte [eax + 0xb9], dl
jb 0x41e212
push esi
push edi
push 0x40bf9c
push 0x18
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.0041c5ec
jmp 0x41e20f
push 0
push 0x406c94
push 0
push 0
push 0
mov ecx, 0x406cc8
call fcn.0042ba80
push 2
pop edx
test esi, esi
js 0x41dd60
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b9fe
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x41e282
mov ecx, dword [0x42d05c]
cmp ecx, 0x42d05c
je 0x41e27a
test dword [ecx + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e27a
push 2
pop eax
cmp byte [ecx + 0xb9], al
jb 0x41e27a
push 0x40bf9c
push reloc.KERNEL32.dll_LeaveCriticalSection
push dword [ecx + 0xb4]
push dword [ecx + 0xb0]
call fcn.00415ddb
mov ecx, dword [ebp - 0x24]
mov esi, 0x8007000e
test esi, esi
js 0x41dd60
xor eax, eax
mov dword [ebp - 0x20], eax
lea edi, [ebx + 0x44]
cmp dword [edi], 0
je 0x41e2dc
push dword [edi]
mov eax, dword [ebp - 0x1c]
push dword [ebx + 0x40]
push 0x406d7c
push ecx
call fcn.004170b4
mov esi, eax
add esp, 0x10
test esi, esi
js 0x41e34c
xor eax, eax
push eax
push 0x40000000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x24], eax
cmp eax, reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e2f3
mov eax, dword [ebp - 0x20]
push 2
inc eax
pop ecx
add edi, 4
mov dword [ebp - 0x20], eax
cmp eax, ecx
jge 0x41e38f
mov ecx, dword [ebp - 0x24]
jmp 0x41e292
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41e33a
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e33a
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41e33a
mov ecx, dword [ebp - 0x24]
push esi
push 0x40bf9c
push 0x1d
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.0041614d
test esi, esi
jle 0x41e391
and esi, 0xffff
or esi, 0x80070000
jmp 0x41e38f
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41e38f
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e38f
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41e38f
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ebx + ecx*4 + 0x44]
push esi
push 0x40bf9c
push reloc.KERNEL32.dll_VerSetConditionMask
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.0041614d
test esi, esi
js 0x41dd60
cmp dword [ebx + 0x6c], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e3fb
push 0
push 0x421c7a
push dword [ebx + 0x6c]
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
jne 0x41e3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41e3f5
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41e3f5
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41e3f5
push esi
push 0x40bf9c
push 0x1e
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.0041722a
or esi, 0x10000000
test esi, esi
js 0x41dd60
push dword [ebx + 0x44]
mov edi, dword [ebp - 0x24]
push dword [ebx + 0x40]
mov eax, dword [ebp - 0x1c]
push 0x406d7c
push edi
call fcn.004170b4
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41e470
mov eax, dword [0x42d05c]
cmp eax, 0x42d05c
je 0x41dd60
test dword [eax + 0xbc], reloc.ADVAPI32.dll_EventActivityIdControl
je 0x41dd60
push 2
pop ecx
cmp byte [eax + 0xb9], cl
jb 0x41dd60
push esi
push 0x40bf9c
push 0x1f
push dword [eax + 0xb4]
push dword [eax + 0xb0]
call fcn.0041722a
jmp 0x41dd60
push dword [ebp - 0x34]
push ebx
call fcn.0041da84
mov esi, eax
test esi, esi
js 0x41dd60
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x74], eax
mov al, byte [ebp + 0x3c]
mov byte [ebx + 0xc4], al
lea eax, [ebp - 0x14]
push eax
mov dword [ebx + 0x4c], edi
push 0x20019
xor edi, edi
push edi
push 0x407b54
mov dword [ebx + reloc.ADVAPI32.dll_EventActivityIdControl], edi
push dword [ebx + 0x24]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e521
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push 0x407b88
push dword [ebp - 0x14]
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e521
cmp dword [ebp - 0x30], eax
setne al
mov dword [ebx + reloc.ADVAPI32.dll_EventActivityIdControl], eax
cmp dword [ebp - 0x14], edi
je 0x41dd69
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41dd69