Function at 0x40ef44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], eax
lea ebx, [ebp - 0x10]
xor eax, eax
push ebp
push 0x40f406
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0040ec9c
call fcn.00409268
mov dword [ebp - 4], eax
push ebp
mov eax, dword [ebp - 4]
call fcn.0040eda8
pop ecx
mov dword [ebx], 0x10000
mov eax, dword [ebx]
call fcn.004024f4
mov dword [ebp - 0x14], eax
xor ecx, ecx
push ebp
push 0x40f3cc
push dword fs:[ecx]
mov dword fs:[ecx], esp
jmp 0x40efce
add dword [ebx], 0x8000
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.00402524
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x16c]
mov eax, 0xe6
call fcn.00406128
mov eax, dword [ebp - 0x16c]
call fcn.004033b0
push eax
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x40efbe
push 0x80000004
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
dec eax
test eax, eax
jl 0x40f3a1
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xe6
jne 0x40f38d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
test eax, eax
jle 0x40f38d
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
add ecx, edx
mov dword [ebp - 0x20], ecx
dec eax
test eax, eax
jl 0x40f38d
inc eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov esi, dword [ebp - 0x20]
add eax, esi
call fcn.00403b18
mov eax, dword [ebp - 0x28]
mov edx, 0x40f420
call fcn.004032fc
je 0x40f384
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x20]
dec esi
test esi, esi
jl 0x40f375
inc esi
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebx + 4], 0x310
jne 0x40f368
mov dword [ebp - 0xc], 0x104
mov eax, dword [ebp - 8]
add eax, 0xdc
xor ecx, ecx
mov edx, 0x104
call fcn.0040262c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 5
jne 0x40f126
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jne 0x40f126
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 0xdc
push eax
push 0
push edi
call dword [0x41d608]
jmp 0x40f23d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 5
jne 0x40f227
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jbe 0x40f227
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
call fcn.0040351c
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
call fcn.004033bc
push eax
push edi
call dword [0x41d610]
lea eax, [ebp - 0x34]
mov ecx, 1
mov edx, 1
call fcn.00403430
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x34]
mov dl, 0x5c
call fcn.0040a80c
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x38]
mov ecx, 0x40f430
call fcn.00403238
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x34]
mov dl, 0x5c
call fcn.0040a80c
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x38]
call fcn.004031f4
push ebp
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x38]
mov edx, 0x40f430
call fcn.00403238
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x170]
call fcn.0040ee7c
pop ecx
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 0x34]
call fcn.004031f4
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.0040e918
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x34]
call fcn.00403118
mov eax, dword [ebp - 0x34]
call fcn.004031ec
push eax
lea eax, [ebp - 0x34]
call fcn.004033bc
mov edx, dword [ebp - 8]
add edx, 0xdc
pop ecx
call fcn.004025e0
jmp 0x40f23d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 0xdc
push eax
push 0
push edi
call dword [0x41d60c]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc0], eax
mov eax, edi
call fcn.0040ed7c
mov edx, dword [ebp - 8]
mov dword [edx + 0xd0], eax
push edi
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 8]
add edx, 0xdc
mov ecx, 0x104
call fcn.004031d4
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x30]
call fcn.00406598
cmp dword [ebp - 0x30], 0
jne 0x40f357
xor edx, edx
mov eax, 2
call fcn.0040e800
mov edi, eax
cmp edi, 0xffffffff
je 0x40f2fe
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x104
call fcn.0040262c
mov dword [ebp - 0x168], 0x128
lea edx, [ebp - 0x168]
mov eax, edi
call fcn.0040e820
neg eax
sbb eax, eax
neg eax
jmp 0x40f2fa
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc0]
cmp eax, dword [ebp - 0x160]
je 0x40f2fe
lea edx, [ebp - 0x168]
mov eax, edi
call fcn.0040e840
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x40f2d6
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
add eax, 0xdc
xor ecx, ecx
mov edx, 0x104
call fcn.0040262c
cmp byte [ebp - 0x144], 0x5b
jne 0x40f33e
lea eax, [ebp - 0x28]
call fcn.004033bc
mov edx, dword [ebp - 8]
add edx, 0xdc
mov ecx, 0x104
call fcn.004025e0
jmp 0x40f357
mov eax, dword [ebp - 8]
lea edx, [eax + 0xdc]
lea eax, [ebp - 0x144]
mov ecx, 0x104
call fcn.004025e0
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
test al, al
jne 0x40f368
call fcn.00402c1c
jmp 0x40f3d3
mov eax, dword [ebx]
add eax, ebx
mov ebx, eax
dec esi
jne 0x40f0b4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov edx, dword [eax]
add edx, eax
mov dword [ebp - 0x20], edx
dec dword [ebp - 0x40]
jne 0x40f071
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
dec dword [ebp - 0x3c]
jne 0x40f02d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3d3
mov eax, dword [ebp - 0x14]
call fcn.0040250c
mov eax, dword [ebp - 4]
call fcn.00405320
mov eax, dword [ebp - 8]
add eax, 0x2ac
call fcn.0040af74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f40d
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.004030a4
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004030a4
lea eax, [ebp - 0x28]
call fcn.00403080
ret