Function at 0x415000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d566b
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x693f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x614], ebx
mov dword [ebp - 0x614], ebx
mov dword [ebp - 4], 0
call fcn.00409450
mov ecx, eax
test ecx, ecx
je 0x415320
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x60c], esi
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x618], edi
lea eax, [ebp - 0x610]
mov dword [ebp - 0x610], edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4150b4
mov edi, dword [ebp - 0x610]
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x61c], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x415188
push 0xca
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.005a49e0
add esp, 0xc
mov dword [ebp - 0x610], 0xc8
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x614]
push eax
push 0
push 0x64152c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415128
mov eax, dword [ebp - 0x614]
cmp eax, 1
je 0x415116
cmp eax, 2
jne 0x415128
cmp dword [ebp - 0x610], 0
jne 0x415128
xor eax, eax
mov word [ebp - 0xe0], ax
test edi, edi
je 0x41513b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x620], edi
cmp word [ebp - 0xe0], 0
mov dword [ebp - 0x61c], 0
je 0x415188
lea ecx, [ebp - 0xe0]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415160
sub ecx, edx
lea eax, [ebp - 0xe0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60c]
call fcn.0040f140
mov esi, dword [ebp - 0x60c]
push 0x110
lea eax, [ebp - 0x604]
mov dword [ebp - 0x608], 0x114
push 0
push eax
call fcn.005a49e0
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4151ee
lea ecx, [ebp - 0x608]
push ecx
call eax
test eax, eax
jne 0x4151ee
mov ecx, dword [ebp - 0x604]
mov eax, dword [ebp - 0x5fc]
mov edx, dword [ebp - 0x600]
test ecx, ecx
jne 0x41523b
test edx, edx
jne 0x415240
test eax, eax
jne 0x415240
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040f050
add eax, 0x10
mov dword [ebx], eax
test edi, edi
je 0x415208
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41521d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a1c7e
mov esp, ebp
pop ebp
ret
cmp ecx, 4
ja 0x415283
movzx eax, ax
push eax
push edx
push ecx
push str.__Build__d._d._d_
lea eax, [ebp - 0x2e8]
push 0x104
push eax
call fcn.00416440
lea ecx, [ebp - 0x2e8]
add esp, 0x18
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415270
lea eax, [ebp - 0x2e8]
jmp 0x4152d1
movzx eax, word [ebp - 0x5fc]
push eax
push dword [ebp - 0x600]
lea eax, [ebp - 0x5f4]
push ecx
push eax
push str.__s__Build__d._d._d_
lea eax, [ebp - 0x4f0]
push 0x104
push eax
call fcn.00416440
lea ecx, [ebp - 0x4f0]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4152c0
lea eax, [ebp - 0x4f0]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60c]
call fcn.0040f430
mov esi, dword [ebp - 0x60c]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040f050
add eax, 0x10
mov dword [ebx], eax
test edi, edi
je 0x415302
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41521d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41521d
push 0x80004005
call fcn.00409320
int3