Function at 0x422d70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x4a9bf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4bd734], 0
push esi
mov esi, dword [ebp + 8]
jne 0x422da1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x3d0]
push eax
push 0x20019
push 0
push str.Software_s
push esi
push str.Software_s
lea eax, [ebp - 0x388]
push 0x12b
push eax
call fcn.0040ad10
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
push eax
push SysReAllocString
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x422eb3
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x4bd734]
add eax, 0xc
push eax
push 0
push 0
push str.SystemFlags
push dword [ebp - 0x3d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x4bd734]
add ecx, 0xc
mov eax, dword [ecx]
and eax, 2
push eax
push 6
push ecx
call fcn.0040cbe0
add esp, 0xc
mov dword [ebp - 0x38c], 4
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x4bd734]
add eax, 0x4c8
push eax
push 0
push 0
push str.KeepLog
push dword [ebp - 0x3d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x4bd734]
add eax, 0x4cc
push eax
push 0
push 0
push str.LogLevel
push dword [ebp - 0x3d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3d0]
call ebx
lea eax, [ebp - 0x3d0]
push eax
push 0x20019
push 0
push str.Software_s
push esi
push str.Software_s
lea eax, [ebp - 0x388]
push 0x12b
push eax
call fcn.0040ad10
add esp, 0x14
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x4237b6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x4bd734]
add eax, 0xdc4
mov dword [ebp - 0x38c], 4
push eax
push 0
push 0
push str.SelectedNodeUID
push dword [ebp - 0x3d0]
call esi
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x4bd734]
add eax, 8
push eax
push 0
push 0
push str.UserFlags
push dword [ebp - 0x3d0]
call esi
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.DialogInfoEx
push dword [ebp - 0x3d0]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4230ac
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x3cc], 0
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x38c], 0x18
push eax
lea eax, [ebp - 0x394]
mov dword [ebp - 0x390], 0x12c
push eax
push 0
lea eax, [ebp - 0x390]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x130]
movq qword [ebp - 0x3a0], xmm0
push eax
push 0
push dword [ebp - 0x3c8]
movups xmmword [ebp - 0x3b0], xmm0
call esi
test eax, eax
jne 0x423205
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp - 0x3a8]
mov eax, ebx
mov ecx, dword [ebp - 0x3b8]
mov edi, dword [ebp - 0x3c0]
sub ecx, edi
sub eax, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3b4]
mov esi, dword [ebp - 0x3ac]
cmp eax, ecx
jg 0x423020
mov eax, dword [ebp - 0x3a4]
mov ecx, edx
sub ecx, dword [ebp - 0x3bc]
sub eax, esi
cmp eax, ecx
jle 0x423032
lea eax, [edi + ebx]
mov dword [ebp - 0x3b0], eax
lea eax, [edx + esi]
mov dword [ebp - 0x3a4], eax
push 3
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0042b810
mov eax, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x38c]
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc eax
mov dword [ebp - 0x38c], 0x18
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x390], 0x12c
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0x394]
push ecx
push 0
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push eax
push dword [ebp - 0x3c8]
call esi
test eax, eax
je 0x422fe0
jmp 0x4231f9
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.DialogInfo
push dword [ebp - 0x3d0]
call edi
test eax, eax
jne 0x42320d
mov dword [ebp - 0x3cc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x10
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x390], 0x12c
push eax
lea eax, [ebp - 0x394]
movq qword [ebp - 0x3a0], xmm0
push eax
push 0
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push dword [ebp - 0x3c8]
movups xmmword [ebp - 0x3b0], xmm0
call esi
test eax, eax
jne 0x423205
mov edi, dword [ebp - 0x3a8]
mov ecx, edi
mov eax, dword [ebp - 0x3b8]
mov ebx, dword [ebp - 0x3c0]
sub eax, ebx
sub ecx, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3b4]
mov esi, dword [ebp - 0x3ac]
cmp ecx, eax
jg 0x423172
mov ecx, dword [ebp - 0x3a4]
mov eax, edx
sub eax, dword [ebp - 0x3bc]
sub ecx, esi
cmp ecx, eax
jle 0x423184
lea eax, [edi + ebx]
mov dword [ebp - 0x3b0], eax
lea eax, [esi + edx]
mov dword [ebp - 0x3a4], eax
push 2
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0042b810
mov eax, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x38c]
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc eax
mov dword [ebp - 0x38c], 0x10
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x390], 0x12c
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0x394]
push ecx
push 0
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push eax
push dword [ebp - 0x3c8]
call esi
test eax, eax
je 0x423132
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x3c8]
call ebx
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.ListInfo
push dword [ebp - 0x3d0]
call edi
test eax, eax
jne 0x4234b6
push 0x6920
mov dword [ebp - 0x394], eax
call fcn.0046dc45
mov edi, eax
add esp, 4
mov dword [ebp - 0x3ec], edi
test edi, edi
je 0x42325f
push 0x6920
push 0
push edi
call fcn.00464960
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x3d4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x3d4]
call fcn.0046dc45
mov ecx, dword [ebp - 0x3d4]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3cc], 0x12c
lea eax, [ebp - 0x398]
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x398], ecx
push eax
push ebx
lea eax, [ebp - 0x3c4]
push eax
push 0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push dword [ebp - 0x3c8]
call esi
test eax, eax
jne 0x42348c
mov al, byte [ebx]
mov byte [ebp - 0x3dd], al
mov al, byte [ebx + 1]
mov byte [ebp - 0x3de], al
cmp al, 8
jb 0x423439
push 0x190
lea eax, [edi + 0x7c]
push 0
push eax
call fcn.00464960
movzx eax, byte [ebp - 0x3dd]
add esp, 0xc
movzx ebx, byte [ebp - 0x3de]
xor esi, esi
mov dword [ebp - 0x3e4], eax
test eax, eax
je 0x4233c0
mov eax, dword [ebp - 0x390]
add edi, 0x21c
add eax, 2
mov dword [ebp - 0x3e8], eax
push ebx
push eax
lea eax, [ebp - 0x3dc]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x3dc], xmm0
call fcn.004643e0
mov edx, dword [ebp - 0x3dc]
add esp, 0xc
movss xmm0, dword [ebp - 0x3d8]
mov eax, edx
shr eax, 0x10
mov dword [edi - 4], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [edi], eax
movss dword [edi + 4], xmm0
test dl, dl
je 0x423397
movsx eax, dl
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x3ec]
mov dword [edx + eax*4 + 0x78], ecx
mov eax, dword [ebp - 0x3e8]
inc esi
add eax, ebx
add edi, 0xd0
mov dword [ebp - 0x3e8], eax
cmp esi, dword [ebp - 0x3e4]
jl 0x423342
mov edi, dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x390]
mov edx, eax
imul edx, ebx
lea eax, [edx + 2]
cmp dword [ebp - 0x398], eax
jle 0x4233e5
mov eax, ebx
imul eax, esi
mov eax, dword [eax + ecx + 2]
mov dword [edi + 0x5808], eax
lea eax, [edx + 6]
cmp dword [ebp - 0x398], eax
jle 0x4233fd
imul ebx, esi
mov eax, dword [ebx + ecx + 6]
mov dword [edi + 0x6918], eax
push 0x3c0
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.00466ae4
push 0
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.004088e0
mov eax, dword [ebp - 0x3e4]
push edi
mov dword [edi + 0x78], eax
call fcn.00459a70
mov ebx, dword [ebp - 0x390]
add esp, 0x1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0x3d4]
lea ecx, [ebp - 0x398]
push ecx
push ebx
lea ecx, [ebp - 0x3c4]
mov dword [ebp - 0x398], eax
mov eax, dword [ebp - 0x394]
push ecx
push 0
lea ecx, [ebp - 0x3cc]
mov dword [ebp - 0x3cc], 0x12c
push ecx
lea ecx, [ebp - 0x130]
inc eax
push ecx
push eax
push dword [ebp - 0x3c8]
mov dword [ebp - 0x394], eax
call esi
test eax, eax
je 0x4232e3
push dword [edi]
call fcn.00468056
push edi
call fcn.00468056
push ebx
call fcn.00468056
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp - 0x3c8]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.Editors
push dword [ebp - 0x3d0]
call edi
test eax, eax
jne 0x4236ce
xor edi, edi
call fcn.00415b10
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
push 0x520634
push edi
push edi
push str.ActiveEditor
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x25c]
push 0x12c
push eax
push edi
push dword [ebp - 0x3c8]
call ebx
test eax, eax
jne 0x4236bb
xor esi, esi
nop
lea eax, [ebp - 0x3cc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42369d
mov eax, dword [0x520630]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x520630], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x520638]
call fcn.00466ae4
mov dword [0x520638], eax
xor ecx, ecx
mov eax, dword [0x520630]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x52063c]
call fcn.00466ae4
add esp, 0x10
mov dword [0x52063c], eax
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12c
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push str.Path
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4235e4
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0046dc45
mov ecx, dword [0x520638]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x520638]
mov edx, dword [esi + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x423610
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12c
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push str.Arguments
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423654
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0046dc45
mov ecx, dword [0x52063c]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x52063c]
mov edx, dword [esi + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x423680
push dword [ebp - 0x3cc]
add esi, 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x12c
lea eax, [ebp - 0x25c]
inc edi
push eax
push edi
push dword [ebp - 0x3c8]
call ebx
test eax, eax
je 0x423530
push dword [ebp - 0x3c8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x4237ae
xor esi, esi
cmp dword [0x520630], esi
jle 0x423706
nop dword [eax + eax]
mov eax, dword [0x520638]
push dword [eax + esi*4]
call fcn.00468056
mov eax, dword [0x52063c]
push dword [eax + esi*4]
call fcn.00468056
inc esi
add esp, 8
cmp esi, dword [0x520630]
jl 0x4236e0
push dword [0x520638]
call fcn.00468056
push dword [0x52063c]
call fcn.00468056
xorps xmm0, xmm0
movups xmmword [0x520630], xmm0
push 4
push dword [0x520638]
mov dword [0x520630], 1
call fcn.00466ae4
mov dword [0x520638], eax
xor ecx, ecx
mov eax, dword [0x520630]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x52063c]
call fcn.00466ae4
push 0xc
mov dword [0x52063c], eax
call fcn.0046dc45
mov ecx, dword [0x520638]
push 1
mov dword [ecx], eax
mov eax, dword [0x520638]
movq xmm0, qword [str.Notepad.exe]
mov ecx, dword [eax]
movq qword [ecx], xmm0
mov eax, dword [0x4805ec]
mov dword [ecx + 8], eax
call fcn.0046dc45
mov ecx, dword [0x52063c]
add esp, 0x20
mov dword [ecx], eax
mov eax, dword [0x52063c]
mov eax, dword [eax]
mov byte [eax], 0
push dword [ebp - 0x3d0]
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0046300c
mov esp, ebp
pop ebp
ret