Function at 0x409b50
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ce46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc]
mov dword [esp + 0x250], 0
call sub.MFC42.DLL_CString::CString
mov eax, 0x104
mov edi, 0x410d6c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x250], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x34], 1
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4104a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x48]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d3e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x144]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0x410d60
push edx
call esi
test eax, eax
jne 0x409d3e
lea eax, [esp + 0x30]
lea ecx, [esp + 0x144]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0x411488
push eax
call esi
test eax, eax
jne 0x409d3e
lea ecx, [esp + 0x38]
lea edx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0x411480
push ecx
call esi
test eax, eax
jne 0x409d3e
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe008
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe009
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x68]
push eax
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 0
call fcn.0040c2d6
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call fcn.0040c53a
mov eax, 1
jmp 0x409dc1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe008
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe00a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x14]
lea ecx, [ebp + 0x68]
push edx
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 0
call fcn.0040c2d6
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call fcn.0040c53a
xor eax, eax
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x248
ret