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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4a9bf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4bd734], 0
push ebx
mov ebx, dword [ebp + 8]
jne 0x42a2f1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
jne 0x42a5b4
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 0x42a54e
mov esi, ebx
test ebx, ebx
je 0x42a48d
nop dword [eax]
push 0x5c
push esi
call fcn.0046e733
mov edi, eax
add esp, 8
test edi, edi
jne 0x42a36b
cmp byte [esi], al
je 0x42a48d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a360
sub ecx, edx
jmp 0x42a36f
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.00408830
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 0x42a3e4
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 0x42a499
lea esi, [edi + 1]
test esi, esi
jne 0x42a340
jmp 0x42a493
test edi, edi
je 0x42a3ec
sub edi, ebx
jmp 0x42a3fa
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x42a3f1
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.00408830
mov eax, dword [0x4bd734]
add esp, 0xc
test eax, eax
je 0x42a472
mov edi, dword [eax]
test edi, edi
je 0x42a472
mov eax, dword [0x4bd720]
test eax, eax
je 0x42a42b
mov esi, dword [eax + 0x190]
jmp 0x42a431
mov esi, dword [0x4bd724]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call eax
push eax
call fcn.0040b160
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4bd720]
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 0x42a5ae
mov eax, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42a5ae
mov eax, dword [0x4bd734]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
and dword [eax + 0xc], 0xfffffffb
mov eax, dword [0x4bd734]
add eax, 0xc
push eax
push 4
push 0
push str.SystemFlags
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4bd734]
push 4
add eax, 0x4c8
push eax
push 4
push 0
push str.KeepLog
push dword [ebp - 0x264]
call edi
mov eax, dword [0x4bd734]
push 4
add eax, 0x4cc
push eax
push 4
push 0
push str.LogLevel
push dword [ebp - 0x264]
call edi
mov edx, dword [0x4bd734]
add edx, 0x270
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a520
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 0x42a5ae
mov eax, dword [0x4bd734]
test eax, eax
je 0x42a5b4
mov edi, dword [eax]
test edi, edi
je 0x42a5b4
mov eax, dword [0x4bd720]
test eax, eax
je 0x42a56e
mov esi, dword [eax + 0x190]
jmp 0x42a574
mov esi, dword [0x4bd724]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Error_creating_Key:_HKCUSoftware:__s
push 0
call eax
push eax
call fcn.0040b160
add esp, 8
push eax
push str.Error_creating_Key:_HKCUSoftware:__s
push dword [0x4bd720]
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 0x42ab1d
mov esi, ebx
test ebx, ebx
je 0x42a732
nop dword [eax]
push 0x5c
push esi
call fcn.0046e733
mov edi, eax
add esp, 8
test edi, edi
jne 0x42a61b
cmp byte [esi], al
je 0x42a732
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a610
sub ecx, edx
jmp 0x42a61f
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.00408830
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 0x42a694
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 0x42a73e
lea esi, [edi + 1]
test esi, esi
jne 0x42a5f0
jmp 0x42a738
test edi, edi
je 0x42a69c
sub edi, ebx
jmp 0x42a6aa
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x42a6a1
sub edi, ecx
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.00408830
mov eax, dword [0x4bd734]
add esp, 0xc
test eax, eax
je 0x42a721
mov edi, dword [eax]
test edi, edi
je 0x42a721
mov eax, dword [0x4bd720]
test eax, eax
je 0x42a6db
mov esi, dword [eax + 0x190]
jmp 0x42a6e1
mov esi, dword [0x4bd724]
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b160
add esp, 8
push eax
lea eax, [ebp - 0x130]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4bd720]
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 0x42ab7c
mov ecx, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test ecx, ecx
je 0x42ab7c
mov eax, dword [0x4bd734]
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 [0x4bd734]
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 0x42a876
mov eax, dword [0x520440]
test al, 1
je 0x42a819
and eax, 0xfffffffe
mov esi, 1
mov dword [0x520440], eax
test esi, esi
je 0x42a7d7
xor ecx, ecx
xor eax, eax
mov dword [0x4bd9b0], ecx
jmp 0x42a7e7
mov ecx, dword [0x4bd9b0]
cmp ecx, 0x65
jge 0x42a813
mov eax, dword [0x4bd9b4]
test eax, eax
jne 0x42a7f4
mov eax, dword [ecx*4 + 0x520444]
jmp 0x42a7f7
mov eax, dword [eax + 0x20]
mov dword [0x4bd9b4], eax
test eax, eax
je 0x42a807
mov edx, dword [eax]
test dl, 1
jne 0x42a83a
inc ecx
mov dword [0x4bd9b0], ecx
cmp ecx, 0x65
jl 0x42a7e7
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 0x42a87c
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 0x42a7c7
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 0x42a9f0
mov eax, dword [0x520100]
test al, 1
je 0x42a9e8
and eax, 0xfffffffe
mov dword [ebp - 0x268], 0
mov dword [0x520100], eax
lea eax, [ebp - 0x28c]
push 1
push eax
call fcn.00450be0
add esp, 8
test eax, eax
je 0x42a9e8
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.00466ae4
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.004643e0
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 0x42a9cf
lea eax, [ebp - 0x268]
push eax
call fcn.00409d90
push dword [ebp - 0x268]
call fcn.00468056
add esp, 8
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00450be0
add esp, 8
test eax, eax
jne 0x42a8f0
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 0x42ab13
push 4
push 0x520634
push 4
push eax
push str.ActiveEditor
push dword [ebp - 0x26c]
call edi
xor esi, esi
cmp dword [0x520630], esi
jle 0x42ab0b
nop word [eax + eax]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
mov eax, dword [0x520638]
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.0040cda0
add esp, 0xc
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42aafe
mov eax, dword [0x520638]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42aaa2
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 [0x52063c]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42aad3
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push str.Arguments
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x268]
call ebx
inc esi
cmp esi, dword [0x520630]
jl 0x42aa50
push dword [ebp - 0x26c]
call ebx
push dword [ebp - 0x264]
call ebx
jmp 0x42ab7c
mov eax, dword [0x4bd734]
test eax, eax
je 0x42ab7c
mov edi, dword [eax]
test edi, edi
je 0x42ab7c
mov eax, dword [0x4bd720]
test eax, eax
je 0x42ab3d
mov esi, dword [eax + 0x190]
jmp 0x42ab43
mov esi, dword [0x4bd724]
push str.Error_creating_Key:_HKCUsSoftware:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b160
add esp, 8
push eax
push str.Error_creating_Key:_HKCUsSoftware:__s
push dword [0x4bd720]
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.0046300c
mov esp, ebp
pop ebp
ret