Function at 0x409530
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push str.SOFTWARENECBGA_DBCOMMON
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
jne 0x40958f
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARENECBGA_DBCOMMON
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 1
jne 0x409625
push 0x50
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd650
push ecx
push 1
push 0
push str.Mode
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov eax, dword [ebp - 0x1c]
add eax, 0xd65a
push eax
push 1
push 0
push str.Orloc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov edx, dword [ebp - 0x1c]
add edx, 0xd54a
push edx
push 1
push 0
push str.RealMapPosMode
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2d40006
push ecx
push 4
push 0
push str.FdEnabled
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
jmp 0x4097f2
mov dword [ebp - 8], 0xa
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd650
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Mode
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409686
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd650
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x1c]
add edx, 0xd650
push edx
push 1
push 0
push str.Mode
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xd65a
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Orloc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4096e6
mov edx, dword [ebp - 0x1c]
add edx, 0xd65a
push edx
call fcn.00469b80
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xd65a
push eax
push 1
push 0
push str.Orloc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0xd54a
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.RealMapPosMode
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409745
mov eax, dword [ebp - 0x1c]
add eax, 0xd54a
push eax
call fcn.00469b80
add esp, 4
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd54a
push ecx
push 1
push 0
push str.RealMapPosMode
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2d40006
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.FdEnabled
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409795
push 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2d40006
push ecx
push 4
push 0
push str.FdEnabled
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.FdModeStatus
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4097e0
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.FdModeStatus
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x18], 0
setne al
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x3fed28], al
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret