Function at 0x416090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9b3f
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4de024], 0
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
je 0x41625b
cmp ebx, 0xffffffff
jne 0x41625b
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
mov dword [ebp - 4], 0
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x10], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x14], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
push 0
push ecx
push 1
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00403eb0
push dword [ebp - 0x40]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
mov eax, dword [ebp + 0xc]
push 0x20019
push 0
push edi
push eax
call fcn.00406320
mov eax, dword [ebp - 0x44]
add esp, 0x14
test eax, eax
jne 0x416295
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push 0
push 0
push 0
push ebx
push eax
mov dword [ebp - 0x20], 0
call edi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
shr eax, 1
mov edx, 2
add eax, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048f2de
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x20]
shr eax, 1
mov dword [ebp - 0x20], eax
cmp eax, 2
jbe 0x41677e
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov eax, dword [ebp - 0x20]
mov word [esi + eax*2], cx
cmp word [esi], cx
je 0x41677e
mov edi, dword [ebp + 8]
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov word [eax], cx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0xc
push eax
push esi
call fcn.00406840
push esi
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00404cf0
add esp, 0x20
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x41673f
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
call fcn.00404ce0
test ebx, ebx
mov dword [ebp - 0x88], eax
mov ecx, 0x4af9b8
cmovne ecx, ebx
push ecx
call fcn.0048faa4
mov dword [ebp - 0x34], eax
mov edi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test edi, edi
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push esi
call fcn.0048faa4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00407620
add esp, 0x40
mov edi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00407620
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x18
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00403c00
push dword [ebp - 0x7c]
mov bl, al
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
add esp, 0x40
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
add esp, 0xc
test bl, bl
je 0x41671e
cmp dword [ebp - 0x18], 0xffffffff
jne 0x41664b
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x74], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x64], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x78], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp + 0x14]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x58], eax
mov edi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test edi, edi
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x50], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x70], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00407620
mov edi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 0x24
push 0
lea ecx, [ebp - 0x74]
push ecx
push 1
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push edi
push eax
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00403eb0
push dword [ebp - 0x94]
mov dword [ebp - 0x18], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x64]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
add esp, 0x2c
jmp 0x41664e
mov ebx, dword [ebp + 0x14]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x68], eax
mov edi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test edi, edi
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x60], eax
push esi
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x48]
mov edi, dword [ebp + 8]
push ecx
movzx ecx, byte [ebp + 0x1c]
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x29
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push 5
push dword [ebp - 0x18]
push dword [ebp - 0x88]
push edi
call fcn.00403eb0
add esp, 0x64
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
add esp, 0x14
jmp 0x416721
mov ebx, dword [ebp + 0x14]
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
mov eax, dword [ebp - 0x10]
add esp, 0xc
push eax
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00402130
push 0
add esi, 2
push esi
call fcn.0049110f
add esp, 8
cmp word [eax + 2], 0
lea esi, [eax + 2]
jne 0x416310
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret