Function at 0x401ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [0x421a00]
push edi
push 0x4203e4
mov edi, ecx
push eax
mov dword [esp + 0xc], 0
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401b17
push 0x4203e0
jmp 0x401c57
mov ecx, dword [0x421a00]
push 0x4203dc
push ecx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401b39
push 0x4203d4
jmp 0x401c57
mov edx, dword [0x421a00]
push 0x4203d0
push edx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401b5b
push 0x4203c8
jmp 0x401c57
mov eax, dword [0x421a00]
push 0x4203c0
push eax
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401b7c
push 0x4203b8
jmp 0x401c57
mov ecx, dword [0x421a00]
push 0x4203b0
push ecx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401b9e
push 0x4203a8
jmp 0x401c57
mov edx, dword [0x421a00]
push 0x4203a4
push edx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401bc0
push 0x42039c
jmp 0x401c57
mov eax, dword [0x421a00]
push 0x420394
push eax
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401bde
push 0x42038c
jmp 0x401c57
mov ecx, dword [0x421a00]
push 0x420384
push ecx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401bfd
push 0x42037c
jmp 0x401c57
mov edx, dword [0x421a00]
push 0x420378
push edx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401c1c
push 0x420370
jmp 0x401c57
mov eax, dword [0x421a00]
push 0x420368
push eax
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401c3a
push 0x420360
jmp 0x401c57
mov ecx, dword [0x421a00]
push 0x420358
push ecx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x401c78
push 0x420350
mov ecx, edi
call fcn.00401940
test eax, eax
jne 0x401c78
pop edi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
add esp, 0x164
ret
mov eax, dword [edi + 0x9c]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401dc8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov esi, 1
mov dword [esp + 0xc], esi
push esi
lea eax, [esp + 0x28]
push 0x420348
push eax
call fcn.00403e79
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x64
call ebp
test eax, eax
jne 0x401d08
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xa4]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0040fb8e
inc esi
cmp esi, 0x14
jl 0x401caf
mov eax, dword [0x4206f4]
mov dword [esp + 0x14], 0xc8
mov dword [esp + 0x10], eax
mov eax, dword [0x421a04]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x16c], esi
je 0x401d32
push 0x42033c
jmp 0x401d37
push 0x420330
lea ecx, [esp + 0x14]
call fcn.00413d57
lea ecx, [esp + 0x14]
lea edx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push esi
push ecx
push edx
call ebp
test eax, eax
jne 0x401d9b
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x20]
push eax
call fcn.00413c88
push eax
lea ecx, [edi + 0xa0]
mov byte [esp + 0x170], 1
call fcn.00413d07
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0
call fcn.00413c1a
jmp 0x401d9f
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00413c1a
mov eax, dword [esp + 0xc]
cmp eax, esi
pop esi
pop ebp
jne 0x401dd6
push 0
push 0
push 0x4202f0
call fcn.004171da
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 4]
pop edi
mov dword fs:[0], ecx
add esp, 0x164
ret