Function at 0x100027b0
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push edi
movd xmm0, edx
movd xmm1, ecx
lea edi, [esp + 8]
and esp, 0xfffffff8
punpckldq xmm0, xmm1
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x24
movq qword [ebp - 0x20], xmm0
mov eax, dword fs:[0x18]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
movq xmm0, qword [ebp - 0x20]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x14], eax
je 0x10002a6e
mov edi, dword [ebp - 0x14]
lea eax, [esi + 0x68]
mov dword [ebp - 0x20], eax
movq qword [edi + 0x10], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x64]
mov edi, dword [edi + 0x10]
sub esp, 4
test ebx, ebx
jne 0x10002849
jmp 0x100028a8
lea ecx, [ebx + 4]
lea edx, [ebx + 8]
cmovs edx, ecx
mov eax, dword [edx]
test eax, eax
je 0x100028b0
mov ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [esi + 0x60]
test eax, eax
jne 0x10002838
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x1002b01c], 4
jne 0x100029a0
mov esi, dword [ebp - 0x14]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea edx, [esi + 0x64]
lea esi, cs:[esi]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 1
mov dword [eax], ebx
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [edx], eax
mov edx, dword [eax]
test edx, edx
je 0x10002910
test byte [edx + 0xc], 1
je 0x10002910
mov ebx, dword [edx]
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x1000292b
test ecx, ecx
je 0x100029d0
test byte [ecx + 0xc], 1
je 0x100029d0
xor dword [ebx + 0xc], 1
xor dword [ecx + 0xc], 1
mov edx, dword [ebx + 8]
xor dword [edx + 0xc], 1
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100028cc
mov eax, dword [esi + 0x64]
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x1000289a
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10002950
test byte [ecx + 0xc], 1
je 0x10002950
xor dword [ebx + 0xc], 1
xor dword [edx + 0xc], 1
mov edx, dword [ebx + 8]
xor dword [edx + 0xc], 1
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100028cc
cmp dword [edx + 8], eax
je 0x10002a12
mov ecx, dword [eax]
and dword [ecx + 0xc], 0xfffffffe
mov edx, dword [eax]
mov edx, dword [edx]
or dword [edx + 0xc], 1
mov edx, dword [eax]
mov edx, dword [edx]
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
test ebx, ebx
je 0x10002a5e
cmp edx, dword [ebx + 4]
je 0x10002a66
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 8]
mov dword [edx + 4], ebx
test ebx, ebx
je 0x10002990
mov dword [ebx], edx
mov dword [ecx + 8], edx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov dword [edx], ecx
jmp 0x100028cc
mov dword [esp + 0xc], str.wrapper_lookup_already_present_in_the_tree___n
mov dword [esp + 8], str.wrapper_add_entry
mov dword [esp + 4], 0x1002b01c
mov dword [esp], 2
call fcn.10001220
jmp 0x10002873
cmp dword [edx + 4], eax
je 0x10002a3d
mov ecx, dword [eax]
and dword [ecx + 0xc], 0xfffffffe
mov edx, dword [eax]
mov edx, dword [edx]
or dword [edx + 0xc], 1
mov edx, dword [eax]
mov edx, dword [edx]
mov ebx, dword [edx]
mov ecx, dword [edx + 8]
test ebx, ebx
je 0x10002a33
cmp edx, dword [ebx + 4]
je 0x10002a38
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 4]
mov dword [edx + 8], ebx
test ebx, ebx
je 0x10002a04
mov dword [ebx], edx
mov dword [ecx + 4], edx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov dword [edx], ecx
jmp 0x100028cc
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x10002a21
mov dword [ecx], edx
mov dword [eax + 4], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, eax
mov dword [edx], eax
mov eax, edx
jmp 0x1000295b
mov dword [esi + 0x64], ecx
jmp 0x100029f8
mov dword [ebx + 4], ecx
jmp 0x100029f8
mov dword [ebx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x10002a4c
mov dword [ecx], edx
mov dword [eax + 8], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, eax
mov dword [edx], eax
mov eax, edx
jmp 0x100029d7
mov dword [esi + 0x64], ecx
jmp 0x10002984
mov dword [ebx + 4], ecx
jmp 0x10002984
test byte [0x1002b01c], 2
jne 0x10002a81
mov eax, 0x8007000e
jmp 0x1000289c
mov dword [esp + 0xc], str.Failed_to_allocate_wrapper_lookup__n
mov dword [esp + 8], str.wrapper_add_entry
mov dword [esp + 4], 0x1002b01c
mov dword [esp], 1
call fcn.10001220
jmp 0x10002a77