Function at 0x40f36b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d0d4
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.0040a610
mov eax, dword [0x5dc050]
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 eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2028]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x203c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2040], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x202c], edi
mov dword [ebp - 0x204c], ebx
call fcn.00401320
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2038], ebx
mov dword [ebp - 0x2034], ebx
mov dword [ebp - 0x2030], ebx
call fcn.004098a0
test al, al
je 0x40f40d
push esi
push esp
push edx
push edi
push ecx
push edx
push edx
pop esp
push ebp
push esp
pop ebp
pop edi
pop ebx
pop esi
pop edx
push edi
push esi
mov edi, dword [ebp - 0x202c]
call fcn.00409816
test al, al
je 0x40f42c
pop edx
push ecx
pop ebp
pop edx
pop ecx
push edi
pop ecx
push ebx
pop esi
push edx
pop eax
push eax
pop eax
pop esp
push ebp
push edx
pop ebx
push esp
push edi
push eax
push edi
push esp
lea eax, [ebp - 0x2038]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f472
lea eax, [ebp - 0x2028]
mov ecx, edi
push eax
call fcn.004012d3
push 0
push 1
lea ecx, [ebp - 0x2028]
call fcn.004019c3
mov eax, edi
jmp 0x40f681
call fcn.00409b52
test al, al
je 0x40f48b
push esi
pop edx
push ecx
push ecx
pop ebx
push ebp
pop esp
push ebx
push ecx
pop ecx
push edx
pop eax
pop esp
push esi
push eax
push ebx
call fcn.0040992a
test al, al
je 0x40f4ab
push ebx
pop esp
push edx
pop esi
push esi
pop ebx
pop eax
push eax
push edi
push esi
push ebp
push ebp
pop ebp
push edx
push eax
pop esp
push edx
push ebp
pop esp
pop ecx
push ebx
push edi
pop ebx
call fcn.00409816
test al, al
je 0x40f4d3
push esp
push edx
pop esi
pop edx
push ecx
push ecx
push esi
pop ecx
pop edi
pop edi
pop ebp
push edx
pop esp
pop ecx
push ebp
push ebx
push edi
pop esi
push eax
push ecx
pop ebp
pop eax
pop esp
push edi
push esp
push ebx
pop edi
push eax
push ecx
push ebp
pop ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2034]
xor ebx, ebx
mov edi, 0xf013f
push ebx
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp - 0x203c]
push dword [ebp - 0x2038]
call esi
test eax, eax
je 0x40f523
push dword [ebp - 0x2038]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x202c]
lea eax, [ebp - 0x2028]
push eax
call fcn.004012d3
push ebx
jmp 0x40f66e
push ebx
lea eax, [ebp - 0x2030]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp - 0x2040]
push dword [ebp - 0x2034]
call esi
test eax, eax
je 0x40f55a
push dword [ebp - 0x2034]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x2030]
call esi
jmp 0x40f50b
call fcn.0040992a
test al, al
je 0x40f584
push edi
pop esi
push ebp
pop eax
pop ebp
pop edx
pop edi
push ebx
push ebx
pop esi
pop eax
push esi
push esp
pop edx
push esi
push eax
pop ecx
pop ebx
pop esi
pop ebp
pop ecx
pop eax
push esp
pop eax
push edi
pop edx
pop ebp
pop edi
pop edx
pop ebx
pop ebx
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.00415c80
add esp, 0xc
mov dword [ebp - 0x2044], 0x1000
lea eax, [ebp - 0x2044]
push eax
lea eax, [ebp - 0x2010]
push eax
push ebx
push ebx
push dword [ebp - 0x2048]
push dword [ebp - 0x2030]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2030]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x2034]
call esi
push dword [ebp - 0x2038]
call esi
lea eax, [ebp - 0x2010]
push eax
call fcn.004191f1
pop ecx
test eax, eax
je 0x40f50b
call fcn.00409cab
test al, al
je 0x40f614
pop esi
push ebx
pop ecx
pop esi
pop ebx
pop edi
pop esi
push esp
push edx
push edx
pop ebp
push eax
push ebx
pop ecx
pop esp
pop ebx
pop esp
pop esp
push esp
call fcn.00409c21
test al, al
je 0x40f638
push edx
push esi
pop ecx
pop esp
pop edx
pop ecx
push edx
push eax
push ebp
pop esi
pop edi
push ebx
pop esp
pop ecx
pop ecx
pop ecx
pop edi
push esp
pop edi
pop ebp
pop ecx
push ecx
pop eax
push edx
pop eax
pop ebx
push ebx
call fcn.00409bdc
test al, al
je 0x40f65a
pop ebx
pop edx
pop edi
push ebx
pop ecx
pop edx
pop ebx
push ebp
push ecx
pop ebx
push ebp
pop ebx
push edx
push esi
push ecx
push ecx
push ecx
push eax
pop esi
push esp
pop edx
pop edx
pop edi
push ecx
push edi
mov ecx, dword [ebp - 0x202c]
lea eax, [ebp - 0x2010]
push eax
call fcn.00401320
push 0
push 1
lea ecx, [ebp - 0x2028]
call fcn.004019c3
mov eax, dword [ebp - 0x202c]
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.0040a159
mov esp, ebp
pop ebp
ret