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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4edef8], 0
push ebx
mov ebx, dword [ebp + 8]
jne 0x4408a1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
jne 0x440b64
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 0x440afe
mov esi, ebx
test ebx, ebx
je 0x440a3d
nop dword [eax]
push 0x5c
push esi
call fcn.0048ca3c
mov edi, eax
add esp, 8
test edi, edi
jne 0x44091b
cmp byte [esi], al
je 0x440a3d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440910
sub ecx, edx
jmp 0x44091f
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0041d160
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 0x440994
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 0x440a49
lea esi, [edi + 1]
test esi, esi
jne 0x4408f0
jmp 0x440a43
test edi, edi
je 0x44099c
sub edi, ebx
jmp 0x4409aa
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4409a1
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0041d160
mov eax, dword [0x4edef8]
add esp, 0xc
test eax, eax
je 0x440a22
mov edi, dword [eax]
test edi, edi
je 0x440a22
mov eax, dword [0x4edee0]
test eax, eax
je 0x4409db
mov esi, dword [eax + 0x190]
jmp 0x4409e1
mov esi, dword [0x4edee4]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call eax
push eax
call fcn.00420470
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4edee0]
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 0x440b5e
mov eax, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x440b5e
mov eax, dword [0x4edef8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
and dword [eax + 0xc], 0xfffffffb
mov eax, dword [0x4edef8]
add eax, 0xc
push eax
push 4
push 0
push str.SystemFlags
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4edef8]
push 4
add eax, 0x4c8
push eax
push 4
push 0
push str.KeepLog
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4edef8]
push 4
add eax, 0x4cc
push eax
push 4
push 0
push str.LogLevel
push dword [ebp - 0x264]
call edi
mov edx, dword [0x4edef8]
add edx, 0x270
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440ad0
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 0x440b5e
mov eax, dword [0x4edef8]
test eax, eax
je 0x440b64
mov edi, dword [eax]
test edi, edi
je 0x440b64
mov eax, dword [0x4edee0]
test eax, eax
je 0x440b1e
mov esi, dword [eax + 0x190]
jmp 0x440b24
mov esi, dword [0x4edee4]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware:__s
push 0
call eax
push eax
call fcn.00420470
add esp, 8
push eax
push str.Error_creating_Key:_HKCUSoftware:__s
push dword [0x4edee0]
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 0x4410cd
mov esi, ebx
test ebx, ebx
je 0x440ce2
nop dword [eax]
push 0x5c
push esi
call fcn.0048ca3c
mov edi, eax
add esp, 8
test edi, edi
jne 0x440bcb
cmp byte [esi], al
je 0x440ce2
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440bc0
sub ecx, edx
jmp 0x440bcf
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0041d160
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 0x440c44
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 0x440cee
lea esi, [edi + 1]
test esi, esi
jne 0x440ba0
jmp 0x440ce8
test edi, edi
je 0x440c4c
sub edi, ebx
jmp 0x440c5a
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x440c51
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0041d160
mov eax, dword [0x4edef8]
add esp, 0xc
test eax, eax
je 0x440cd1
mov edi, dword [eax]
test edi, edi
je 0x440cd1
mov eax, dword [0x4edee0]
test eax, eax
je 0x440c8b
mov esi, dword [eax + 0x190]
jmp 0x440c91
mov esi, dword [0x4edee4]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4edee0]
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 0x44112c
mov ecx, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test ecx, ecx
je 0x44112c
mov eax, dword [0x4edef8]
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 [0x4edef8]
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 0x440e26
mov eax, dword [0x5548a0]
test al, 1
je 0x440dc9
and eax, 0xfffffffe
mov esi, 1
mov dword [0x5548a0], eax
test esi, esi
je 0x440d87
xor ecx, ecx
xor eax, eax
mov dword [0x4ee170], ecx
jmp 0x440d97
mov ecx, dword [0x4ee170]
cmp ecx, 0x65
jge 0x440dc3
mov eax, dword [0x4ee174]
test eax, eax
jne 0x440da4
mov eax, dword [ecx*4 + 0x5548a4]
jmp 0x440da7
mov eax, dword [eax + 0x20]
mov dword [0x4ee174], eax
test eax, eax
je 0x440db7
mov edx, dword [eax]
test dl, 1
jne 0x440dea
inc ecx
mov dword [0x4ee170], ecx
cmp ecx, 0x65
jl 0x440d97
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 0x440e2c
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 0x440d77
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 0x440fa0
mov eax, dword [0x5546a0]
test al, 1
je 0x440f98
and eax, 0xfffffffe
mov dword [ebp - 0x268], 0
mov dword [0x5546a0], eax
lea eax, [ebp - 0x28c]
push 1
push eax
call fcn.00448160
add esp, 8
test eax, eax
je 0x440f98
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.00483b6d
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.00480c20
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 0x440f7f
lea eax, [ebp - 0x268]
push eax
call fcn.0041f010
push dword [ebp - 0x268]
call fcn.0048690c
add esp, 8
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00448160
add esp, 8
test eax, eax
jne 0x440ea0
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 0x4410c3
push 4
push 0x554a94
push 4
push eax
push str.ActiveEditor
push dword [ebp - 0x26c]
call edi
xor esi, esi
cmp dword [0x554a90], esi
jle 0x4410bb
nop word [eax + eax]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
mov eax, dword [0x554a98]
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.00422540
add esp, 0xc
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4410ae
mov eax, dword [0x554a98]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441052
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 [0x554a9c]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441083
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push 0x4a1688
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x268]
call ebx
inc esi
cmp esi, dword [0x554a90]
jl 0x441000
push dword [ebp - 0x26c]
call ebx
push dword [ebp - 0x264]
call ebx
jmp 0x44112c
mov eax, dword [0x4edef8]
test eax, eax
je 0x44112c
mov edi, dword [eax]
test edi, edi
je 0x44112c
mov eax, dword [0x4edee0]
test eax, eax
je 0x4410ed
mov esi, dword [eax + 0x190]
jmp 0x4410f3
mov esi, dword [0x4edee4]
push str.Error_creating_Key:_HKCUsSoftware:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
add esp, 8
push eax
push str.Error_creating_Key:_HKCUsSoftware:__s
push dword [0x4edee0]
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.0047f41c
mov esp, ebp
pop ebp
ret