Function at 0x409e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ce60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::CStringArray
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 1
push eax
push 0x20019
push esi
push 0x411528
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409ef0
mov ecx, ebp
call fcn.0040bc60
test eax, eax
jne 0x409edb
mov edi, 1
jmp 0x409ef2
mov ecx, ebp
call fcn.0040bc60
mov edi, eax
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 2
jmp 0x409ef2
xor edi, edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00409de0
test eax, eax
je 0x40a171
push ebx
mov dword [esp + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x411508
push 0x4114fc
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4114dc
push 0x4114fc
mov dword [0x41753c], eax
call esi
push eax
call ebx
lea edx, [esp + 0x14]
mov dword [0x417540], eax
push edx
call dword [0x41753c]
lea eax, [esp + 0x1c]
push eax
push 0xf013f
push 0
push 0x4114ac
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop ebx
je 0x409f96
mov ecx, ebp
call fcn.0040bf00
test eax, eax
jne 0x409f81
mov esi, 1
jmp 0x409f98
mov ecx, ebp
call fcn.0040bf00
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 2
jmp 0x409f98
xor esi, esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push edx
call dword [0x417540]
cmp edi, 1
jne 0x409fbd
cmp esi, edi
je 0x409fc6
test esi, esi
je 0x409fc6
jmp 0x40a028
test edi, edi
jne 0x40a01f
cmp esi, 1
jne 0x40a028
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe05e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40a391
cmp edi, 2
je 0x40a0e2
cmp esi, 2
je 0x40a0e2
cmp edi, 3
je 0x40a053
cmp esi, 3
je 0x40a053
test edi, edi
jne 0x40a3cf
test esi, esi
jne 0x40a3cf
push 0xffffffffffffffff
push esi
jmp 0x40a341
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe060
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x68]
push edx
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe05f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x68]
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
cmp edi, 1
jne 0x40a208
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe05e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x68]
push eax
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
cmp edi, 2
jne 0x40a29f
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe05f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x68]
push edx
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
cmp edi, 3
jne 0x40a336
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe060
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x68]
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
cmp edi, esi
jne 0x40a3cf
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe009
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040c2d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c53a
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret