Function at 0x41f0e0
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5e68
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x14], CreateStatusWindowA
xor edi, edi
push str.SoftwareNotepad2Formatting
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], edi
call fcn.0042cab0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41f142
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareNotepad2Formatting
push 0x80000001
mov dword [esp + 0x8c], 1
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x41f3b3
mov esi, dword [0x4f1214]
cmp esi, edi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], ebx
je 0x41f3a8
mov ecx, dword [0x4f1218]
mov edi, ecx
sub edi, esi
mov eax, 0x84210843
imul edi
add edx, edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41f3a8
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x68], 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
lea esp, [esp]
test esi, esi
je 0x41f397
sub ecx, esi
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41f397
mov ecx, dword [esp + 0x28]
xor ebx, ebx
lea edi, [ecx + esi]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
cmp dword [edi + 0x78], 0x10
mov byte [esp + 0x68], 3
jb 0x41f223
mov eax, dword [edi + 0x64]
jmp 0x41f226
lea eax, [edi + 0x64]
push ebx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.0041c160
mov ecx, dword [eax + 4]
mov eax, ecx
mov byte [esp + 0x68], 4
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41f240
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0041dfd0
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x30], vtable.util::utf8::string_convert_base_wchar_t_.0
je 0x41f273
push eax
call fcn.0049ed7a
add esp, 4
add edi, 0x1c
mov word [edi], 0x43
mov eax, dword [esp + 0x50]
lea eax, [eax + eax + 0x43]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
jae 0x41f297
push eax
lea ecx, [esp + 0x1c]
call fcn.00402b50
cmp edi, ebx
jne 0x41f2b2
push 0x31b
push str.i:projectscpp_notepad2_sourceutils.h
push 0x4c7a40
call fcn.0049f8fe
add esp, 0xc
cmp dword [esp + 0x1c], 0x43
jae 0x41f2c8
push 0x43
lea ecx, [esp + 0x1c]
call fcn.00402b50
mov esi, eax
jmp 0x41f2cc
mov esi, dword [esp + 0x18]
push 0x43
push edi
push esi
mov dword [esp + 0x24], esi
call fcn.004a0150
mov ebx, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], 8
jae 0x41f2eb
lea ebx, [esp + 0x40]
mov edi, dword [esp + 0x50]
add edi, edi
test ebx, ebx
jne 0x41f30c
push 0x31b
push str.i:projectscpp_notepad2_sourceutils.h
push 0x4c7a40
call fcn.0049f8fe
add esp, 0xc
lea eax, [edi + 0x43]
cmp dword [esp + 0x1c], eax
jae 0x41f321
push eax
lea ecx, [esp + 0x1c]
call fcn.00402b50
mov esi, eax
push edi
lea edx, [esi + 0x43]
push ebx
push edx
mov dword [esp + 0x24], esi
call fcn.004a0150
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x41f342
mov eax, dword [eax + 4]
jmp 0x41f345
add eax, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push esi
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x54], 8
mov byte [esp + 0x68], 2
jb 0x41f374
mov eax, dword [esp + 0x40]
push eax
call fcn.0049ea7d
add esp, 4
add dword [esp + 0x14], 1
add dword [esp + 0x28], 0x7c
mov ecx, dword [0x4f1218]
mov esi, dword [0x4f1214]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
jmp 0x41f1d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41f3a8
push eax
call fcn.0049ed7a
add esp, 4
test ebx, ebx
je 0x41f3b3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049ec31
mov esp, ebp
pop ebp
ret