Function at 0x41611c
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 0x4165de
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.00415e74
call fcn.0040b2fc
mov dword [ebp - 4], eax
push ebp
mov eax, dword [ebp - 4]
call fcn.00415f80
pop ecx
mov dword [ebx], 0x10000
mov eax, dword [ebx]
call fcn.004024ec
mov dword [ebp - 0x14], eax
xor ecx, ecx
push ebp
push 0x4165a4
push dword fs:[ecx]
mov dword fs:[ecx], esp
jmp 0x4161a6
add dword [ebx], 0x8000
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.0040251c
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x16c]
mov eax, 0xe6
call fcn.00406a30
mov eax, dword [ebp - 0x16c]
call fcn.00403490
push eax
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x416196
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 0x416579
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xe6
jne 0x416565
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 0x416565
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
add ecx, edx
mov dword [ebp - 0x20], ecx
dec eax
test eax, eax
jl 0x416565
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.00403d64
mov eax, dword [ebp - 0x28]
mov edx, 0x4165f8
call fcn.004033dc
je 0x41655c
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 0x41654d
inc esi
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebx + 4], 0x310
jne 0x416540
mov dword [ebp - 0xc], 0x104
mov eax, dword [ebp - 8]
add eax, 0xdc
xor ecx, ecx
mov edx, 0x104
call fcn.004026f4
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 0x4162fe
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jne 0x4162fe
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 0xdc
push eax
push 0
push edi
call dword [0x454694]
jmp 0x416415
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 5
jne 0x4163ff
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jbe 0x4163ff
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
call fcn.004035fc
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
call fcn.0040349c
push eax
push edi
call dword [0x45469c]
lea eax, [ebp - 0x34]
mov ecx, 1
mov edx, 1
call fcn.00403510
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x34]
mov dl, 0x5c
call fcn.0040d4c4
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x38]
mov ecx, 0x416608
call fcn.00403318
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x34]
mov dl, 0x5c
call fcn.0040d4c4
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x38]
call fcn.004032d4
push ebp
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x38]
mov edx, 0x416608
call fcn.00403318
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x170]
call fcn.00416054
pop ecx
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 0x34]
call fcn.004032d4
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00415af0
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x34]
call fcn.004031ec
mov eax, dword [ebp - 0x34]
call fcn.004032cc
push eax
lea eax, [ebp - 0x34]
call fcn.0040349c
mov edx, dword [ebp - 8]
add edx, 0xdc
pop ecx
call fcn.004025c0
jmp 0x416415
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 0xdc
push eax
push 0
push edi
call dword [0x454698]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc0], eax
mov eax, edi
call fcn.00415f54
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.004032b4
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x30]
call fcn.00406f48
cmp dword [ebp - 0x30], 0
jne 0x41652f
xor edx, edx
mov eax, 2
call fcn.004159d8
mov edi, eax
cmp edi, 0xffffffff
je 0x4164d6
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x104
call fcn.004026f4
mov dword [ebp - 0x168], 0x128
lea edx, [ebp - 0x168]
mov eax, edi
call fcn.004159f8
neg eax
sbb eax, eax
neg eax
jmp 0x4164d2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc0]
cmp eax, dword [ebp - 0x160]
je 0x4164d6
lea edx, [ebp - 0x168]
mov eax, edi
call fcn.00415a18
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x4164ae
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
add eax, 0xdc
xor ecx, ecx
mov edx, 0x104
call fcn.004026f4
cmp byte [ebp - 0x144], 0x5b
jne 0x416516
lea eax, [ebp - 0x28]
call fcn.0040349c
mov edx, dword [ebp - 8]
add edx, 0xdc
mov ecx, 0x104
call fcn.004025c0
jmp 0x41652f
mov eax, dword [ebp - 8]
lea edx, [eax + 0xdc]
lea eax, [ebp - 0x144]
mov ecx, 0x104
call fcn.004025c0
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
test al, al
jne 0x416540
call fcn.00402d0c
jmp 0x4165ab
mov eax, dword [ebx]
add eax, ebx
mov ebx, eax
dec esi
jne 0x41628c
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 0x416249
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
dec dword [ebp - 0x3c]
jne 0x416205
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4165ab
mov eax, dword [ebp - 0x14]
call fcn.00402504
mov eax, dword [ebp - 4]
call fcn.00405a00
mov eax, dword [ebp - 8]
add eax, 0x2ac
call fcn.0040dffc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4165e5
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00403178
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00403178
lea eax, [ebp - 0x28]
call fcn.00403154
ret