Function at 0x1002b0a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call sym._wined3d_mutex_lock_0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002b1f0
lea ecx, [esi + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x1002b294
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x18], 0
mov dword [ecx + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x14], eax
lea eax, [ecx + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov esi, dword [edi]
mov ecx, dword [ebp - 0x10]
cmp esi, edi
jne 0x1002b16e
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edi + 4]
mov dword [ecx], edi
xor ebx, ebx
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov dword [edi + 4], ecx
call sym._wined3d_mutex_unlock_0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 4]
cmp dword [esi + 0xc], edx
je 0x1002b180
mov esi, dword [esi]
cmp esi, edi
je 0x1002b140
mov edx, dword [ebx]
cmp dword [esi + 8], edx
jne 0x1002b168
jmp 0x1002b160
mov edx, dword [ebx + 8]
cmp dword [esi + 0x10], edx
jne 0x1002b168
mov edx, dword [ebx + 0xc]
cmp dword [esi + 0x14], edx
jne 0x1002b168
test esi, esi
je 0x1002b140
test byte [esi + 0x18], 1
je 0x1002b1ae
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax]
mov dword [esp], eax
call dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
sub esp, 4
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x10], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esp + 8], esi
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.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x10]
sub esp, 0xc
jmp 0x1002b140
mov esi, dword [edi]
cmp esi, edi
jne 0x1002b206
jmp 0x1002b280
mov esi, dword [esi]
cmp esi, edi
je 0x1002b280
mov ecx, dword [ebx]
cmp dword [esi + 8], ecx
jne 0x1002b200
mov edx, dword [ebx + 4]
cmp dword [esi + 0xc], edx
jne 0x1002b200
mov ecx, dword [ebx + 8]
cmp dword [esi + 0x10], ecx
jne 0x1002b200
mov edx, dword [ebx + 0xc]
cmp dword [esi + 0x14], edx
jne 0x1002b200
xor ebx, ebx
test esi, esi
je 0x1002b280
test byte [esi + 0x18], 1
je 0x1002b23f
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esp + 8], esi
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.kernel32.dll_HeapFree]
sub esp, 0xc
call sym._wined3d_mutex_unlock_0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._wined3d_mutex_unlock_0
mov ebx, 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x8007000e
jmp 0x1002b14f