Function at 0x6a6827c0
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, 0x68
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ecx + 0xc]
test byte [0x6a685018], 8
jne 0x6a682920
test ebx, ebx
je 0x6a68290e
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x6a68290e
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym.wtsapi32.dll_WTSEnumerateSessionsW
sub esp, 0x14
test eax, eax
je 0x6a68290e
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x6a68296b
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor edi, edi
mov dword [ebp - 0x30], ebx
xor esi, esi
mov ebx, edi
mov edi, eax
jmp 0x6a682860
lea esi, [esi + eax + 0xc]
mov eax, dword [ebp - 0x2c]
inc ebx
cmp dword [eax], ebx
jbe 0x6a682968
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*2]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea eax, [edx + eax*4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edi
sub esp, 0x20
test eax, eax
jne 0x6a682850
mov edx, eax
test byte [0x6a685018], 2
jne 0x6a682b30
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov eax, dword [ebp - 0x1c]
call sym._heap_free
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x34], 0xe
lea esp, [ebp - 0x10]
xor edx, edx
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p_0x_08lx_0x_08lx__p__p._n
mov dword [esp + 8], str.WTSEnumerateSessionsA
mov dword [esp + 4], 0x6a685018
mov dword [esp], 3
mov dword [ebp - 0x30], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x30]
jmp 0x6a6827f2
mov ebx, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebx], eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6a6828fc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
lea edx, [eax + eax*2]
lea ecx, [edx*4]
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x6a682ae9
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor ecx, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x38], eax
jmp 0x6a682a30
mov eax, dword [ebx]
mov esi, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x30]
add dword [ebp - 0x34], edi
mov esi, dword [ebp - 0x30]
cmp dword [eax], esi
jbe 0x6a682af1
mov edi, dword [ebx]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + eax*2]
lea eax, [edx*4]
add ecx, eax
mov esi, dword [ecx + 8]
mov dword [edi + eax + 8], esi
mov edi, dword [ecx]
mov ecx, dword [ebx]
mov dword [ecx + edx*4], edi
mov edi, dword [ebp - 0x34]
mov edx, dword [ebx]
lea ecx, [edx + edi]
mov dword [edx + eax + 4], ecx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x1c], 0
sub edx, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov edx, dword [ebx]
mov edx, dword [edx + eax + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x20
mov edi, eax
test eax, eax
jne 0x6a682a1a
test byte [0x6a685018], 2
je 0x6a6829d8
mov dword [esp + 0xc], str.WideCharToMultiByte_failed._n
mov dword [esp + 8], str.WTSEnumerateSessionsA
mov dword [esp + 4], 0x6a685018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6a6829d8
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, 1
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0xc], str.WideCharToMultiByte_failed._n
mov dword [esp + 8], str.WTSEnumerateSessionsA
mov dword [esp + 4], 0x6a685018
mov dword [esp], 1
mov dword [ebp - 0x2c], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x6a6828bf