Function at 0x10010b40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], edi
call sym._SECUR32_findPackageW
mov esi, eax
test byte [0x10013350], 8
jne 0x10010ce8
test esi, esi
je 0x10010d86
mov edx, dword [esi + 0x14]
test edx, edx
je 0x10010d20
cmp word [edx], 0
je 0x10010d60
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10010b88
sub eax, edx
mov edx, eax
add eax, 0x16
sar edx, 1
lea ecx, [edx + 1]
mov dword [ebp - 0x10], ecx
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x14], 0
test edx, edx
je 0x10010bd9
cmp word [edx], 0
je 0x10010d78
mov ecx, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10010bc0
sub ecx, edx
mov edx, ecx
sar edx, 1
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [eax + ecx + 2]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov edi, eax
mov dword [ebx], eax
test eax, eax
je 0x10010d90
mov edx, dword [esi + 8]
lea eax, [eax + 0x14]
mov dword [edi], edx
mov edx, dword [esi + 0xc]
mov dword [edi + 4], edx
mov edx, dword [esi + 0x10]
mov dword [edi + 8], edx
mov edx, dword [esi + 0x14]
mov dword [edi + 0xc], edx
mov edx, dword [esi + 0x18]
mov dword [edi + 0x10], edx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10010d50
mov dword [edi + 0xc], eax
mov edi, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [esi + 0x14]
mov ebx, edi
cmp edi, 1
ja 0x10010c62
jmp 0x10010cd6
sub ebx, 1
add edx, 2
add ecx, 2
mov word [edx - 2], di
cmp ebx, 1
je 0x10010c6a
movzx edi, word [ecx]
test di, di
jne 0x10010c50
xor edi, edi
mov word [edx], di
mov ebx, dword [ebp - 0x10]
lea eax, [eax + ebx*2]
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x10010d38
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov edx, dword [esi + 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, esi
cmp esi, 1
ja 0x10010caa
jmp 0x10010cc3
sub ecx, 1
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp ecx, 1
je 0x10010cb2
movzx ebx, word [edx]
test bx, bx
jne 0x10010c98
xor edx, edx
mov word [eax], dx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x10010cb2
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10010c6f
mov edx, eax
jmp 0x10010c6a
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s__p_n
mov dword [esp + 8], str.QuerySecurityPackageInfoW
mov dword [esp + 4], 0x10013350
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x10010b66
mov dword [ebp - 0x10], 0
mov eax, 0x14
jmp 0x10010ba0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0xc], 0
jmp 0x10010c75
mov dword [ebp - 0x10], 1
mov eax, 0x16
jmp 0x10010ba0
mov dword [ebp - 0x14], 1
xor ecx, ecx
jmp 0x10010bd5
mov eax, 0x80090305
jmp 0x10010cb9
mov eax, 0x80090300
jmp 0x10010cb9