Function at 0x680127c0
Capabilities:
Get process heap 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, 0x488
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
test byte [0x68015140], 8
jne 0x68012ab0
cmp ebx, 0x111
je 0x68012afc
ja 0x68012a90
cmp ebx, 0x4e
je 0x68012c60
cmp ebx, 0x110
jne 0x68012a80
mov eax, dword [edx + 0x1c]
mov dword [esp], esi
xor edi, edi
mov dword [esp + 4], 0x834
mov dword [ebp - 0x46c], eax
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x470], eax
call eax
mov dword [ebp - 0x478], esi
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov esi, edi
mov ecx, eax
mov dword [ebp - 0x474], eax
sub esp, 8
mov eax, 0x3fd
mov edi, ecx
jmp 0x68012867
mov eax, dword [esi*8 + 0x68017900]
mov dword [esp + 4], eax
mov eax, dword [0x68024004]
lea edx, [ebp - 0x418]
inc esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x200
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x418]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x14a
mov dword [esp], edi
call ebx
mov edx, dword [ebp - 0x46c]
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x151
mov dword [esp], edi
call ebx
sub esp, 0x10
cmp esi, 5
jne 0x68012860
mov eax, dword [ebp - 0x474]
mov esi, dword [ebp - 0x478]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14e
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x470]
sub esp, 0x10
mov dword [esp + 4], 0x835
mov dword [esp], esi
call eax
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1036
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x464]
sub esp, 0x10
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetWindowRect]
mov eax, dword [0x68024004]
lea edx, [ebp - 0x418]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x200
mov dword [esp + 4], 0x3fb
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x454], 6
sub esp, 0x10
mov edx, eax
sub edx, dword [ebp - 0x464]
mov dword [esp], edi
mov ecx, edx
mov dword [esp + 8], 0
shr ecx, 0x1f
mov dword [esp + 4], 0x1061
mov eax, ecx
lea ecx, [ebp - 0x418]
add eax, edx
lea edx, [ebp - 0x454]
mov dword [ebp - 0x448], ecx
sar eax, 1
mov dword [esp + 0xc], edx
sub eax, 2
mov dword [ebp - 0x44c], eax
call ebx
mov eax, dword [0x68024004]
lea edx, [ebp - 0x418]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x200
mov dword [esp + 4], 0x3fc
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea edx, [ebp - 0x454]
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1061
call ebx
mov eax, dword [ebp - 0x470]
sub esp, 0x10
mov dword [esp + 4], 0x835
mov dword [esp], esi
call eax
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1009
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 0x46c]
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._add_all_fields
mov eax, dword [ebx]
mov eax, dword [eax + 8]
test al, 8
je 0x68012dd0
test ah, 0x20
jne 0x68012da0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp ebx, 0x400
jne 0x68012a80
mov eax, esi
call sym._refresh_details_view
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p___08x___08Ix___08Ix__n
mov dword [esp + 8], str.detail_dlg_proc
mov dword [esp + 4], 0x68015140
mov dword [esp], 3
mov dword [ebp - 0x46c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x46c]
cmp ebx, 0x111
jne 0x680127fb
cmp edi, 0x838
je 0x68012e10
cmp edi, 0x10834
je 0x68012a98
cmp edi, 0x837
jne 0x68012a80
mov dword [esp + 4], 0x834
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetDlgItem]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
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 edi
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x150
call edi
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetParent]
mov dword [ebp - 0x46c], eax
sub esp, 4
test byte [0x68015140], 8
jne 0x68012eb0
lea edx, [ebp - 0x408]
xor eax, eax
mov ecx, 0xa
mov edi, edx
lea edx, [ebp - 0x444]
lea esi, [ebp - 0x418]
rep stosd dword es:[edi], eax
mov edi, dword [0x68024004]
mov ecx, 9
mov dword [ebp - 0x3fc], ebx
mov dword [ebp - 0x418], 0x38
lea ebx, [ebp - 0x454]
mov dword [ebp - 0x410], edi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x46c]
mov dword [esp], ebx
mov dword [ebp - 0x414], pe_nt_image_headers32
mov dword [ebp - 0x44c], eax
mov eax, dword [0x68024004]
mov dword [ebp - 0x3f8], sym._cert_properties_general_callback_12
mov dword [ebp - 0x40c], 0x68
mov dword [ebp - 0x400], sym._cert_properties_general_dlg_proc_16
mov dword [ebp - 0x454], 0x34
mov dword [ebp - 0x450], 8
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x440], 0x40e
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x43c], 1
call dword [sym.imp.comctl32.dll_PropertySheetW]
sub esp, 4
jmp 0x68012a80
mov dword [ebp - 0x46c], edx
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x835
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x46c]
sub esp, 8
mov ebx, eax
cmp dword [edx], eax
jne 0x68012a80
test dword [edx + 0x14], 0xffffff8e
je 0x68012a80
cmp dword [edx + 8], 0xffffff9b
jne 0x68012a80
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x46c], eax
mov ecx, eax
mov eax, dword [edx + 0xc]
test eax, eax
js 0x68012a80
test ecx, ecx
je 0x68012a80
cmp eax, dword [ecx + 8]
jge 0x68012a80
mov dword [ebp - 0x470], edx
mov dword [esp], esi
mov dword [esp + 4], 0x836
call edi
mov edi, dword [ebp - 0x46c]
push edx
mov esi, eax
push edx
mov edx, dword [ebp - 0x470]
mov edx, dword [edx + 0xc]
imul eax, edx, 0xc
add eax, dword [edi + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x68012eed
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call ecx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov edi, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], esi
call ebx
sub esp, 0x10
test edi, edi
je 0x68012edd
cmp word [edi], 0
mov eax, edi
je 0x68012d52
add eax, 2
cmp word [eax], 0
jne 0x68012d49
sub eax, edi
mov edx, edi
sar eax, 1
mov ecx, eax
mov eax, esi
call sym._add_unformatted_text_to_control
lea eax, [ebp - 0x418]
cmp edi, eax
je 0x68012a80
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 0x68012a80
mov dword [esp + 4], 0x838
mov eax, dword [ebp - 0x470]
mov dword [esp], esi
call eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnableWindow]
sub esp, 8
jmp 0x68012a80
mov dword [esp + 4], 0x837
mov eax, dword [ebp - 0x470]
mov dword [esp], esi
call eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnableWindow]
mov eax, dword [ebp - 0x46c]
sub esp, 8
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x68012a77
mov dword [esp + 4], 0x834
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x150
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x418], 0x18
mov dword [ebp - 0x414], 0
sub esp, 0x10
mov dword [ebp - 0x410], 1
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x418]
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], 0
mov dword [ebp - 0x408], 0
call sym.cryptui.dll_CryptUIWizExport
sub esp, 0x14
jmp 0x68012a80
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.show_edit_cert_properties_dialog
mov dword [esp + 4], 0x68015140
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68012b95
xor ecx, ecx
xor edx, edx
mov eax, esi
call sym._add_unformatted_text_to_control
jmp 0x68012d6f
lea edi, [ebp - 0x418]
lea eax, [ebp - 0x454]
mov dword [esp], ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], 0x200
mov dword [ebp - 0x454], 1
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x44c], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x104b
call ebx
sub esp, 0x10
test eax, eax
mov eax, 0
cmove edi, eax
jmp 0x68012d19