Function at 0x421590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44031d
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
push 0x1c
mov ebx, ecx
mov dword [ebp - 0x300], esi
call fcn.00427771
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4215ea
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edi
mov word [eax], cx
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], 8
jb 0x4215f7
mov eax, dword [ebx]
jmp 0x4215f9
mov eax, ebx
lea edx, [ebp - 0x304]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x42177b
push 0x446884
lea edx, [ebp - 0x21c]
call fcn.00421af0
xor eax, eax
add esp, 4
mov word [ebp - 0x254], ax
push 0x15
mov eax, str._could_not_be_opened.
lea esi, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
call fcn.004040e0
mov byte [ebp - 4], 1
xor ecx, ecx
push 0xd
mov eax, str.Registry_key
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], cx
call fcn.004040e0
mov eax, ebx
mov ecx, esi
lea ebx, [ebp - 0x28c]
mov byte [ebp - 4], 2
call fcn.00415a50
mov ecx, eax
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00412fe0
add esp, 4
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x4216c5
mov eax, dword [eax]
mov ecx, dword [0x458868]
push eax
push str.INFO
call fcn.00404920
cmp dword [ebp - 0x25c], edi
jb 0x4216ed
mov eax, dword [ebp - 0x270]
push eax
call fcn.00427715
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x270], cx
cmp dword [ebp - 0x278], edi
jb 0x421720
mov edx, dword [ebp - 0x28c]
push edx
call fcn.00427715
add esp, 4
xor eax, eax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], ax
cmp dword [ebp - 0x224], edi
jb 0x42174c
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00427715
add esp, 4
xor edx, edx
mov byte [ebp - 4], bl
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x240], edi
jb 0x421a0d
mov eax, dword [ebp - 0x254]
jmp 0x421a04
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30c], 0x104
mov dword [ebp - 0x308], 1
jb 0x421799
mov eax, dword [esi]
jmp 0x42179b
mov eax, esi
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x304]
lea ecx, [ebp - 0x308]
push ecx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x421a0f
push 0x446884
lea edx, [ebp - 0x21c]
call fcn.00421af0
xor eax, eax
add esp, 4
mov word [ebp - 0x270], ax
push 0x15
mov eax, str._could_not_be_opened.
lea esi, [ebp - 0x270]
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], edi
call fcn.004040e0
mov byte [ebp - 4], 5
xor ecx, ecx
push 0xd
mov eax, str.__value_name
lea esi, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], cx
call fcn.004040e0
mov byte [ebp - 4], 6
xor edx, edx
push 0xd
mov eax, str.Registry_key
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
call fcn.004040e0
mov eax, ebx
mov ecx, esi
lea ebx, [ebp - 0x2a8]
mov byte [ebp - 4], 7
call fcn.00415a50
mov ecx, eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.00412fe0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x300]
lea ebx, [ebp - 0x2c4]
call fcn.00415a50
mov ecx, eax
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0xa
call fcn.00412fe0
add esp, 4
mov edi, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], edi
jb 0x4218d3
mov eax, dword [eax]
mov ecx, dword [0x458868]
push eax
push str.INFO
call fcn.00404920
cmp dword [ebp - 0x278], edi
jb 0x4218fb
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00427715
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], cx
cmp dword [ebp - 0x2b0], edi
jb 0x42192e
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.00427715
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2b4], ebx
mov word [ebp - 0x2c4], ax
cmp dword [ebp - 0x2cc], edi
jb 0x42195a
mov ecx, dword [ebp - 0x2e0]
push ecx
call fcn.00427715
add esp, 4
xor edx, edx
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2d0], ebx
mov word [ebp - 0x2e0], dx
cmp dword [ebp - 0x294], edi
jb 0x421986
mov eax, dword [ebp - 0x2a8]
push eax
call fcn.00427715
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], ebx
mov word [ebp - 0x2a8], cx
cmp dword [ebp - 0x224], edi
jb 0x4219b2
mov edx, dword [ebp - 0x238]
push edx
call fcn.00427715
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x240], edi
jb 0x4219de
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00427715
add esp, 4
xor edx, edx
mov byte [ebp - 4], bl
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], dx
cmp dword [ebp - 0x25c], edi
jb 0x421a0d
mov eax, dword [ebp - 0x270]
push eax
call fcn.00427715
add esp, 4
xor edi, edi
push 0x1c
call fcn.00427771
mov esi, eax
add esp, 4
mov dword [ebp - 0x300], esi
mov byte [ebp - 4], 0xc
cmp esi, edi
je 0x421a5e
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421a41
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
call fcn.004040e0
jmp 0x421a60
xor esi, esi
mov edx, dword [ebp - 0x304]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret