Function at 0x100a4050
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ecx + 4]
mov ebx, ecx
mov dword [eax + 0x7c], 0
mov dword [eax + 0x88], 0
mov dword [esp + 4], eax
mov edi, dword [eax + 0x94]
mov esi, dword [eax + 0x8c]
mov dword [eax + 0x94], 0
test edi, edi
je 0x100a40b7
add esi, 4
jmp 0x100a40a6
add esi, 8
dec edi
je 0x100a40b7
mov ecx, dword [esi - 4]
lock dec dword [ecx]
jne 0x100a40a0
mov edx, dword [esi]
call fcn.10099a70
jmp 0x100a40a0
mov edi, dword [esp + 4]
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0xc]
test edx, edx
je 0x100a4175
mov ebx, dword [edi]
movdqa xmm0, xmmword [ebx]
lea esi, [ebx + 0x10]
pmovmskb eax, xmm0
not eax
jmp 0x100a40e6
test edx, edx
mov eax, edi
je 0x100a4136
test ax, ax
jne 0x100a4109
nop dword [eax + eax]
movdqa xmm0, xmmword [esi]
add ebx, 0xffffff40
add esi, 0x10
pmovmskb eax, xmm0
cmp ax, 0xffff
je 0x100a40f0
not eax
lea edi, [eax - 1]
dec edx
and edi, eax
tzcnt eax, eax
neg eax
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*4 - 0xc]
lock dec dword [ecx]
jne 0x100a40e0
lea eax, [ebx + eax*4]
mov dword [esp + 8], edx
mov edx, dword [eax - 8]
call fcn.10099a70
mov edx, dword [esp + 8]
jmp 0x100a40e0
mov edi, dword [esp + 4]
mov esi, dword [edi + 4]
test esi, esi
je 0x100a4154
lea eax, [esi + 0x11]
push eax
push 0xff
push dword [edi]
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi + 1]
mov ebx, dword [esp + 0xc]
mov dword [edi + 0xc], 0
mov ecx, eax
and eax, 0xfffffff8
shr ecx, 3
sub eax, ecx
cmp esi, 8
cmovb eax, esi
mov dword [edi + 8], eax
mov dword [edi + 0x68], 0
inc dword [edi + 0x6c]
mov dword [edi + 0x70], 0
cmp dword [edi + 0xb0], 0
je 0x100a419b
mov eax, dword [edi + 0xb8]
mov dword [edi + 0xb4], eax
mov ecx, ebx
call fcn.100a4810
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov esi, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x20], 0
cmp eax, 1
jne 0x100a469d
cmp edx, 0x80000000
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 8], edx
je 0x100a46bb
mov eax, dword [ebx]
mov ecx, dword [eax + 0x27c]
mov dword [esp + 0x10], eax
mov eax, 1
and ecx, 0x1f
shl eax, cl
cmp ecx, 0x1b
jae 0x100a46fa
or eax, 0x40000000
cmp eax, dword [esp + 8]
je 0x100a46bb
mov eax, 2
shl eax, cl
cmp eax, 0x8000000
jae 0x100a470d
or eax, 0x20000000
cmp eax, dword [esp + 8]
je 0x100a46bb
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x48], esi
mov edx, dword [edi + 0x7c]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x94]
mov dword [esp + 0x1c], edx
mov edx, 4
lea eax, [eax + eax*2]
mov dword [esp + 0x24], ebx
shl edx, cl
add edx, esi
mov esi, dword [esp + 0xc]
lea ecx, [edx + ebx*8]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
lea eax, [ecx + eax*4]
mov ecx, dword [edi + 0x88]
add eax, dword [edi + 0xa8]
add ecx, edx
add ecx, dword [edi + 0x38]
add eax, dword [edi + 0x68]
add ecx, dword [edi + 0x44]
add ecx, dword [edi + 0x54]
add ecx, dword [edi + 0x60]
add ecx, dword [edi + 0x9c]
lea eax, [eax + ecx*4 + 0x14]
cmp eax, dword [ebx + 0x280]
jbe 0x100a4312
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x30], 1
jne 0x100a4304
mov eax, dword [edi + 0x6c]
cmp eax, dword [ecx + 0x34]
jb 0x100a4304
cmp dword [ecx + 0x38], 1
jne 0x100a4776
mov eax, dword [ecx + 0x3c]
mov edx, dword [edi + 0x70]
cmp dword [edi + 0xb0], 0
je 0x100a42e6
mov ecx, dword [edi + 0xb8]
mov edi, dword [esp + 4]
mov edi, dword [edi + 0xb4]
mov esi, ecx
sub esi, edi
neg esi
sub ecx, edi
mov edi, dword [esp + 0xc]
cmovb ecx, esi
jmp 0x100a42ea
mov edi, esi
xor ecx, ecx
mov esi, dword [esp + 0x24]
add ecx, edx
mul esi
mov edx, 0xffffffff
mov esi, edi
cmovno edx, eax
cmp ecx, edx
jb 0x100a4776
mov ecx, esi
call fcn.100a4050
mov edi, dword [esp + 4]
mov edx, dword [edi + 0x7c]
cmp edx, 0x8000000
jb 0x100a439e
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x30], 1
jne 0x100a4384
mov eax, dword [edi + 0x6c]
cmp eax, dword [ecx + 0x34]
jb 0x100a4384
cmp dword [ecx + 0x38], 1
jne 0x100a4776
mov eax, dword [ecx + 0x3c]
mov edx, dword [edi + 0x70]
cmp dword [edi + 0xb0], 0
je 0x100a436a
mov ecx, dword [edi + 0xb8]
mov ebx, esi
mov esi, dword [edi + 0xb4]
mov edi, ecx
sub edi, esi
neg edi
sub ecx, esi
mov esi, ebx
cmovb ecx, edi
mov edi, dword [esp + 4]
jmp 0x100a436c
xor ecx, ecx
add ecx, edx
mul dword [edi + 0x94]
mov edx, 0xffffffff
cmovno edx, eax
cmp ecx, edx
jb 0x100a4776
mov ecx, esi
call fcn.100a4050
mov edi, dword [esp + 4]
mov edx, dword [edi + 0x7c]
cmp edx, 0x8000000
jae 0x100a47ac
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
je 0x100a46a5
movzx esi, byte [eax + 8]
lea eax, [edi + 0x74]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x27c]
mov eax, edi
mov edi, 1
mov eax, dword [eax + 0x78]
and ebx, 0x1f
mov ecx, ebx
sub eax, edx
shl edi, cl
cmp eax, edi
mov eax, edx
jae 0x100a43f3
mov ecx, dword [esp + 0xc]
push edi
call fcn.1009ae70
add esp, 4
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x7c]
mov ecx, dword [esp + 8]
and esi, 1
shl esi, 0x1b
and ecx, 0x10000000
or esi, ecx
mov ecx, dword [esp + 0xc]
cmp ebx, 3
mov ecx, dword [ecx]
jb 0x100a4449
movdqa xmm0, xmmword [0x10247dd0]
mov edx, edi
mov dword [esp + 0x18], esi
and edi, 6
lea esi, [ecx + eax*4 + 0x10]
and edx, 0xfffffff8
add eax, edx
mov ebx, edx
nop dword [eax]
movdqu xmmword [esi - 0x10], xmm0
movdqu xmmword [esi], xmm0
add esi, 0x20
add ebx, 0xfffffff8
jne 0x100a4430
mov esi, dword [esp + 0x18]
test edx, edx
jne 0x100a445f
mov edx, eax
nop dword [eax + eax]
lea eax, [edx + 1]
mov dword [ecx + edx*4], 0x80000000
dec edi
mov edx, eax
jne 0x100a4450
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
or esi, dword [esp + 0x1c]
mov dword [ecx + 0x7c], eax
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x264]
mov eax, dword [ebx + 0x258]
mov edx, dword [ebx + 0x260]
mov edi, dword [ebx + 0x25c]
or edx, dword [ebx + 0x270]
or eax, dword [ebx + 0x268]
or ecx, dword [ebx + 0x274]
or edi, dword [ebx + 0x26c]
or eax, edx
or edi, ecx
or edi, eax
je 0x100a460d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x27c]
and ecx, 0x1f
cmp ecx, 0x1b
jae 0x100a4745
mov edx, 2
shl edx, cl
cmp edx, 0x8000000
jae 0x100a475f
add eax, 0x258
or edx, 0x20000000
xor edi, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
cmp edi, 0x101
mov eax, 0x100
cmovae eax, edi
mov dword [esp + 0x24], eax
mov eax, edi
shl eax, 8
add eax, 0xffffff00
nop dword [eax + eax]
cmp dword [esp + 0x24], edi
je 0x100a460d
mov ecx, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 8], edi
mov eax, ecx
mov ecx, dword [esp + 8]
and al, 0x78
shr al, 3
neg al
movsx edi, al
mov ch, cl
mov esi, dword [esp + edi + 0x74]
mov eax, dword [esp + edi + 0x78]
and ch, 7
mov cl, ch
shld eax, esi, cl
shl esi, cl
not cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + edi + 0x70]
shr eax, 3
mov ebx, edx
and eax, 0x10
shr ebx, 1
shr ebx, cl
mov cl, ch
or ebx, esi
mov esi, dword [esp + edi + 0x6c]
mov edi, dword [esp + 0x1c]
shld edx, esi, cl
shl esi, cl
mov ecx, dword [esp + 0x50]
and ebx, dword [ecx + eax + 8]
and esi, dword [ecx + eax]
and edi, dword [ecx + eax + 0xc]
and edx, dword [ecx + eax + 4]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
or edx, edi
or esi, ebx
add eax, 0x100
lea edi, [ecx + 1]
or edx, esi
je 0x100a4510
cmp ecx, 0x100
jae 0x100a460d
and eax, 0xff00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x4c]
push eax
push dword [esp + 0x20]
call fcn.100a5c20
add esp, 0xc
jmp 0x100a44ec
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add dword [esi + 0x68], ecx
lock inc dword [eax]
jle 0x100a4741
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + 0x94]
cmp edx, dword [esi + 0x90]
jne 0x100a464c
lea ecx, [esi + 0x8c]
call fcn.1009a4d0
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x8c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov dword [eax + edx*8], edi
mov dword [eax + edx*8 + 4], ebx
inc edx
mov dword [esi + 0x94], edx
mov ecx, esi
mov edx, edi
push dword [esp + 0x18]
push ebx
call fcn.1009d150
add esp, 8
cmp dword [esi + 0x20], 1
jne 0x100a468f
mov ecx, dword [esi + 0x28]
lock dec dword [ecx]
jne 0x100a468f
mov edx, dword [esi + 0x2c]
call fcn.10099a70
mov eax, dword [esp + 0x18]
mov dword [esi + 0x20], 2
mov dword [esi + 0x24], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1024c3c4
push 0
push 0
call fcn.10026930
add esp, 0xc
jmp 0x100a47d7
mov dword [esp + 0x28], str.cannot_save_sentinel_state
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x102481a0
mov dword [esp + 0x34], 0
lea eax, [esp + 0x28]
push 0x10249870
push eax
call fcn.10026810
add esp, 8
jmp 0x100a47d7
mov ecx, 0x10249a58
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x100a4722
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x8000000
mov ecx, 0x10249a68
lea eax, [esp + 0x28]
push ecx
push 0x10248c14
push eax
push 0x2b
push 0x10248bd8
call fcn.10026bb0
add esp, 0x14
jmp 0x100a47d7
ud2
mov eax, 1
mov dword [esp + 0x2c], 0
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, 0x10249a58
jmp 0x100a47bd
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x8000000
mov eax, 0x10249a68
jmp 0x100a47bd
mov eax, dword [esp + 0x14]
lock dec dword [eax]
jne 0x100a478c
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
call fcn.10099a70
lea eax, [esp + 0x28]
push 0x1024983c
push 0x10248b68
push eax
push 0x2c
push str.adding_one_state_after_cache_clear_must_work0
call fcn.10026bb0
add esp, 0x14
ud2
mov eax, 0x10249800
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x28]
push eax
push 0x10248c14
push ecx
push 0x2b
push 0x10248bd8
call fcn.10026bb0
add esp, 0x14
ud2