Function at 0x6a6831b0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edx, dword [ecx]
mov esi, dword [eax + 8]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ecx + 4]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
test byte [0x6a685018], 8
jne 0x6a683370
test edi, edi
je 0x6a683350
test ebx, ebx
je 0x6a683350
lea eax, [esi - 8]
mov dword [esp + 0x10], ebx
and eax, 0xfffffff7
je 0x6a683328
lea eax, [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.wtsapi32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x6a68333f
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
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 esi
mov dword [ebx], eax
sub esp, 0x20
test eax, eax
je 0x6a6833c0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [edi], eax
sub esp, 0xc
test eax, eax
je 0x6a68342a
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
mov dword [ebx], eax
sub esp, 0x20
test eax, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
je 0x6a6833f0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
sub esp, 0xc
jmp 0x6a68333f
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.wtsapi32.dll_WTSQuerySessionInformationW
sub esp, 0x14
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x6f8
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], str._p_0x_08lx__d__p__p_n
mov dword [esp + 8], str.WTSQuerySessionInformationA
mov dword [esp + 4], 0x6a685018
mov dword [esp], 3
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x6a6831e8
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
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
jmp 0x6a68333f
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [edi]
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
call ebx
xor eax, eax
sub esp, 0xc
jmp 0x6a68333f
mov eax, dword [ebp - 0x1c]
call sym._heap_free
xor eax, eax
jmp 0x6a68333f