Function at 0x4412c0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4cdbf8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4eeef8], 0
push ebx
mov ebx, dword [ebp + 8]
jne 0x4412f1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047fe8c
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
jne 0x4415b4
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.Software
push SysReAllocString
call esi
test eax, eax
jne 0x44154e
mov esi, ebx
test ebx, ebx
je 0x44148d
nop dword [eax]
push 0x5c
push esi
call fcn.0048d4ac
mov edi, eax
add esp, 8
test edi, edi
jne 0x44136b
cmp byte [esi], al
je 0x44148d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441360
sub ecx, edx
jmp 0x44136f
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0041e7d0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4413e4
push dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x264], eax
test edi, edi
je 0x441499
lea esi, [edi + 1]
test esi, esi
jne 0x441340
jmp 0x441493
test edi, edi
je 0x4413ec
sub edi, ebx
jmp 0x4413fa
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4413f1
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0041e7d0
mov eax, dword [0x4eeef8]
add esp, 0xc
test eax, eax
je 0x441472
mov edi, dword [eax]
test edi, edi
je 0x441472
mov eax, dword [0x4eeee0]
test eax, eax
je 0x44142b
mov esi, dword [eax + 0x190]
jmp 0x441431
mov esi, dword [0x4eeee4]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call eax
push eax
call fcn.00420fd0
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4eeee0]
push esi
push 0
push 0x418
push str.D:MyProjectsProPilotLibLibMain.c
push 0x103
call edi
add esp, 0x28
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x264], 0
jmp 0x4415ae
mov eax, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4415ae
mov eax, dword [0x4eeef8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
and dword [eax + 0xc], 0xfffffffb
mov eax, dword [0x4eeef8]
add eax, 0xc
push eax
push 4
push 0
push str.SystemFlags
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4eeef8]
push 4
add eax, 0x4c8
push eax
push 4
push 0
push str.KeepLog
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4eeef8]
push 4
add eax, 0x4cc
push eax
push 4
push 0
push str.LogLevel
push dword [ebp - 0x264]
call edi
mov edx, dword [0x4eeef8]
add edx, 0x270
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441520
sub ecx, edi
lea eax, [ecx + 1]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push 1
push 0
push str.LogDir
push dword [ebp - 0x264]
call eax
push dword [ebp - 0x264]
call esi
jmp 0x4415ae
mov eax, dword [0x4eeef8]
test eax, eax
je 0x4415b4
mov edi, dword [eax]
test edi, edi
je 0x4415b4
mov eax, dword [0x4eeee0]
test eax, eax
je 0x44156e
mov esi, dword [eax + 0x190]
jmp 0x441574
mov esi, dword [0x4eeee4]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware:__s
push 0
call eax
push eax
call fcn.00420fd0
add esp, 8
push eax
push str.Error_creating_Key:_HKCUSoftware:__s
push dword [0x4eeee0]
push esi
push 0
push 0x428
push str.D:MyProjectsProPilotLibLibMain.c
push 0x103
call edi
add esp, 0x24
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.Software
push SysReAllocString
call esi
test eax, eax
jne 0x441b1d
mov esi, ebx
test ebx, ebx
je 0x441732
nop dword [eax]
push 0x5c
push esi
call fcn.0048d4ac
mov edi, eax
add esp, 8
test edi, edi
jne 0x44161b
cmp byte [esi], al
je 0x441732
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441610
sub ecx, edx
jmp 0x44161f
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0041e7d0
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x264]
call esi
test eax, eax
jne 0x441694
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x264], ecx
test edi, edi
je 0x44173e
lea esi, [edi + 1]
test esi, esi
jne 0x4415f0
jmp 0x441738
test edi, edi
je 0x44169c
sub edi, ebx
jmp 0x4416aa
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4416a1
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0041e7d0
mov eax, dword [0x4eeef8]
add esp, 0xc
test eax, eax
je 0x441721
mov edi, dword [eax]
test edi, edi
je 0x441721
mov eax, dword [0x4eeee0]
test eax, eax
je 0x4416db
mov esi, dword [eax + 0x190]
jmp 0x4416e1
mov esi, dword [0x4eeee4]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420fd0
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4eeee0]
push esi
push 0
push 0x434
push str.D:MyProjectsProPilotLibLibMain.c
push 0x103
call edi
add esp, 0x28
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x441b7c
mov ecx, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test ecx, ecx
je 0x441b7c
mov eax, dword [0x4eeef8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add eax, 0xdc4
push 4
push eax
push 4
push 0
push str.SelectedNodeUID
push ecx
call edi
mov eax, dword [0x4eeef8]
push 4
add eax, 8
push eax
push 4
push 0
push str.UserFlags
push dword [ebp - 0x264]
call edi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.DialogInfoEx
push dword [ebp - 0x264]
call esi
test eax, eax
jne 0x441876
mov eax, dword [0x555920]
test al, 1
je 0x441819
and eax, 0xfffffffe
mov esi, 1
mov dword [0x555920], eax
test esi, esi
je 0x4417d7
xor ecx, ecx
xor eax, eax
mov dword [0x4ef170], ecx
jmp 0x4417e7
mov ecx, dword [0x4ef170]
cmp ecx, 0x65
jge 0x441813
mov eax, dword [0x4ef174]
test eax, eax
jne 0x4417f4
mov eax, dword [ecx*4 + 0x555924]
jmp 0x4417f7
mov eax, dword [eax + 0x20]
mov dword [0x4ef174], eax
test eax, eax
je 0x441807
mov edx, dword [eax]
test dl, 1
jne 0x44183a
inc ecx
mov dword [0x4ef170], ecx
cmp ecx, 0x65
jl 0x4417e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x26c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push str.DialogInfo
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x44187c
movups xmm0, xmmword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0xfffffffe
mov dword [eax], edx
xor esi, esi
push 0x18
movups xmmword [ebp - 0x284], xmm0
movq xmm0, qword [eax + 0x18]
lea eax, [ebp - 0x284]
push eax
push 3
push esi
push ecx
push dword [ebp - 0x26c]
movq qword [ebp - 0x274], xmm0
call edi
jmp 0x4417c7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x20006
push 0
push str.D32class
push 0
push str.ListInfo
push dword [ebp - 0x264]
call esi
test eax, eax
jne 0x4419f0
mov eax, dword [0x555720]
test al, 1
je 0x4419e8
and eax, 0xfffffffe
mov dword [ebp - 0x268], 0
mov dword [0x555720], eax
lea eax, [ebp - 0x28c]
push 1
push eax
call fcn.00448ba0
add esp, 8
test eax, eax
je 0x4419e8
nop word [eax + eax]
movzx ecx, byte [ebp - 0x284]
xor eax, eax
shl ecx, 3
add ecx, 0xa
setb al
neg eax
or eax, ecx
push eax
push dword [ebp - 0x268]
call fcn.004845db
mov cl, byte [ebp - 0x284]
mov dword [ebp - 0x268], eax
mov byte [eax], cl
mov eax, dword [ebp - 0x268]
mov byte [eax + 1], 8
movzx eax, byte [ebp - 0x284]
shl eax, 3
push eax
mov eax, dword [ebp - 0x268]
push dword [ebp - 0x280]
add eax, 2
push eax
call fcn.00481690
movzx edx, byte [ebp - 0x284]
add esp, 0x14
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x278]
mov dword [ecx + edx*8 + 2], eax
movzx edx, byte [ebp - 0x284]
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x270]
mov dword [ecx + edx*8 + 6], eax
movzx eax, byte [ebp - 0x284]
lea eax, [eax*8 + 0xa]
push eax
push dword [ebp - 0x268]
push 3
push 0
push dword [ebp - 0x288]
push dword [ebp - 0x26c]
call edi
cmp dword [ebp - 0x268], 0
je 0x4419cf
lea eax, [ebp - 0x268]
push eax
call fcn.004201d0
push dword [ebp - 0x268]
call fcn.0048737c
add esp, 8
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00448ba0
add esp, 8
test eax, eax
jne 0x4418f0
push dword [ebp - 0x26c]
call ebx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.Editors
push dword [ebp - 0x264]
call esi
test eax, eax
jne 0x441b13
push 4
push 0x555b14
push 4
push eax
push str.ActiveEditor
push dword [ebp - 0x26c]
call edi
xor esi, esi
cmp dword [0x555b10], esi
jle 0x441b0b
nop word [eax + eax]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
mov eax, dword [0x555b18]
push 0
push 0x20006
push 0
push 0
push 0
push 1
push dword [eax + esi*4]
lea eax, [ebp - 0x25c]
push eax
call fcn.004230a0
add esp, 0xc
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x441afe
mov eax, dword [0x555b18]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441aa2
sub ecx, edi
lea eax, [ecx + 1]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push 1
push 0
push str.Path
push dword [ebp - 0x268]
call eax
mov eax, dword [0x555b1c]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441ad3
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push 0x4a1548
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x268]
call ebx
inc esi
cmp esi, dword [0x555b10]
jl 0x441a50
push dword [ebp - 0x26c]
call ebx
push dword [ebp - 0x264]
call ebx
jmp 0x441b7c
mov eax, dword [0x4eeef8]
test eax, eax
je 0x441b7c
mov edi, dword [eax]
test edi, edi
je 0x441b7c
mov eax, dword [0x4eeee0]
test eax, eax
je 0x441b3d
mov esi, dword [eax + 0x190]
jmp 0x441b43
mov esi, dword [0x4eeee4]
push str.Error_creating_Key:_HKCUsSoftware:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420fd0
add esp, 8
push eax
push str.Error_creating_Key:_HKCUsSoftware:__s
push dword [0x4eeee0]
push esi
push 0
push 0x476
push str.D:MyProjectsProPilotLibLibMain.c
push 0x103
call edi
add esp, 0x24
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047fe8c
mov esp, ebp
pop ebp
ret