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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4edef8], 0
push esi
mov esi, dword [ebp + 8]
jne 0x439211
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
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.0041ff80
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 0x439323
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x4edef8]
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 [0x4edef8]
add ecx, 0xc
mov eax, dword [ecx]
and eax, 2
push eax
push 6
push ecx
call fcn.004223b0
add esp, 0xc
mov dword [ebp - 0x38c], 4
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x4edef8]
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 [0x4edef8]
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.0041ff80
add esp, 0x14
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x439c26
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x4edef8]
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 [0x4edef8]
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 0x43951c
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 0x439675
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 0x439490
mov eax, dword [ebp - 0x3a4]
mov ecx, edx
sub ecx, dword [ebp - 0x3bc]
sub eax, esi
cmp eax, ecx
jle 0x4394a2
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.00442080
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 0x439450
jmp 0x439669
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.DialogInfo
push dword [ebp - 0x3d0]
call edi
test eax, eax
jne 0x43967d
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 0x439675
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 0x4395e2
mov ecx, dword [ebp - 0x3a4]
mov eax, edx
sub eax, dword [ebp - 0x3bc]
sub ecx, esi
cmp ecx, eax
jle 0x4395f4
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.00442080
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 0x4395a2
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 0x439926
push 0x6920
mov dword [ebp - 0x394], eax
call fcn.00486927
mov edi, eax
add esp, 4
mov dword [ebp - 0x3ec], edi
test edi, edi
je 0x4396cf
push 0x6920
push 0
push edi
call fcn.004811a0
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.00486927
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 0x4398fc
mov al, byte [ebx]
mov byte [ebp - 0x3dd], al
mov al, byte [ebx + 1]
mov byte [ebp - 0x3de], al
cmp al, 8
jb 0x4398a9
push 0x190
lea eax, [edi + 0x7c]
push 0
push eax
call fcn.004811a0
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 0x439830
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.00480c20
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 0x439807
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 0x4397b2
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 0x439855
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 0x43986d
imul ebx, esi
mov eax, dword [ebx + ecx + 6]
mov dword [edi + 0x6918], eax
push 0x3c0
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.00483b6d
push 0
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.0041d210
mov eax, dword [ebp - 0x3e4]
push edi
mov dword [edi + 0x78], eax
call fcn.00451320
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 0x439753
push dword [edi]
call fcn.0048690c
push edi
call fcn.0048690c
push ebx
call fcn.0048690c
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 0x439b3e
xor edi, edi
call fcn.0042b9e0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
push 0x554a94
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 0x439b2b
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 0x439b0d
mov eax, dword [0x554a90]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x554a90], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x554a98]
call fcn.00483b6d
mov dword [0x554a98], eax
xor ecx, ecx
mov eax, dword [0x554a90]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x554a9c]
call fcn.00483b6d
add esp, 0x10
mov dword [0x554a9c], 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 0x439a54
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00486927
mov ecx, dword [0x554a98]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x554a98]
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 0x439a80
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12c
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x4a1688
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 0x439ac4
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00486927
mov ecx, dword [0x554a9c]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x554a9c]
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 0x439af0
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 0x4399a0
push dword [ebp - 0x3c8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x439c1e
xor esi, esi
cmp dword [0x554a90], esi
jle 0x439b76
nop dword [eax + eax]
mov eax, dword [0x554a98]
push dword [eax + esi*4]
call fcn.0048690c
mov eax, dword [0x554a9c]
push dword [eax + esi*4]
call fcn.0048690c
inc esi
add esp, 8
cmp esi, dword [0x554a90]
jl 0x439b50
push dword [0x554a98]
call fcn.0048690c
push dword [0x554a9c]
call fcn.0048690c
xorps xmm0, xmm0
movups xmmword [0x554a90], xmm0
push 4
push dword [0x554a98]
mov dword [0x554a90], 1
call fcn.00483b6d
mov dword [0x554a98], eax
xor ecx, ecx
mov eax, dword [0x554a90]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x554a9c]
call fcn.00483b6d
push 0xc
mov dword [0x554a9c], eax
call fcn.00486927
mov ecx, dword [0x554a98]
push 1
mov dword [ecx], eax
mov eax, dword [0x554a98]
movq xmm0, qword [str.Notepad.exe]
mov ecx, dword [eax]
movq qword [ecx], xmm0
mov eax, dword [0x4a169c]
mov dword [ecx + 8], eax
call fcn.00486927
mov ecx, dword [0x554a9c]
add esp, 0x20
mov dword [ecx], eax
mov eax, dword [0x554a9c]
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.0047f41c
mov esp, ebp
pop ebp
ret