Function at 0x68012700
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, 0x88
mov ebx, dword [ecx]
test byte [0x68015140], 8
jne 0x68012a40
mov eax, dword [ebx]
lea edx, [eax - 0x3c]
and edx, 0xfffffffb
jne 0x68012a76
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x68012764
call sym._strdupAtoW
mov dword [ebp - 0x60], eax
test eax, eax
je 0x68012b00
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x68012781
call sym._strdupAtoW
mov dword [ebp - 0x64], eax
test eax, eax
je 0x68012b18
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x68012910
imul edi, eax, 0x38
mov esi, dword [ebx + 0x38]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x6c], edi
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x5c], eax
sub esp, 0xc
test eax, eax
je 0x68012b26
mov dword [esp + 8], edi
add edi, esi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x5c]
mov eax, esi
lea ecx, [edx + 0xc]
lea esi, [esi]
mov edx, dword [eax + 4]
test dl, 1
jne 0x680127fd
cmp word [eax + 0xe], 0
je 0x680127fd
mov dword [ecx], 0
test dl, 4
je 0x68012810
cmp word [eax + 0x12], 0
je 0x68012810
mov dword [ecx + 4], 0
test dl, 8
je 0x68012823
cmp word [eax + 0x16], 0
je 0x68012823
mov dword [ecx + 8], 0
test dl, 0x80
je 0x6801282f
mov dword [ecx + 0x14], 0
test dh, 0x10
je 0x68012842
cmp word [eax + 0x2a], 0
je 0x68012842
mov dword [ecx + 0x1c], 0
and dh, 0x20
je 0x68012855
cmp word [eax + 0x2e], 0
je 0x68012855
mov dword [ecx + 0x20], 0
add eax, 0x38
add ecx, 0x38
cmp eax, edi
jne 0x680127e8
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x6c]
add esi, 4
mov dword [ebp - 0x6c], ebx
mov ebx, esi
add eax, ecx
mov edi, ecx
mov esi, eax
jmp 0x680128e1
test al, 4
je 0x6801288a
mov ecx, dword [ebx + 0xc]
mov edx, ecx
shr edx, 0x10
jne 0x680129c0
test al, 8
je 0x6801289c
mov ecx, dword [ebx + 0x10]
mov edx, ecx
shr edx, 0x10
jne 0x680129d8
test al, 0x80
je 0x680128ad
test byte [0x68015140], 1
jne 0x680129f0
test ah, 0x10
je 0x680128c0
mov ecx, dword [ebx + 0x24]
mov edx, ecx
shr edx, 0x10
jne 0x68012a20
test ah, 0x20
je 0x680128d3
mov eax, dword [ebx + 0x28]
mov ecx, eax
shr ecx, 0x10
jne 0x68012990
add edi, 0x38
add ebx, 0x38
cmp esi, edi
je 0x68012ac0
mov eax, dword [ebx]
test al, 1
jne 0x68012878
mov ecx, dword [ebx + 8]
mov edx, ecx
shr edx, 0x10
je 0x68012878
mov eax, ecx
call sym._strdupAtoW
mov dword [edi + 0xc], eax
test eax, eax
je 0x680129a0
mov eax, dword [ebx]
jmp 0x68012878
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym.cryptui.dll_CryptUIDlgSelectCertificateW
sub esp, 4
mov edi, eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x60], edx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x34]
sub esp, 0xc
test edx, edx
jne 0x68012aa0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
call sym._strdupAtoW
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x680128d3
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
xor edi, edi
mov ebx, dword [ebp - 0x6c]
call sym._free_prop_sheet_pages
mov dword [ebp - 0x5c], 0
jmp 0x68012927
mov eax, ecx
call sym._strdupAtoW
mov dword [edi + 0x10], eax
test eax, eax
je 0x680129a0
mov eax, dword [ebx]
jmp 0x6801288a
mov eax, ecx
call sym._strdupAtoW
mov dword [edi + 0x14], eax
test eax, eax
je 0x680129a0
mov eax, dword [ebx]
jmp 0x6801289c
mov dword [esp + 0xc], str.ignoring_pfnCallback_n
mov dword [esp + 8], str.prop_sheet_pages_AtoW
mov dword [esp + 4], 0x68015140
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx]
jmp 0x680128ad
mov eax, ecx
call sym._strdupAtoW
mov dword [edi + 0x28], eax
test eax, eax
je 0x680129a0
mov eax, dword [ebx]
jmp 0x680128c0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x68017286
mov dword [esp + 8], str.CryptUIDlgSelectCertificateA
mov dword [esp + 4], 0x68015140
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx]
lea edx, [eax - 0x3c]
and edx, 0xfffffffb
je 0x68012734
test byte [0x68015140], 4
jne 0x68012ad0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebp - 0x5c]
call sym._free_prop_sheet_pages
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x20], eax
jmp 0x68012917
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unexpected_size__ld_n
mov dword [esp + 8], str.CryptUIDlgSelectCertificateA
mov dword [esp + 4], 0x68015140
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x68012a7f
mov dword [ebp - 0x5c], 0
xor edi, edi
mov dword [ebp - 0x64], 0
jmp 0x68012927
mov dword [ebp - 0x5c], 0
xor edi, edi
jmp 0x68012927
xor edi, edi
jmp 0x68012927