Function at 0x41f3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5ea3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov byte [esp + 0xb4], 1
xor esi, esi
nop
cmp eax, ebp
jne 0x41f468
xor edx, edx
jmp 0x41f46f
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jge 0x41f8ba
cmp eax, ebp
je 0x41f486
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x41f496
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
cmp eax, ebp
mov edx, dword [eax + esi*4]
mov edi, dword [edx + 8]
je 0x41f4a9
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x41f4b3
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax + esi*4]
add eax, 0xc
lea esp, [esp]
mov cl, byte [edi]
mov byte [eax], cl
add edi, 1
add eax, 1
test cl, cl
jne 0x41f4c0
mov ecx, dword [0x4f14e8]
cmp ecx, ebp
je 0x41f4e6
mov eax, dword [0x4f14ec]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x41f4f1
call fcn.0049ed6a
mov ecx, dword [0x4f14e8]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 8]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41f500
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.004068a0
push 1
push ebp
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x98]
mov byte [esp + 0x24], 0x3b
call fcn.00402410
cmp eax, 0xffffffff
je 0x41f546
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x94]
call fcn.00403250
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x34]
push str.SoftwareNotepad2Styles_
push eax
call fcn.00408050
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x41f56b
mov eax, dword [eax + 4]
jmp 0x41f56e
add eax, 4
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebp
push eax
push 0x80000001
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x41f5a8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebp
je 0x41f59e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
cmp eax, ebp
setne bl
cmp dword [esp + 0x48], 0x10
jb 0x41f5bf
mov eax, dword [esp + 0x34]
push eax
call fcn.0049ea7d
add esp, 4
test bl, bl
jne 0x41f8a7
lea ecx, [esp + 0x24]
push ecx
push ebp
push 0x4c7b75
lea ecx, [esp + 0x20]
call fcn.0042c510
test eax, eax
jne 0x41f696
mov eax, dword [esp + 0x24]
cmp eax, ebp
jbe 0x41f696
cmp eax, 0x80
mov dword [esp + 0x1c], 0x80
lea eax, [esp + 0x1c]
ja 0x41f606
lea eax, [esp + 0x24]
mov ecx, dword [0x4f14e8]
cmp ecx, ebp
mov edx, dword [eax]
mov dword [esp + 0x24], edx
je 0x41f624
mov eax, dword [0x4f14ec]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x41f62f
call fcn.0049ed6a
mov ecx, dword [0x4f14e8]
mov ecx, dword [ecx + esi*4]
lea eax, [esp + 0x24]
push eax
add ecx, 0xc
push ecx
push 0x4c7b75
lea ecx, [esp + 0x20]
call fcn.0042c510
mov eax, dword [0x4f14e8]
cmp eax, ebp
je 0x41f663
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x41f673
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax + esi*4]
add edx, 0xc
cmp byte [edx], 0
je 0x41f6a1
mov edi, edi
mov al, byte [edx]
cmp al, 0x41
jl 0x41f68e
cmp al, 0x5a
jg 0x41f68e
add al, 0x20
mov byte [edx], al
add edx, 1
cmp byte [edx], 0
jne 0x41f680
mov eax, dword [0x4f14e8]
mov ecx, dword [0x4f14ec]
xor edi, edi
cmp eax, ebp
je 0x41f6b2
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x41f6c2
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax + esi*4]
cmp dword [edx + edi + 0x94], 0xffffffff
je 0x41f7f5
cmp eax, ebp
je 0x41f6e0
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x41f6ea
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov edx, dword [eax + esi*4]
mov eax, dword [edx + edi + 0x94]
push 0xa
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0049eac2
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x30]
push edx
push ebp
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
jne 0x41f7de
cmp dword [esp + 0x28], 3
jne 0x41f7de
mov eax, dword [esp + 0x20]
cmp eax, ebp
jbe 0x41f7de
cmp eax, 0x36
mov dword [esp + 0x1c], 0x36
lea eax, [esp + 0x1c]
ja 0x41f754
lea eax, [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [0x4f14e8]
cmp eax, ebp
mov dword [esp + 0x20], edx
je 0x41f774
mov edx, dword [0x4f14ec]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x41f784
call fcn.0049ed6a
mov edx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
test eax, eax
mov ebp, dword [eax + esi*4]
je 0x41f794
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x41f79e
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov edx, dword [eax + esi*4]
mov eax, dword [edx + edi + 0x94]
push 0xa
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0049eac2
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [edi + ebp + 0x98]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ebp, ebp
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
add edi, 0x3c
mov dword [esp + 0x20], ebp
jmp 0x41f6a3
cmp eax, ebp
je 0x41f804
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x41f814
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax + esi*4]
cmp dword [edx], 0x3e7
jne 0x41f890
cmp eax, ebp
je 0x41f82c
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x41f836
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax + esi*4]
mov byte [eax + 0xc0], 2
mov ecx, dword [0x4f14e8]
cmp ecx, ebp
je 0x41f858
mov eax, dword [0x4f14ec]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x41f863
call fcn.0049ed6a
mov ecx, dword [0x4f14e8]
mov eax, dword [ecx + esi*4]
mov ecx, dword [0x4c7e00]
add eax, 0x9c
mov dword [eax], ecx
mov edx, dword [0x4c7e04]
mov dword [eax + 4], edx
mov ecx, dword [0x4c7e08]
mov dword [eax + 8], ecx
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [esp + 0x14]
cmp edx, ebp
mov dword [esp + 0x24], ebp
je 0x41f8b2
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov eax, dword [0x4f14e8]
mov ecx, dword [0x4f14ec]
add esi, 1
jmp 0x41f460
cmp dword [esp + 0xa4], 0x10
jb 0x41f8d4
mov edx, dword [esp + 0x90]
push edx
call fcn.0049ea7d
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
je 0x41f8fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0049ec31
add esp, 0xa4
ret