Function at 0x10003440
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 0x100036fe
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 0x100034d9
jmp 0x10003538
lea ecx, [ebx + 4]
lea edx, [ebx + 8]
cmovs edx, ecx
mov eax, dword [edx]
test eax, eax
je 0x10003540
mov ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [esi + 0x60]
test eax, eax
jne 0x100034c8
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x1002d01c], 4
jne 0x10003630
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 0x100035a0
test byte [edx + 0xc], 1
je 0x100035a0
mov ebx, dword [edx]
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x100035bb
test ecx, ecx
je 0x10003660
test byte [ecx + 0xc], 1
je 0x10003660
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 0x1000355c
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 0x1000352a
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100035e0
test byte [ecx + 0xc], 1
je 0x100035e0
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 0x1000355c
cmp dword [edx + 8], eax
je 0x100036a2
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 0x100036ee
cmp edx, dword [ebx + 4]
je 0x100036f6
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 8]
mov dword [edx + 4], ebx
test ebx, ebx
je 0x10003620
mov dword [ebx], edx
mov dword [ecx + 8], edx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov dword [edx], ecx
jmp 0x1000355c
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], 0x1002d01c
mov dword [esp], 2
call fcn.10001420
jmp 0x10003503
cmp dword [edx + 4], eax
je 0x100036cd
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 0x100036c3
cmp edx, dword [ebx + 4]
je 0x100036c8
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 4]
mov dword [edx + 8], ebx
test ebx, ebx
je 0x10003694
mov dword [ebx], edx
mov dword [ecx + 4], edx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov dword [edx], ecx
jmp 0x1000355c
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x100036b1
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 0x100035eb
mov dword [esi + 0x64], ecx
jmp 0x10003688
mov dword [ebx + 4], ecx
jmp 0x10003688
mov dword [ebx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x100036dc
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 0x10003667
mov dword [esi + 0x64], ecx
jmp 0x10003614
mov dword [ebx + 4], ecx
jmp 0x10003614
test byte [0x1002d01c], 2
jne 0x10003711
mov eax, 0x8007000e
jmp 0x1000352c
mov dword [esp + 0xc], str.Failed_to_allocate_wrapper_lookup__n
mov dword [esp + 8], str.wrapper_add_entry
mov dword [esp + 4], 0x1002d01c
mov dword [esp], 1
call fcn.10001420
jmp 0x10003707