Function at 0x4141d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cad98
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6385e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
je 0x41423b
xor al, al
jmp 0x414417
cmp dword [ebp - 0x14], 0
jne 0x41425b
mov eax, dword [0x63e870]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004b38f0
mov al, 1
jmp 0x414417
cmp dword [ebp - 0x10], 7
jne 0x4142ee
push 0
lea ecx, [ebp - 0x24]
call fcn.00430200
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.004144b0
movzx eax, al
test eax, eax
jne 0x4142aa
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00430250
mov al, byte [ebp - 0x32]
jmp 0x414417
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x5fc5bc
call fcn.004b5710
add esp, 0xc
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00430250
mov al, byte [ebp - 0x33]
jmp 0x414417
cmp dword [ebp - 0x10], 1
je 0x41430a
cmp dword [ebp - 0x10], 4
je 0x41430a
cmp dword [ebp - 0x10], 0xb
je 0x41430a
cmp dword [ebp - 0x10], 2
jne 0x414415
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x414338
xor al, al
jmp 0x414417
mov byte [ebp - 0x31], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x30], 0
jne case.0x414391.2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
sub ecx, 1
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0xa
ja case.0x414391.2
mov edx, dword [ebp - 0x54]
movzx eax, byte [edx + 0x41443c]
jmp dword [eax*4 + 0x414428]
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004b38f0
mov byte [ebp - 0x31], 1
jmp case.0x414391.2
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004b38f0
mov byte [ebp - 0x31], 1
jmp case.0x414391.2
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00411230
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.004b3860
mov byte [ebp - 0x31], 1
jmp case.0x414391.2
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
cdq
push edx
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00407ac0
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.004b3860
mov byte [ebp - 0x31], 1
mov edx, dword [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 0x31]
jmp 0x414417
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8