Function at 0x402b9a
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, 0x38
mov eax, dword [ecx + 4]
test byte [0x4090c0], 8
mov dword [ebp - 0x2c], eax
jne 0x402df0
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x4090b8]
sub esp, 4
cmp eax, 0x4090b8
je 0x402e20
xor ebx, ebx
lea esi, [esi]
mov eax, dword [eax]
mov edx, ebx
inc ebx
cmp eax, 0x4090b8
jne 0x402be0
lea eax, [edx*4 + 8]
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 4], edi
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
call eax
mov edx, dword [ebp - 0x2c]
mov dword [edx], eax
sub esp, 0xc
test eax, eax
je 0x402e2c
mov dword [eax], ebx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov ebx, dword [0x4090b8]
mov dword [ebp - 0x24], esi
cmp ebx, 0x4090b8
jne 0x402c66
jmp 0x402d08
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx]
inc dword [ebp - 0x1c]
cmp ebx, 0x4090b8
je 0x402d08
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov esi, dword [edx]
mov eax, dword [eax]
mov dword [esp + 4], ecx
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [esi + edi*4 + 4], eax
sub esp, 0xc
mov eax, dword [edx]
mov ecx, dword [eax + edi*4 + 4]
test ecx, ecx
je 0x402d30
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [edx]
mov ecx, dword [ecx + esi*4 + 4]
mov esi, dword [eax]
lea edi, [ecx + 4]
mov dword [ebp - 0x20], esi
lea esi, [eax + 4]
cmp dword [ebp - 0x20], 8
jb 0x402c50
test edi, 1
jne 0x402dd0
test edi, 2
jne 0x402db0
test edi, 4
je 0x402c50
mov eax, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], eax
sub dword [ebp - 0x20], 4
jmp 0x402c50
xor ebx, ebx
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edx, edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
dec edx
mov dword [ebp - 0x1c], edx
je 0x402d87
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
mov esi, dword fs:[0x18]
mov edx, esi
mov esi, edi
mov edi, edx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [eax + esi*4 + 4]
xor edx, edx
inc esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
sub esp, 0xc
cmp dword [ebp - 0x1c], esi
jne 0x402d60
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov ebx, 0x8007000e
sub esp, 0xc
jmp 0x402d0a
movzx eax, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], ax
sub dword [ebp - 0x20], 2
jmp 0x402ce5
mov esi, ecx
movzx ecx, byte [eax + 4]
lea edi, [esi + 5]
mov byte [esi + 4], cl
lea esi, [eax + 5]
dec dword [ebp - 0x20]
jmp 0x402cd9
mov dword [esp], 3
mov eax, 0x40a249
mov dword [esp + 0xc], eax
mov eax, str.IrotEnumRunning
mov dword [esp + 8], eax
mov eax, 0x4090c0
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x402bb7
mov eax, 4
xor ebx, ebx
jmp 0x402bf3
mov ebx, 0x8007000e
jmp 0x402d0a