Function at 0x1000b080
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
test byte [0x10013318], 8
jne 0x1000b2f0
mov dword [edi], 0
mov dword [esp], 0x10013300
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [0x1001902c]
sub esp, 4
test ebx, ebx
je 0x1000b131
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
add ebx, 8
lea ecx, [eax + eax*4]
shl ecx, 2
cmp ebx, edx
jne 0x1000b0dd
jmp 0x1000b12d
mov esi, dword [edx + 0x18]
test esi, esi
jne 0x1000b106
mov edx, dword [edx]
cmp edx, ebx
je 0x1000b12d
mov esi, dword [edx + 0x14]
test esi, esi
je 0x1000b0d0
cmp word [esi], 0
je 0x1000b330
mov eax, esi
add eax, 2
cmp word [eax], 0
jne 0x1000b0f0
sub eax, esi
mov esi, dword [edx + 0x18]
lea ecx, [ecx + eax + 2]
test esi, esi
je 0x1000b0d7
cmp word [esi], 0
je 0x1000b328
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000b118
sub eax, esi
mov edx, dword [edx]
lea ecx, [ecx + eax + 2]
cmp edx, ebx
jne 0x1000b0dd
test ecx, ecx
jne 0x1000b15c
xor ebx, ebx
mov dword [esp], 0x10013300
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x10013318], 8
jne 0x1000b2b8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov dword [ecx], eax
test eax, eax
je 0x1000b3d1
mov edx, dword [0x1001902c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
add edx, 8
mov dword [edi], ecx
mov eax, dword [eax]
lea ecx, [ecx + ecx*4]
mov esi, dword [edx]
lea ebx, [eax + ecx*4]
cmp esi, edx
je 0x1000b131
mov dword [ebp - 0x10], 0
jmp 0x1000b1ec
mov dword [edi + 0xc], 0
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1000b26b
mov dword [edi + 0x10], 0
mov eax, dword [0x1001902c]
mov esi, dword [esi]
add dword [ebp - 0x10], 1
add eax, 8
cmp esi, eax
je 0x1000b131
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
lea edx, [edi + edi*4]
lea edi, [eax + edx*4]
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000b1b8
test byte [0x10013318], 8
jne 0x1000b380
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 0x14]
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1000b230
cmp word [ebx], 0
je 0x1000b3b9
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000b250
sub eax, ebx
add eax, 2
add ebx, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000b1ca
test byte [0x10013318], 8
jne 0x1000b340
mov dword [edi + 0x10], ebx
mov ecx, dword [esi + 0x18]
xor eax, eax
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1000b280
cmp word [ebx], 0
je 0x1000b3c5
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000b2a0
sub eax, ebx
add eax, 2
add ebx, eax
jmp 0x1000b1d1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.____0x_08lx_n
mov dword [esp + 8], str.EnumerateSecurityPackagesW
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.EnumerateSecurityPackagesW
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000b099
xor eax, eax
jmp 0x1000b123
xor eax, eax
jmp 0x1000b0fb
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Comment__ld____s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], str.EnumerateSecurityPackagesW
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000b278
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Name__ld____s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], str.EnumerateSecurityPackagesW
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000b226
mov eax, 2
add ebx, eax
jmp 0x1000b260
mov eax, 2
add ebx, eax
jmp 0x1000b1d1
mov ebx, 0x80090300
jmp 0x1000b133