Function at 0x68011962
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
cmp edx, 0x110
je 0x680113b0
cmp edx, 0x111
je 0x68011660
cmp edx, 0x4e
je 0x68011600
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf1
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x48], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je case.0x68011680.2807
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 5
mov dword [esp + 4], 0x10
mov dword [esp], 0x10
call sym._ImageList_Create_20
mov dword [esi], eax
sub esp, 0x14
test eax, eax
je 0x680114ba
mov eax, dword [0x68022004]
mov dword [esp + 4], 0xc8
mov dword [esp], eax
call sym._LoadBitmapW_8
sub esp, 8
mov edi, eax
mov dword [esp + 8], 0xff00ff
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._ImageList_AddMasked_12
sub esp, 0xc
mov dword [esp], edi
call sym._DeleteObject_4
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi]
mov dword [esp], eax
call sym._ImageList_SetBkColor_8
mov eax, dword [ebp - 0x3c]
mov edi, dword [esi]
sub esp, 8
mov dword [esp + 4], 0xaf2
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1003
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov edi, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov dword [esp], edi
call sym._SetWindowLongW_12
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esi + 4], eax
mov eax, edi
call sym._initialize_purpose_selection
mov eax, edi
call sym._add_cert_columns
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6801150e
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebx + 8]
mov dword [esp + 4], 0xaf1
mov dword [esp], eax
call sym._GetDlgItem_8
mov edx, 0x68017c40
mov dword [ebp - 0x40], eax
mov eax, ebx
sub esp, 8
and eax, 4
cmp eax, 1
sbb edi, edi
and edi, 3
add edi, 3
test eax, eax
mov eax, 0x68017c80
cmovne eax, edx
mov edx, 1
and ebx, 0x8000
mov ecx, edx
cmove ecx, edi
mov dword [esi + 0xc], eax
xor ebx, ebx
mov dword [esi + 8], ecx
mov esi, eax
mov dword [ebp - 0x44], ecx
jmp 0x680115da
mov eax, dword [esi]
mov dword [esp + 0x10], eax
add esi, 0xc
mov dword [esp + 0xc], 0x10000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xa
call sym._CertOpenStore_20
mov dword [ebp - 0x34], 9
sub esp, 0x14
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 4], 0x133e
mov dword [esp], eax
mov dword [ebp - 0x28], edi
call sym._SendMessageW_16
sub esp, 0x10
cmp dword [ebp - 0x44], ebx
je 0x680117c0
mov eax, dword [esi]
mov dword [esp], eax
call sym._CryptFindLocalizedName_4
sub esp, 4
mov edi, eax
test eax, eax
jne 0x68011570
mov edi, dword [esi]
mov eax, edi
jmp 0x68011572
mov eax, dword [ebx + 8]
cmp eax, 0xffffff94
je 0x68011b68
jbe 0x68011630
cmp eax, 0xffffff9b
je 0x68011a60
cmp eax, 0xfffffffd
jne case.0x68011680.2807
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
call sym._show_selected_cert
jmp case.0x68011680.2807
cmp eax, 0xfffffdd9
je 0x680117b3
cmp eax, 0xffffff65
jne case.0x68011680.2807
cmp word [ebx + 0xc], 0x2e
jne case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
call sym._cert_mgr_do_remove
jmp case.0x68011680.2807
cmp eax, 0xaf8
ja 0x680117a8
cmp eax, 0xaf2
jbe 0x68011690
sub eax, 0xaf3
cmp eax, 5
ja case.0x68011680.2807
jmp dword [eax*4 + 0x68017264]
cmp eax, 2
jne case.0x68011680.2807
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf2
lea edi, [ebp - 0x34]
xor ebx, ebx
mov dword [esp], esi
call sym._GetDlgItem_8
sub esp, 8
call sym._free_certs
mov dword [esp], esi
mov dword [esp + 4], 0xaf1
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1304
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x40], eax
sub esp, 0x10
test eax, eax
jle 0x68011740
nop
lea esi, [esi]
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x133c
mov dword [esp], esi
mov dword [ebp - 0x34], 8
call sym._SendMessageW_16
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CertCloseStore_8
sub esp, 8
cmp dword [ebp - 0x40], ebx
jne 0x68011700
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], 8
mov dword [esp], esi
call sym._GetWindowLongW_8
mov ebx, eax
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
call sym._ImageList_Destroy_4
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 4], 2
mov dword [esp], esi
call sym._EndDialog_8
sub esp, 8
jmp case.0x68011680.2807
cmp eax, 0x10af0
jne case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
call sym._cert_mgr_clear_cert_selection
jmp case.0x68011680.2807
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], 0x133c
mov dword [esp], eax
mov dword [ebp - 0x34], 8
call sym._SendMessageW_16
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
call sym._show_store_certs
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, dword [ebp - 0x3c]
mov eax, esi
call sym._cert_mgr_current_store
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.cryptui.dll_CryptUIWizImport
sub esp, 0x14
test eax, eax
je case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
call sym._refresh_store_certs
jmp case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf2
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1032
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 1
je 0x68011cd5
jle case.0x68011680.2807
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CertOpenStore_20
sub esp, 0x14
mov esi, eax
test eax, eax
je case.0x68011680.2807
mov dword [ebp - 0x34], 0x18
mov edi, 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [esp + 8], edi
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0x100c
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov edi, eax
test eax, eax
jns 0x68011be0
lea eax, [ebp - 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.cryptui.dll_CryptUIWizExport
sub esp, 0x14
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._CertCloseStore_8
sub esp, 8
jmp case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._cert_mgr_advanced_dlg_proc_16
mov dword [esp + 8], eax
mov eax, dword [0x68022004]
mov dword [esp + 4], 0x70
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
cmp eax, 1
jne case.0x68011680.2807
mov edi, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf0
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov esi, eax
mov dword [esp + 0xc], 0
test eax, eax
jns 0x68011d62
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14b
call sym._SendMessageW_16
mov eax, edi
sub esp, 0x10
call sym._initialize_purpose_selection
jmp 0x68011840
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf2
mov dword [esp], esi
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x100c
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov edx, eax
test eax, eax
js case.0x68011680.2807
mov eax, esi
call sym._show_selected_cert
jmp case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf2
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1032
mov dword [esp], eax
call sym._SendMessageW_16
mov esi, eax
sub esp, 0x10
xor eax, eax
test esi, esi
mov dword [esp + 4], 0xaf4
setg al
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._EnableWindow_8
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov dword [esp + 4], 0xaf5
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._EnableWindow_8
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov dword [esp + 4], 0xaf8
mov dword [esp], eax
call sym._GetDlgItem_8
xor edx, edx
sub esp, 8
cmp esi, 1
sete dl
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._EnableWindow_8
sub esp, 8
cmp esi, 1
je 0x68011c10
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf7
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], 0x68017d36
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp case.0x68011680.2807
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0xaf2
mov dword [esp], eax
call sym._GetDlgItem_8
mov edx, dword [ebx + 0x10]
sub esp, 8
cmp edx, 2
je 0x68011c99
jg 0x68011bc8
test edx, edx
je 0x68011cc8
cmp edx, 1
jne case.0x68011680.2807
mov dword [esp + 0xc], sym._cert_mgr_sort_by_issuer_12
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1051
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp case.0x68011680.2807
cmp edx, 3
jne case.0x68011680.2807
mov dword [esp + 0xc], sym._cert_mgr_sort_by_friendly_name_12
jmp 0x68011ba5
mov edx, eax
mov eax, dword [ebp - 0x3c]
call sym._cert_mgr_index_to_cert
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._CertAddCertificateContextToStore_16
sub esp, 0x10
jmp 0x680118f4
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebx + 0xc]
mov dword [esp + 4], 0xaf7
mov dword [esp], edi
call sym._GetDlgItem_8
mov edx, esi
sub esp, 8
mov ebx, eax
mov eax, edi
call sym._cert_mgr_index_to_cert
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call sym._get_cert_usages
mov eax, dword [ebp - 0x34]
test eax, eax
je case.0x68011680.2807
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], ebx
call sym._SendMessageW_16
mov edx, dword [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp case.0x68011680.2807
mov dword [esp + 0xc], sym._cert_mgr_sort_by_date_12
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1030
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp case.0x68011680.2807
mov dword [esp + 0xc], sym._cert_mgr_sort_by_subject_12
jmp 0x68011ba5
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x100c
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
js case.0x68011680.2807
mov esi, dword [ebp - 0x3c]
mov edx, eax
mov eax, esi
call sym._cert_mgr_index_to_cert
test eax, eax
je case.0x68011680.2807
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 0
call sym.cryptui.dll_CryptUIWizExport
sub esp, 0x14
jmp case.0x68011680.2807
mov dword [esp + 8], eax
mov dword [esp + 4], 0x149
mov dword [esp], ebx
call sym._SendMessageW_16
mov edx, eax
sub esp, 0x10
lea edx, [edx + edx + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x148
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14b
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x3c]
sub esp, 0x10
call sym._initialize_purpose_selection
test edi, edi
je 0x68011840
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x158
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
js 0x68011e35
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x14e
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x68011840