Function at 0x4023c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x514
mov eax, dword [0x428510]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
push esi
push edi
push 0x400
push 0
push 0x42a220
mov dword [0x42a620], 0
call fcn.00406190
push str.emacs_dir
call fcn.004083e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40257d
lea ebx, [esp + 0x18]
mov ecx, esi
sub ebx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x402411
lea eax, [esp + 0x18]
push eax
call fcn.00404920
lea ecx, [esp + 0x1c]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402432
sub ecx, edx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x40245a
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402447
mov ax, word [0x41d734]
mov word [edi], ax
lea ecx, [esp + 0x18]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402460
mov eax, dword [str.binemacs.exe]
mov dword [ecx], eax
mov eax, dword [0x41d73c]
mov dword [ecx + 4], eax
mov eax, dword [0x41d740]
mov dword [ecx + 8], eax
mov ax, word [0x41d744]
mov word [ecx + 0xc], ax
lea eax, [esp + 0x18]
push eax
call fcn.00404260
add esp, 4
test eax, eax
je 0x4024c6
mov edx, dword [0x42a620]
mov ecx, edx
movups xmm0, xmmword [str.NTEmacs__getenv_]
mov al, byte [0x41d758]
shl ecx, 5
add ecx, 0x42a220
inc edx
mov dword [0x42a620], edx
movups xmmword [ecx], xmm0
mov byte [ecx + 0x10], al
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ebx + esi - 1], al
test al, al
jne 0x4024c6
lea eax, [esp + 0x18]
push eax
call fcn.00404920
lea ecx, [esp + 0x1c]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024e7
sub ecx, edx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x402513
lea edi, [esp + 0x18]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402500
mov ax, word [0x41d734]
mov word [edi], ax
lea ecx, [esp + 0x18]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402518
mov eax, dword [str.binMeadow.exe]
mov dword [ecx], eax
mov eax, dword [0x41d760]
mov dword [ecx + 4], eax
mov eax, dword [0x41d764]
mov dword [ecx + 8], eax
mov ax, word [0x41d768]
mov word [ecx + 0xc], ax
mov al, byte [0x41d76a]
mov byte [ecx + 0xe], al
lea eax, [esp + 0x18]
push eax
call fcn.00404260
add esp, 4
test eax, eax
je 0x40257d
mov ecx, dword [0x42a620]
mov eax, ecx
movups xmm0, xmmword [str.Meadow__getenv_]
shl eax, 5
add eax, 0x42a220
inc ecx
mov dword [0x42a620], ecx
movups xmmword [eax], xmm0
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREGNUEmacs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402682
mov eax, dword [0x42a620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
shl eax, 5
mov dword [esp + 0x10], 0x400
mov dword [eax + 0x42a220], 0x6d45544e
mov dword [eax + 0x42a224], 0x736361
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.EMACSPATH
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x402678
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x41c]
push eax
push 0
push 0
push str.emacs_dir
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x402678
lea eax, [esp + 0x418]
push eax
lea eax, [esp + 0x1c]
push str._emacs_dir_
push eax
call fcn.00404820
lea eax, [esp + 0x24]
push eax
call fcn.00404920
lea ecx, [esp + 0x28]
add esp, 0x10
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402636
mov eax, dword [str.emacs.exe]
mov dword [ecx], eax
mov eax, dword [0x41d7b4]
mov dword [ecx + 4], eax
mov ax, word [0x41d7b8]
mov word [ecx + 8], ax
mov al, byte [0x41d7ba]
mov byte [ecx + 0xa], al
lea eax, [esp + 0x18]
push eax
call fcn.00404260
add esp, 4
test eax, eax
je 0x402678
inc dword [0x42a620]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x42a620]
test eax, eax
je 0x4026ad
cmp eax, 1
jle 0x4026c7
push 0
push 0x4027e0
push 0
push 0x67
push dword [0x42fce8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, eax
test esi, esi
jns 0x4026c9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00404cba
add esp, 0x514
ret
xor esi, esi
shl esi, 5
push str.getenv
lea edi, [esi + 0x42a220]
push edi
call fcn.004059a0
movzx ecx, byte [0x428e24]
test eax, eax
push 7
mov ebx, 1
cmovne ecx, ebx
push str.NTEmacs
push edi
mov byte [0x428e24], cl
call fcn.00407f20
add esp, 0x14
test eax, eax
jne 0x402728
pop edi
pop esi
mov byte [0x428508], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00404cba
add esp, 0x514
ret
push 6
push 0x41d7c4
push edi
call fcn.00407f20
add esp, 0xc
test eax, eax
jne 0x4027bb
push 0xb
push str.Meadow_1.00
push edi
mov byte [0x428508], al
call fcn.00407f20
add esp, 0xc
test eax, eax
jne 0x402787
mov eax, dword [str.1.00]
mov dword [0x429a20], eax
mov al, byte [0x41d7dc]
pop edi
mov byte [0x429a24], al
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00404cba
add esp, 0x514
ret
lea ecx, [esi + 0x42a227]
mov edx, 0x429a20
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402794
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00404cba
add esp, 0x514
ret
mov ecx, dword [esp + 0x51c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x428508], 0x7f
call fcn.00404cba
add esp, 0x514
ret