Function at 0x6800ed80
Capabilities:
Access peb ldr_data
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, 0x48
mov ebx, dword [ecx]
test byte [0x68015140], 8
jne 0x6800efa0
mov eax, dword [ebx]
cmp eax, 0x20
jne 0x6800ef78
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x38], 0x20
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], edx
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x6800ee74
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov esi, eax
sub esp, 0x18
lea edx, [esi + esi]
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 dword [ebp - 0x2c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6800ef0c
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov esi, eax
sub esp, 0x18
lea edx, [esi + esi]
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 dword [ebp - 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edi
sub esp, 0x18
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov edi, dword fs:[0x18]
call sym.cryptui.dll_CryptUIDlgSelectStoreW
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, eax
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x2c]
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 esi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
test byte [0x68015140], 4
jne 0x6800efd0
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 dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.CryptUIDlgSelectStoreA
mov dword [esp + 4], 0x68015140
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6800eda3
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unexpected_size__ld_n
mov dword [esp + 8], str.CryptUIDlgSelectStoreA
mov dword [esp + 4], 0x68015140
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x6800ef81