Function at 0x1003d6f0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, esp
mov dword [esi + 0xe8], ebp
mov dword [esi + 0xec], esp
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0xf4], 0x10041da0
mov dword [esi + 0x68], edx
mov ebx, ecx
lea edi, [esi + 0x30]
lea edx, [esi + 0xf0]
mov eax, dword fs:[0]
mov dword [esi + 0xf0], eax
mov dword fs:[0], edx
push ecx
push edi
call fcn.10178120
add esp, 8
push edi
push dword [ebp + 8]
call fcn.10084cb0
add esp, 8
test al, al
jne 0x1003dc30
mov dword [esi + 0x70], 0x10262bb8
mov eax, dword [0x10262be8]
cmp eax, 3
jne 0x1003dc72
mov edi, dword [esi + 0x70]
lea eax, [edi + 8]
mov dword [esi + 0x24], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x102620f8]
mov eax, dword [eax]
mov dword [esi + 0x20], ebx
test eax, 0x7fffffff
jne 0x1003dca5
mov dword [esi + 0x1c], 0
movzx eax, byte [edi + 0xc]
test al, al
jne 0x1003dcbb
cmp dword [edi + 0x1c], 0
mov dword [esi + 0x28], edi
je 0x1003d921
mov eax, dword [esi + 0x28]
mov dword [esi + 0xf8], 1
add eax, 0x20
push dword [esi + 0x20]
push eax
call fcn.10092ce0
add esp, 8
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x54], 0
mov edx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
shr ebx, 0x19
movd xmm0, ebx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
lea ecx, [edx - 0x30]
pshufd xmm0, xmm0, 0
mov dword [esi + 0x50], edx
mov edx, edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x20]
movdqa xmmword [esi + 0xc0], xmm0
mov ebx, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
movdqa xmm0, xmmword [esi + 0xc0]
and ecx, edx
movdqu xmm1, xmmword [eax + ecx]
mov dword [esi + 0x10], ecx
pcmpeqb xmm0, xmm1
movdqa xmmword [esi + 0xd0], xmm1
pmovmskb ebx, xmm0
test ebx, ebx
jne 0x1003d89a
movdqa xmm1, xmmword [esi + 0xd0]
pcmpeqd xmm0, xmm0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x1003d921
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x54]
lea eax, [eax + ecx + 0x10]
add ecx, 0x10
mov dword [esi + 0x10], eax
mov dword [esi + 0x54], ecx
jmp 0x1003d825
lea eax, [ebx - 1]
and ax, bx
mov ebx, eax
je 0x1003d851
tzcnt eax, ebx
mov ecx, dword [esi + 0x18]
add eax, dword [esi + 0x10]
and eax, edx
neg eax
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x14]
shl edi, 4
cmp ecx, dword [eax + edi + 8]
jne 0x1003d890
mov eax, dword [esi + 0x14]
add eax, edi
push ecx
push dword [eax]
push dword [esi + 0x6c]
call fcn.10193bb4
mov edx, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x1003d890
mov eax, dword [esi + 0x50]
mov dword [esi + 0xf8], 1
lea eax, [eax + edi - 0x20]
push eax
push dword [ebp + 0x10]
call fcn.10086c30
add esp, 8
cmp byte [esi + 0x1c], 0
mov edi, dword [esi + 0x28]
jne 0x1003d909
mov eax, dword [0x102620f8]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x1003dcf3
mov dword [esi + 0xf8], 0xffffffff
push dword [esi + 0x24]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1003dc30
cmp byte [esi + 0x1c], 0
jne 0x1003d943
mov eax, dword [0x102620f8]
mov eax, dword [eax]
mov dword [esi + 0xf8], 0xffffffff
test eax, 0x7fffffff
jne 0x1003dd13
mov dword [esi + 0xf8], 0xffffffff
push dword [esi + 0x24]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0x20]
push dword [eax + 8]
push dword [eax]
lea eax, [esi + 0x30]
push eax
call fcn.1015f6e0
add esp, 0xc
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1003db0b
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
movq xmm0, qword [esi + 0x30]
mov dword [esi + 0xf8], 2
mov dword [esi + 0x60], eax
movq qword [esi + 0x58], xmm0
push 0
call fcn.1016f860
add esp, 4
mov ebx, dword [esi + 0x20]
test eax, eax
lea edi, [esi + 0x30]
je 0x1003dd2c
mov dword [esi + 0x70], 0x101b4440
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
movdqu xmm0, xmmword [eax]
movd edx, xmm0
pshufd xmm1, xmm0, 0x55
add edx, 1
movd ecx, xmm1
adc ecx, 0
mov dword [eax], edx
mov dword [eax + 4], ecx
movdqu xmmword [esi + 0x80], xmm0
mov byte [esi + 0xe], 1
mov dword [esi + 0xf8], 4
push ebx
push edi
call fcn.10178120
add esp, 8
mov ecx, dword [esi + 0x38]
movq xmm0, qword [esi + 0x30]
mov ebx, dword [ebp + 0x18]
mov edx, dword [esi + 0x68]
mov dword [esi + 0xf8], 7
lea edi, [esi + 0x70]
lea eax, [esi + 0x90]
mov dword [esi + 0x98], ecx
movq qword [esi + 0x90], xmm0
lea ecx, [esi + 0x58]
push ebx
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.1003df00
add esp, 0x1c
mov eax, dword [esi + 0x90]
test eax, eax
je 0x1003da6a
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x1003da6a
push 1
push ecx
push eax
call fcn.100985c0
add esp, 0xc
lea eax, [esi + 0x70]
mov byte [esi + 0xe], 1
mov dword [esi + 0xf8], 4
push eax
push dword [ebp + 0x10]
call fcn.10086c30
add esp, 8
mov dword [esi + 0xb4], 0x10262bb8
mov eax, dword [0x10262be8]
cmp eax, 3
je 0x1003dad3
lea eax, [esi + 0xb4]
mov byte [esi + 0xe], 1
mov dword [esi + 0x90], eax
lea eax, [esi + 0x90]
mov dword [esi + 0x30], eax
lea eax, [0x10262be8]
push 0x101b1748
push 0x101b1138
lea ecx, [esi + 0x30]
push ecx
push 0
push eax
call fcn.101ae6e0
add esp, 0x14
mov eax, dword [esi + 0xb4]
mov byte [esi + 0xe], 1
mov dword [esi + 0x14], eax
add eax, 8
mov dword [esi + 0x10], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x102620f8]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1003db58
mov byte [esi + 0xe], 1
call fcn.101ae480
xor al, 1
mov dword [esi + 0x18], eax
jmp 0x1003db5f
cmp byte [esi + 0x34], 3
jne 0x1003dc30
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx]
mov dword [esi + 0x14], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0xf8], 3
push eax
call dword [ecx]
add esp, 4
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x1003db4e
push dword [ecx + 8]
push eax
push dword [edi]
call fcn.100985c0
add esp, 0xc
push 4
push 0xc
push edi
jmp 0x1003dc28
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + 0xc]
test al, al
mov eax, dword [esi + 0x20]
jne 0x1003dd48
mov byte [esi + 0xf], 1
mov dword [esi + 0xf8], 5
lea ecx, [esi + 0xb4]
push eax
push ecx
call fcn.10178120
add esp, 8
movsd xmm1, qword [esi + 0x80]
mov eax, dword [esi + 0x14]
movq xmm0, qword [esi + 0x88]
movsd xmm2, qword [esi + 0x70]
lea ecx, [esi + 0x30]
mov byte [esi + 0xf], 0
movsd qword [esi + 0x40], xmm1
movq xmm1, qword [esi + 0x78]
add eax, 0x10
movq qword [esi + 0x48], xmm0
movsd qword [esi + 0x30], xmm2
movq qword [esi + 0x38], xmm1
push ecx
lea ecx, [esi + 0xb4]
push ecx
push eax
lea eax, [esi + 0x90]
push eax
call fcn.100850f0
add esp, 0x10
cmp dword [esi + 0x90], 0
je 0x1003dbfe
lea eax, [esi + 0x90]
mov byte [esi + 0xf], 0
push eax
call fcn.10002100
add esp, 4
cmp byte [esi + 0x18], 0
je 0x1003dc44
mov byte [esi + 0xe], 0
mov dword [esi + 0xf8], 4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1003dc30
push 1
push eax
push dword [esi + 0x58]
call fcn.100985c0
add esp, 0xc
mov eax, dword [esi + 0xf0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x102620f8]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1003dc04
mov byte [esi + 0xe], 0
mov dword [esi + 0xf8], 4
call fcn.101ae480
test al, al
jne 0x1003dc04
mov eax, dword [esi + 0x14]
mov byte [eax + 0xc], 1
jmp 0x1003dc04
lea eax, [esi + 0x70]
mov dword [esi + 0x90], eax
lea eax, [esi + 0x90]
mov dword [esi + 0x30], eax
lea eax, [0x10262be8]
push 0x101b1748
push 0x101b1138
push edi
push 0
push eax
call fcn.101ae6e0
add esp, 0x14
jmp 0x1003d775
call fcn.101ae480
xor al, 1
mov dword [esi + 0x1c], eax
movzx eax, byte [edi + 0xc]
test al, al
je 0x1003d7ad
mov eax, dword [esi + 0x24]
mov dword [esi + 0xf8], 0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x1c]
mov byte [esi + 0x34], al
push 0x101b2730
push 0x101b266c
lea eax, [esi + 0x30]
push eax
push 0x2b
push 0x101b2640
call fcn.101af4e0
add esp, 0x14
jmp 0x1003dd7b
mov dword [esi + 0xf8], 0xffffffff
call fcn.101ae480
test al, al
jne 0x1003d909
mov byte [edi + 0xc], 1
jmp 0x1003d909
call fcn.101ae480
test al, al
jne 0x1003d943
mov eax, dword [esi + 0x28]
mov byte [eax + 0xc], 1
jmp 0x1003d943
push 0x101b4428
push 0x101b416c
push edi
push 0x46
push 0x101b4390
call fcn.101af4e0
add esp, 0x14
jmp 0x1003dd7b
mov eax, dword [esi + 0x10]
mov dword [esi + 0xf8], 6
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
mov byte [esi + 0x34], al
push 0x101b2760
push 0x101b266c
lea eax, [esi + 0x30]
push eax
push 0x2b
push 0x101b2640
call fcn.101af4e0
add esp, 0x14
ud2