Function at 0x41f930
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5efe
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x18], CreateStatusWindowA
push str.SoftwareNotepad2Styles
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac], 2
call fcn.0042cab0
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0xa8], 1
je 0x41f9c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
xor edi, edi
test eax, eax
jne 0x41f9db
xor edx, edx
jmp 0x41f9e2
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jge 0x41fc23
test eax, eax
je 0x41f9f7
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x41fa01
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 8]
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41fa10
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.004068a0
push 1
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x20], 0x3b
call fcn.00402410
cmp eax, 0xffffffff
je 0x41fa57
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x88]
call fcn.00403250
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x28]
push str.SoftwareNotepad2Styles_
push eax
call fcn.00408050
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x41fa80
mov eax, dword [eax + 4]
jmp 0x41fa83
add eax, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000001
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41fac5
test ebx, ebx
je 0x41fabd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], esi
jb 0x41fad8
mov eax, dword [esp + 0x28]
push eax
call fcn.0049ea7d
add esp, 4
mov ecx, dword [0x4f14e8]
test ecx, ecx
je 0x41faf0
mov eax, dword [0x4f14ec]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41fafb
call fcn.0049ed6a
mov ecx, dword [0x4f14e8]
mov ecx, dword [ecx + edi*4]
add ecx, 0xc
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41fb06
sub eax, esi
add eax, 1
push eax
push ecx
push 1
push 0
push 0x4c7b75
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor esi, esi
jmp 0x41fb30
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41fb4a
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x41fb5a
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax + edi*4]
cmp dword [edx + esi + 0x94], 0xffffffff
je 0x41fbff
test eax, eax
je 0x41fb7a
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x41fb8a
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41fb99
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x41fba9
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
test eax, eax
mov ebp, dword [eax + edi*4]
je 0x41fbb9
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x41fbc3
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + esi + 0x94]
push 0xa
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.0049eac2
add esp, 0xc
push 0x36
lea ecx, [esi + ebp + 0x98]
push ecx
push 3
push 0
lea edx, [esp + 0x50]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0x3c
jmp 0x41fb30
test ebx, ebx
je 0x41fc1b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
add edi, 1
jmp 0x41f9d3
cmp dword [esp + 0x98], 0x10
jb 0x41fc3d
mov eax, dword [esp + 0x84]
push eax
call fcn.0049ea7d
add esp, 4
test ebx, ebx
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], 0
mov byte [esp + 0x84], 0
je 0x41fc66
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0049ec31
add esp, 0x98
ret