Function at 0x4014f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x412556
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x44647c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44647c]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
push 0x10000
mov dword [esp + 0x28], 0x10000
mov byte [esp + 0x1b], 0
call fcn.00403ecb
push 0x310
push 0xe6
mov ebx, eax
push str._d__d
lea eax, [esp + 0x48]
push 0xc8
push eax
mov dword [esp + 0x34], ebx
call fcn.00403e60
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0
push 0
lea edx, [esp + 0x48]
push edx
push SysStringLen
call esi
cmp eax, 0xea
jne 0x4015cc
lea esp, [esp]
mov eax, dword [esp + 0x24]
add eax, 0x400
push eax
push ebx
mov dword [esp + 0x2c], eax
call fcn.00403f98
add esp, 8
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x48]
push edx
push SysStringLen
mov dword [esp + 0x34], eax
call esi
cmp eax, 0xea
mov ebx, dword [esp + 0x1c]
je 0x401590
mov ebp, dword [ebx + 0x18]
add ebp, ebx
cmp dword [ebx + 0x1c], 0
mov dword [esp + 0x2c], 0
jbe 0x401796
cmp dword [ebp + 0xc], 0xe6
je 0x4015f4
add ebp, dword [ebp]
jmp 0x401782
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 4]
add esi, ebp
xor ecx, ecx
mov dword [esp + 0x34], esi
add edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1d8], 1
cmp dword [ebp + 0x28], ecx
mov dword [esp + 0x28], ecx
jle 0x401737
jmp 0x401634
mov esi, dword [esp + 0x34]
push 0x444880
lea ebx, [esp + 0x1c]
call fcn.004013f0
mov eax, dword [edi + 0x10]
add eax, edi
push eax
lea ebx, [esp + 0x24]
call fcn.004013f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401679
cmp dword [eax + 4], 0
jne 0x401670
mov ecx, dword [eax]
push ecx
call fcn.0040f110
mov edx, dword [esp + 0x18]
mov dword [edx + 4], eax
mov eax, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
jmp 0x401681
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40169f
cmp dword [ebx + 4], 0
jne 0x40169a
mov ecx, dword [ebx]
push ecx
call fcn.0040f110
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
jmp 0x4016a1
xor eax, eax
mov edx, dword [esp + 0x30]
push edx
push eax
call fcn.0040e9ca
add esp, 8
test eax, eax
jne 0x4016d9
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jbe 0x4016d9
lea ebx, [ebx]
cmp dword [esi + 4], 0x310
je 0x4016d4
add esi, dword [esi]
add eax, 1
cmp eax, ecx
jb 0x4016c0
jmp 0x4016d9
mov byte [esp + 0x17], 1
mov eax, dword [edi]
add eax, edi
mov edi, dword [eax]
add edi, eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [ebp + 0x28]
mov dword [esp + 0x28], eax
jl 0x401630
mov esi, dword [esp + 0x18]
test esi, esi
je 0x401731
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401731
mov eax, dword [esi]
test eax, eax
je 0x401718
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x401728
push eax
call fcn.00403f93
add esp, 4
push esi
call fcn.00403f8e
add esp, 4
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x1d8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ecx
je 0x401782
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401782
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
test eax, eax
je 0x401769
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x401779
push eax
call fcn.00403f93
add esp, 4
push esi
call fcn.00403f8e
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
jb 0x4015e3
push ebx
call fcn.004041b3
add esp, 4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00403a70
add esp, 0x1c8
ret