Function at 0x6a0ca840
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 0x6a0caa11
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x6a0ca9a8
lea esi, [eax + 0x28]
lea edx, [eax + 0x20]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x6a0ca9b9
mov eax, dword [esi]
mov ecx, dword [edx]
xor ebx, ebx
test eax, eax
je 0x6a0caa50
mov dword [ebp - 0x1c], edx
jmp 0x6a0ca897
mov eax, dword [esi]
inc ebx
cmp eax, ebx
jbe 0x6a0ca8f0
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
cmp dword [eax + 8], edi
jne 0x6a0ca890
mov edx, dword [ebp + 0x20]
and edx, dword [eax + 0x10]
je 0x6a0ca890
test byte [0x6a0de048], 4
je 0x6a0ca890
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], 0x6a0de048
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 0x6a0ca897
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 0x6a0caa20
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 0x6a0caa08
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 0x6a0ca873
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 0x6a0ca93b
test byte [0x6a0de048], 2
je 0x6a0caa11
mov dword [esp + 0xc], str.Error_allocating_declarations_array_n
jmp 0x6a0caa62
test byte [0x6a0de048], 2
jne 0x6a0caa5a
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 0x6a0ca931
mov eax, 0x18
jmp 0x6a0ca8fa
mov dword [esp + 0xc], str.Error_reallocating_declarations_array_n
mov dword [esp + 8], str.record_declaration
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
xor eax, eax
jmp 0x6a0caa13