Function at 0x10010ba0
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 0x10010d48
test esi, esi
je 0x10010de6
mov edx, dword [esi + 0x14]
test edx, edx
je 0x10010d80
cmp word [edx], 0
je 0x10010dc0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10010be8
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 0x10010c39
cmp word [edx], 0
je 0x10010dd8
mov ecx, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10010c20
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 0x10010df0
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 0x10010db0
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 0x10010cc2
jmp 0x10010d36
sub ebx, 1
add edx, 2
add ecx, 2
mov word [edx - 2], di
cmp ebx, 1
je 0x10010cca
movzx edi, word [ecx]
test di, di
jne 0x10010cb0
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 0x10010d98
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 0x10010d0a
jmp 0x10010d23
sub ecx, 1
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp ecx, 1
je 0x10010d12
movzx ebx, word [edx]
test bx, bx
jne 0x10010cf8
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 0x10010d12
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 0x10010ccf
mov edx, eax
jmp 0x10010cca
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 0x10010bc6
mov dword [ebp - 0x10], 0
mov eax, 0x14
jmp 0x10010c00
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 0x10010cd5
mov dword [ebp - 0x10], 1
mov eax, 0x16
jmp 0x10010c00
mov dword [ebp - 0x14], 1
xor ecx, ecx
jmp 0x10010c35
mov eax, 0x80090305
jmp 0x10010d19
mov eax, 0x80090300
jmp 0x10010d19