Function at 0x6fb4a800
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
test eax, eax
je 0x6fb4a9d1
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x6fb4a968
lea esi, [eax + 0x28]
lea edx, [eax + 0x20]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x6fb4a979
mov eax, dword [esi]
mov ecx, dword [edx]
xor ebx, ebx
test eax, eax
je 0x6fb4aa10
mov dword [ebp - 0x1c], edx
jmp 0x6fb4a857
mov eax, dword [esi]
inc ebx
cmp eax, ebx
jbe 0x6fb4a8b0
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
cmp dword [eax + 8], edi
jne 0x6fb4a850
mov edx, dword [ebp + 0x20]
and edx, dword [eax + 0x10]
je 0x6fb4a850
test byte [0x6fb5e048], 4
je 0x6fb4a850
mov dword [esp + 0x14], edx
inc ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Declaration_of_register__u_already_exists__writemask_match_0x_x_n
mov dword [esp + 8], str.record_declaration
mov dword [esp + 4], 0x6fb5e048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [esi]
cmp eax, ebx
ja 0x6fb4a857
lea esi, [esi]
nop
lea eax, [eax + eax*2 + 3]
mov edx, dword [ebp - 0x1c]
shl eax, 3
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x6fb4a9e0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
test eax, eax
je 0x6fb4a9c8
mov dword [edx], eax
mov ecx, dword [esi]
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*2]
mov dword [eax + ecx*8], ebx
mov eax, dword [esi]
mov ecx, dword [edx]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ebx, dword [edx]
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*8]
mov dword [eax + 8], edi
mov eax, dword [esi]
mov edi, dword [edx]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov edi, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [edx]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [eax + 0x10], edi
mov eax, dword [esi]
mov ebx, dword [edx]
mov edx, dword [ebp + 0x24]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*8]
mov dword [eax + 0x14], edx
mov eax, 1
inc dword [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax + 0x2c]
lea edx, [eax + 0x24]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x6fb4a833
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x6fb4a8fb
test byte [0x6fb5e048], 2
je 0x6fb4a9d1
mov dword [esp + 0xc], str.Error_allocating_declarations_array_n
jmp 0x6fb4aa22
test byte [0x6fb5e048], 2
jne 0x6fb4aa1a
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
jmp 0x6fb4a8f1
mov eax, 0x18
jmp 0x6fb4a8ba
mov dword [esp + 0xc], str.Error_reallocating_declarations_array_n
mov dword [esp + 8], str.record_declaration
mov dword [esp + 4], 0x6fb5e048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
xor eax, eax
jmp 0x6fb4a9d3