Function at 0x680130f0
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 esi, dword [ecx]
test byte [0x68015140], 8
jne 0x68013430
mov eax, dword [esi]
lea edx, [eax - 0x3c]
and edx, 0xfffffffb
jne 0x68013466
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x68013154
call sym._strdupAtoW
mov dword [ebp - 0x60], eax
test eax, eax
je 0x680134ea
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x68013171
call sym._strdupAtoW
mov dword [ebp - 0x64], eax
test eax, eax
je 0x680134ff
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x680132f8
imul ebx, eax, 0x38
mov edi, dword [esi + 0x38]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x6c], ebx
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 0x6801350d
mov dword [esp + 8], ebx
add ebx, edi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x5c]
mov edx, edi
lea ecx, [eax + 0xc]
lea esi, [esi]
mov eax, dword [edx + 4]
test al, 1
jne 0x680131ec
cmp word [edx + 0xe], 0
je 0x680131ec
mov dword [ecx], 0
test al, 4
je 0x680131fe
cmp word [edx + 0x12], 0
je 0x680131fe
mov dword [ecx + 4], 0
test al, 8
je 0x68013210
cmp word [edx + 0x16], 0
je 0x68013210
mov dword [ecx + 8], 0
test al, 0x80
je 0x6801321b
mov dword [ecx + 0x14], 0
test ah, 0x10
je 0x6801322e
cmp word [edx + 0x2a], 0
je 0x6801322e
mov dword [ecx + 0x1c], 0
test ah, 0x20
je 0x68013241
cmp word [edx + 0x2e], 0
je 0x68013241
mov dword [ecx + 0x20], 0
add edx, 0x38
add ecx, 0x38
cmp edx, ebx
jne 0x680131d8
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x6c]
add edi, 4
mov dword [ebp - 0x6c], esi
add eax, edx
mov esi, edx
mov ebx, eax
jmp 0x680132c9
test al, 4
je 0x68013272
mov ecx, dword [edi + 0xc]
mov edx, ecx
shr edx, 0x10
jne 0x68013380
test al, 8
je 0x68013284
mov ecx, dword [edi + 0x10]
mov edx, ecx
shr edx, 0x10
jne 0x680133a0
test al, 0x80
je 0x68013295
test byte [0x68015140], 1
jne 0x680133b8
test ah, 0x10
je 0x680132a8
mov ecx, dword [edi + 0x24]
mov edx, ecx
shr edx, 0x10
jne 0x680133e8
test ah, 0x20
je 0x680132bb
mov eax, dword [edi + 0x28]
mov ecx, eax
shr ecx, 0x10
jne 0x68013400
add esi, 0x38
add edi, 0x38
cmp ebx, esi
je 0x680134b0
mov eax, dword [edi]
test al, 1
jne 0x68013260
mov ecx, dword [edi + 8]
mov edx, ecx
shr edx, 0x10
je 0x68013260
mov eax, ecx
call sym._strdupAtoW
mov dword [esi + 0xc], eax
test eax, eax
je 0x68013410
mov eax, dword [edi]
jmp 0x68013260
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym.cryptui.dll_CryptUIDlgSelectCertificateW
sub esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x60], edx
mov dword [esp], eax
call edx
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 [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov edx, dword [esi + 0x34]
sub esp, 0xc
test edx, edx
jne 0x68013490
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ecx
call sym._strdupAtoW
mov dword [esi + 0x10], eax
test eax, eax
je 0x68013410
mov eax, dword [edi]
jmp 0x68013272
mov eax, ecx
call sym._strdupAtoW
mov dword [esi + 0x14], eax
test eax, eax
je 0x68013410
mov eax, dword [edi]
jmp 0x68013284
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 [edi]
jmp 0x68013295
mov eax, ecx
call sym._strdupAtoW
mov dword [esi + 0x28], eax
test eax, eax
je 0x68013410
mov eax, dword [edi]
jmp 0x680132a8
call sym._strdupAtoW
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x680132bb
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
xor ebx, ebx
mov esi, dword [ebp - 0x6c]
call sym._free_prop_sheet_pages
mov dword [ebp - 0x5c], 0
jmp 0x6801330f
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x6801728a
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 [esi]
lea edx, [eax - 0x3c]
and edx, 0xfffffffb
je 0x68013124
test byte [0x68015140], 4
jne 0x680134c0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
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, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x20], eax
jmp 0x680132ff
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 0x6801346f
mov dword [ebp - 0x5c], 0
xor ebx, ebx
mov dword [ebp - 0x64], 0
jmp 0x6801330f
mov dword [ebp - 0x5c], 0
xor ebx, ebx
jmp 0x6801330f
xor ebx, ebx
jmp 0x6801330f