Function at 0x401380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42b314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
call fcn.00401680
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x58]
add edx, 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push edx
call fcn.004015d0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
mov edx, dword [ebp - 0x58]
push edx
call fcn.004015d0
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401100
add esp, 0x3c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x401417
xor al, al
jmp 0x4015a4
mov ecx, dword [ebp - 0x58]
call fcn.004012c0
movzx ecx, al
test ecx, ecx
jne 0x40142d
xor al, al
jmp 0x4015a4
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f68a
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x1c
call fcn.00401a60
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40146f
mov dword [ebp - 0x6c], 0
jmp 0x4014bc
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x401491
mov dword [ebp - 0x70], 0
jmp 0x4014b6
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.0040fef0
mov dword [ebp - 0x74], esp
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.00401690
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x58]
add eax, 0x3c
push eax
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4014ee
xor al, al
jmp 0x4015a4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x401503
mov dword [ebp - 0x78], 0
jmp 0x401552
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x401525
mov dword [ebp - 0x7c], 0
jmp 0x40154c
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.0040fef0
mov dword [ebp - 0x80], esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.004016e0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004018f0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401a00
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fee0
mov esp, ebp
pop ebp
ret 4