Function at 0x40e595
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004c
call fcn.00417db0
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ebx, 0x42b598
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401000
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401000
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ebx
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00401af4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push ebx
mov ecx, edi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
sub esp, 0xc
mov ecx, esp
push eax
call fcn.00401000
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040e41d
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e480
test al, al
jne 0x40e62c
push 0xffffffffffffffff
push 0x89
mov ecx, esi
call fcn.004027ec
push 1
pop ebx
jmp 0x40e64f
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e666
push 1
mov ecx, esi
call fcn.00402b3b
lea ecx, [ebp - 0x20]
call fcn.0040107a
lea ecx, [ebp - 0x2c]
call fcn.0040107a
mov eax, ebx
jmp 0x40e850
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 1
mov ecx, edi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x40e694
push 0xffffffffffffffff
jmp 0x40e82d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffff
cmp ecx, ebx
jbe 0x40e82b
cmp ecx, 2
jbe 0x40e7e9
cmp ecx, 3
je 0x40e764
push 4
pop eax
cmp ecx, eax
je 0x40e723
cmp ecx, 7
jne 0x40e82b
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 0x1004c]
push eax
push ebx
push ebx
push 1
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40e82b
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1004c], bl
mov byte [ebp + eax - 0x1004b], bl
lea eax, [ebp - 0x1004c]
mov cl, byte [eax]
cmp cl, bl
jne 0x40e720
cmp byte [eax + 1], bl
je 0x40e81a
cmp cl, bl
jne 0x40e720
mov byte [eax], 0xa
inc eax
jmp 0x40e70a
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 1
mov ecx, edi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
push ecx
fild qword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
fstp qword [esp]
call fcn.00401ad1
jmp 0x40e835
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 0x1004c]
push eax
push ebx
push ebx
push 1
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40e82b
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 1]
push eax
call fcn.00417840
mov esi, eax
pop ecx
xor edi, edi
xor ecx, ecx
mov byte [esi], bl
cmp dword [ebp - 4], ebx
jbe 0x40e7d4
movsx eax, byte [ebp + ecx - 0x1004c]
mov edx, eax
shr eax, 4
and edx, 0xf
and eax, 0xf
mov dl, byte [ebp + edx - 0x48]
mov al, byte [ebp + eax - 0x48]
mov byte [edi + esi + 1], dl
mov byte [edi + esi], al
inc edi
inc edi
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x40e7aa
mov ecx, dword [ebp + 0xc]
push esi
mov byte [edi + esi], bl
call fcn.00401af4
push esi
call fcn.004178cb
pop ecx
jmp 0x40e835
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 0x1004c]
push eax
push ebx
push ebx
push 1
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40e82b
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1004c], bl
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1004c]
push eax
call fcn.00401af4
jmp 0x40e835
push 0xfffffffffffffffe
mov ecx, dword [ebp - 0xc]
call fcn.00402b3b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.0040107a
lea ecx, [ebp - 0x2c]
call fcn.0040107a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8