Function at 0x401e7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411a07
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x41400c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x58], 5
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov byte [esp + 0x58], 8
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x58], 0xc
test byte [ebp + 8], 1
je 0x402615
mov ecx, eax
call fcn.0040298e
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x402611
xor eax, eax
mov dword [esp + 0x30], 1
cmp word [esi], ax
je 0x4039e1
mov dword [esp + 0x30], eax
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x44]
call fcn.00401e5a
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x34]
call fcn.00401e5a
or dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00401e5a
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov cl, 1
xor edx, edx
jmp 0x402691
test eax, eax
je 0x4026be
jmp 0x401f24
mov eax, dword [esp + 0x14]
test byte [ebp + 8], 0xe
je 0x401f24
cmp dword [ebp + 0xc], 0
je 0x402634
mov ecx, eax
call fcn.00402da2
test eax, eax
je 0x401f24
test byte [ebp + 8], 2
je 0x4026be
mov eax, dword [0x414070]
xor edi, edi
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x4039f9
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.004025da
mov byte [esp + 0x58], 0x28
xor ebx, ebx
inc ebx
mov dword [esp + 0x1c], ebx
push dword [eax]
push 0x20019
push 0
push 0x402798
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401f65
xor edx, edx
mov cl, dl
mov dword [esp + 0x58], 0xc
test bl, 1
je 0x4026b6
and ebx, 0xfffffffe
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], 0xc
mov eax, dword [esp + 0x24]
cmp dword [eax], edx
jne 0x403a2d
test cl, cl
jne 0x403a39
test byte [ebp + 8], 4
je 0x402787
mov eax, dword [0x414074]
xor edi, edi
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x403abd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.004025da
mov byte [esp + 0x58], 0x33
or ebx, 2
mov dword [esp + 0x1c], ebx
push dword [eax]
push 0x20019
push 0
push 0x402798
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b43
mov cl, 1
xor edx, edx
mov dword [esp + 0x58], 0xc
test bl, 2
je 0x402743
and ebx, 0xfffffffd
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], 0xc
mov eax, dword [esp + 0x24]
cmp dword [eax], edx
je 0x402743
mov dword [eax + 4], 1
test cl, cl
je 0x402787
lea eax, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x28]
push eax
push edx
push dword [esp + 0x24]
mov dword [esp + 0x38], edx
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403af1
mov eax, dword [esp + 0x24]
neg edi
sbb edi, edi
not edi
and edi, dword [esp + 0x38]
mov dword [esp + 0x38], edi
test eax, eax
jne 0x401f24
test byte [ebp + 8], 8
jne 0x403b4c
xor esi, esi
jmp 0x401f24
mov ecx, esi
call fcn.004010b8
xor eax, eax
mov esi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
jmp 0x402611
inc edi
cmp dword [esp + 0x40], 0
je 0x403a14
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x40], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x401f65
mov dword [esp + 0x40], 1
jmp 0x401f65
mov dword [eax + 4], 1
jmp 0x4026b6
lea eax, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x28]
push eax
push edx
push dword [esp + 0x24]
mov dword [esp + 0x38], edx
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403aa6
cmp dword [esp + 0x20], 1
jne 0x403aa6
push dword [esp + 0x18]
push eax
call dword [0x414068]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x403aa1
xor eax, eax
mov dword [esp + 0x30], 1
mov word [esi], ax
lea eax, [esp + 0x18]
push eax
push esi
xor eax, eax
push eax
push eax
push dword [esp + 0x24]
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [esp + 0x30], 0
xor eax, eax
inc eax
jmp 0x403aaa
mov eax, dword [esp + 0x24]
neg edi
sbb edi, edi
not edi
and edi, dword [esp + 0x40]
mov dword [esp + 0x40], edi
jmp 0x401f6e
inc edi
cmp dword [esp + 0x38], 0
je 0x403ad8
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x38], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
test eax, eax
je 0x402717
mov dword [esp + 0x38], 1
jmp 0x402717
cmp dword [esp + 0x20], 1
jne 0x40276d
push dword [esp + 0x18]
push eax
call dword [0x414068]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x403b3b
xor eax, eax
mov dword [esp + 0x30], 1
mov word [esi], ax
lea eax, [esp + 0x18]
push eax
push esi
xor eax, eax
push eax
push eax
push dword [esp + 0x24]
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [esp + 0x30], 0
xor eax, eax
inc eax
jmp 0x402771
xor edx, edx
mov cl, dl
jmp 0x40271b
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.004025da
mov byte [esp + 0x58], 0x3c
or ebx, 4
mov dword [esp + 0x1c], ebx
push dword [eax]
push 0x20019
push 0
push 0x403c2c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x403bb0
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0
push edi
push dword [esp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403bb0
cmp dword [esp + 0x20], 1
mov byte [esp + 0x13], 1
je 0x403bb5
mov byte [esp + 0x13], 0
mov dword [esp + 0x58], 0xc
test bl, 4
je 0x403bd2
and ebx, 0xfffffffb
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.004052fb
cmp byte [esp + 0x13], 0
je 0x402791
xor ebx, ebx
mov byte [esp + 0x28], bl
push dword [esp + 0x28]
push dword [esp + 0x1c]
call fcn.00407b3d
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x403c23
mov dword [esp + 0x30], 1
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebx
push edi
push dword [esp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x30], ebx
jmp 0x401f24
mov esi, ebx
jmp 0x401f24