Function at 0x46de30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4869a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
xor ebp, ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebp
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString_4
push 0x100000
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x46e08f
push ebx
lea ecx, [esp + 0x20]
call fcn.0042e840
mov ebx, dword [esp + 0x44]
mov byte [esp + 0x3c], 3
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x20]
push eax
push ebx
call fcn.0042ea80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0x20019
call fcn.0042e920
push eax
lea ecx, [esp + 0x2c]
call fcn.0042e930
push eax
call fcn.0041eb90
add esp, 0x10
cmp al, 1
jne 0x46e076
mov dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 1
push 0
push 0x100000
push esi
push 1
push ecx
push edx
push 0x21
call fcn.0041ec10
add esp, 0x28
cmp al, 1
jne 0x46e06b
mov eax, dword [esi + 0x10]
cmp eax, 2
jb 0x46e062
cmp dword [esi + 8], 0xffffffff
je 0x46e062
shr eax, 1
lea ecx, [esp + 0x14]
mov bx, word [esi + eax*2 + 0x14]
lea eax, [esi + eax*2 + 0x14]
mov word [eax], 0
lea eax, [esi + 0x14]
push eax
push 0x49e1d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi + 0x10]
add esp, 0xc
shr edx, 1
push 0
push 0
mov word [esi + edx*2 + 0x14], bx
mov eax, dword [edi + 0xc0]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
mov ebp, eax
push 0
lea ebx, [edi + 0xa0]
push ecx
push ebp
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x48]
mov ecx, ebx
push edx
push 1
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0046dd70
mov edx, dword [edi]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xf0]
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
push 3
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x114]
test eax, eax
jne 0x46dff3
push 3
push eax
push eax
push eax
push eax
push 4
push eax
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItem
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add edx, eax
lea ecx, [esp + 0x10]
mov word [edx + esi], 0
mov eax, dword [esi + 8]
add eax, esi
push eax
push 0x49e1d8
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::MakeLower
push str.enabled:
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x46e041
lea edx, [esp + 0x10]
push str.Enabled
push edx
jmp 0x46e04b
lea eax, [esp + 0x10]
push str.Disable
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push 2
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [esp + 0x44]
jmp 0x46deea
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.0042e8f0
pop ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 8