Function at 0x4d4850
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, 0x68
mov eax, dword [ecx + 4]
mov ebx, ecx
mov dword [eax + 0x7c], 0
mov dword [eax + 0x88], 0
mov dword [esp + 8], eax
mov edi, dword [eax + 0x94]
mov esi, dword [eax + 0x90]
mov dword [eax + 0x94], 0
test edi, edi
jne 0x4d48c6
mov edi, dword [esp + 8]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4d4974
mov dword [esp + 0xc], ebx
mov ebx, dword [edi]
movdqa xmm0, xmmword [ebx]
lea esi, [ebx + 0x10]
pmovmskb edi, xmm0
not edi
jmp 0x4d48ea
add esi, 8
dec edi
je 0x4d4890
mov eax, dword [esi]
lock dec dword [eax]
jne 0x4d48c0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.004731d0
jmp 0x4d48c0
lea eax, [edi - 1]
and eax, edi
dec edx
mov edi, eax
je 0x4d4935
test di, di
jne 0x4d490b
nop
movdqa xmm0, xmmword [esi]
add ebx, 0xffffff40
add esi, 0x10
pmovmskb edi, xmm0
cmp edi, 0xffff
je 0x4d48f0
not edi
tzcnt eax, edi
neg eax
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*4 - 0xc]
lock dec dword [ecx]
jne 0x4d48e0
lea eax, [ebx + eax*4]
mov dword [esp + 0x10], edx
mov ecx, dword [eax - 0xc]
mov edx, dword [eax - 8]
call fcn.004731d0
mov edx, dword [esp + 0x10]
jmp 0x4d48e0
mov edi, dword [esp + 8]
mov esi, dword [edi + 4]
test esi, esi
je 0x4d4953
lea eax, [esi + 0x11]
push eax
push 0xff
push dword [edi]
call fcn.007bdf30
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 0x4d499a
mov eax, dword [edi + 0xb8]
mov dword [edi + 0xb4], eax
mov ecx, ebx
call fcn.004d3770
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
mov edx, dword [edi + 0x24]
mov dword [edi + 0x20], 0
cmp eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
jne 0x4d4dd9
cmp edx, 0x80000000
je 0x4d4e0f
mov eax, dword [ebx]
mov ecx, dword [eax + 0x284]
mov dword [esp + 4], eax
mov eax, 1
and ecx, 0x1f
shl eax, cl
cmp ecx, 0x1b
jae 0x4d4eb0
or eax, 0x40000000
cmp eax, edx
je 0x4d4e0f
mov eax, 2
shl eax, cl
cmp eax, 0x8000000
jae 0x4d4e45
or eax, 0x20000000
cmp eax, edx
je 0x4d4e0f
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0x94]
mov esi, dword [esp + 0x1c]
lea eax, [eax + eax*2]
lea esi, [esi + edx*8]
lea eax, [esi + eax*4]
mov esi, dword [edi + 0x88]
add eax, dword [edi + 0xa4]
add esi, dword [edi + 0x7c]
add eax, dword [edi + 0x68]
add esi, dword [edi + 0x38]
add esi, dword [edi + 0x44]
add esi, dword [edi + 0x54]
add esi, dword [edi + 0x60]
add esi, dword [edi + 0x98]
lea eax, [eax + esi*4]
mov esi, 4
shl esi, cl
lea eax, [esi + eax + 0x14]
mov esi, dword [esp + 4]
cmp eax, dword [esi + 0x288]
jbe 0x4d4af1
mov eax, dword [esp + 4]
cmp dword [eax + 0x48], 1
jne 0x4d4aea
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 4]
cmp eax, dword [ecx + 0x4c]
jb 0x4d4aea
mov eax, dword [esp + 4]
cmp dword [eax + 0x50], 1
jne 0x4d4e73
mov eax, dword [esp + 4]
mov esi, dword [edi + 0x70]
cmp dword [edi + 0xb0], 0
mov eax, dword [eax + 0x54]
je 0x4d4ad4
mov ecx, dword [edi + 0xb8]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], ebx
mov edi, dword [edi + 0xb4]
mov ebx, ecx
sub ebx, edi
neg ebx
sub ecx, edi
mov edi, dword [esp + 8]
cmovb ecx, ebx
mov ebx, dword [esp + 0xc]
jmp 0x4d4ad6
xor ecx, ecx
add ecx, esi
mul edx
mov edx, 0xffffffff
cmovno edx, eax
cmp ecx, edx
jb 0x4d4e73
mov ecx, ebx
call fcn.004d4850
mov ecx, ebx
call fcn.004d4ee0
test eax, eax
jne 0x4d4e73
cmp dword [esp + 0x1c], 0
je 0x4d4e01
mov eax, dword [esp + 0x18]
mov esi, edx
mov edx, edi
and dword [esp + 0x10], 0x10000000
mov edi, 1
movzx eax, byte [eax + 8]
and eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ebx, dword [eax + 0x284]
mov eax, dword [edx + 0x74]
mov edx, dword [edx + 0x7c]
and ebx, 0x1f
sub eax, edx
mov ecx, ebx
shl edi, cl
cmp eax, edi
jb 0x4d4de1
mov eax, dword [esp + 8]
or esi, dword [esp + 0x10]
shl dword [esp + 0xc], 0x1b
cmp ebx, 3
mov eax, dword [eax + 0x78]
jb 0x4d4b99
movdqa xmm0, xmmword [0x7d4550]
mov ecx, edi
mov dword [esp + 0x14], esi
and edi, 6
lea esi, [eax + edx*4 + 0x10]
and ecx, 0xfffffff8
add edx, ecx
mov ebx, ecx
nop dword [eax]
movdqu xmmword [esi - 0x10], xmm0
movdqu xmmword [esi], xmm0
add esi, 0x20
add ebx, 0xfffffff8
jne 0x4d4b80
mov esi, dword [esp + 0x14]
test ecx, ecx
jne 0x4d4baf
mov ecx, edx
nop dword [eax + eax]
lea edx, [ecx + 1]
mov dword [eax + ecx*4], 0x80000000
dec edi
mov ecx, edx
jne 0x4d4ba0
mov eax, dword [esp + 8]
mov ebx, dword [esp + 4]
or esi, dword [esp + 0xc]
mov dword [eax + 0x7c], edx
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x26c]
mov eax, dword [ebx + 0x260]
mov edx, dword [ebx + 0x268]
mov edi, dword [ebx + 0x264]
or edx, dword [ebx + 0x278]
or eax, dword [ebx + 0x270]
or ecx, dword [ebx + 0x27c]
or edi, dword [ebx + 0x274]
or eax, edx
or edi, ecx
or edi, eax
je 0x4d4d4e
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x284]
and ecx, 0x1f
cmp ecx, 0x1b
jae 0x4d4ea9
mov edx, 2
shl edx, cl
cmp edx, 0x8000000
jae 0x4d4e45
mov eax, dword [esp + 4]
or edx, 0x20000000
xor edi, edi
mov dword [esp + 0x38], edx
add eax, 0x260
mov dword [esp + 0x3c], eax
cmp edi, 0x101
mov eax, pe_nt_image_headers32
cmovae eax, edi
mov dword [esp + 0x40], eax
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esp + 0x40], edi
je 0x4d4d4e
mov eax, edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], edi
mov ecx, eax
mov eax, dword [esp + 0x10]
and al, 7
and cl, 0x78
shr cl, 3
neg cl
movsx ebx, cl
mov ecx, eax
mov edi, dword [esp + ebx + 0x5c]
mov edx, dword [esp + ebx + 0x60]
shld edx, edi, cl
shl edi, cl
not cl
mov dword [esp + 0xc], edx
mov edx, dword [esp + ebx + 0x58]
mov ebx, dword [esp + ebx + 0x54]
mov esi, edx
shr esi, 1
shr esi, cl
mov ecx, eax
mov eax, dword [esp + 0x3c]
or esi, edi
mov edi, dword [esp + 0x10]
shld edx, ebx, cl
shl ebx, cl
mov ecx, dword [esp + 0xc]
shr edi, 3
and edi, 0x10
and esi, dword [eax + edi + 8]
and ebx, dword [eax + edi]
and ecx, dword [eax + edi + 0xc]
and edx, dword [eax + edi + 4]
mov eax, dword [esp + 0x10]
or ebx, esi
or edx, ecx
lea edi, [eax + 1]
or edx, ebx
je 0x4d4c60
cmp eax, 0xff
ja 0x4d4d4e
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
shl eax, 8
movzx eax, ax
push dword [esp + 0x38]
push eax
push dword [esp + 0x1c]
call fcn.004d4fb0
add esp, 0xc
jmp 0x4d4c40
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add dword [esi + 0x68], eax
lock inc dword [ecx]
jle 0x4d4ea7
mov edx, dword [esi + 0x94]
cmp edx, dword [esi + 0x8c]
jne 0x4d4d85
lea ecx, [esi + 0x8c]
call fcn.004c7a80
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov dword [eax + edx*8], ebx
mov dword [eax + edx*8 + 4], edi
inc edx
mov dword [esi + 0x94], edx
mov edx, ebx
push dword [esp + 0x14]
push edi
call fcn.004d50a0
add esp, 8
cmp dword [esi + 0x20], 1
jne 0x4d4dcb
mov eax, dword [esi + 0x28]
lock dec dword [eax]
jne 0x4d4dcb
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
call fcn.004731d0
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], 2
mov dword [esi + 0x24], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
lea ecx, [esi + 0x74]
push edi
call fcn.007c7a80
add esp, 4
mov edx, dword [esi + 0x7c]
mov esi, dword [esp + 0x14]
jmp 0x4d4b4c
xor ecx, ecx
xor edx, edx
push 0x851750
call fcn.007c1be0
lea ecx, [esp + 0x20]
mov edx, 0x84ed04
mov dword [esp + 0x20], 0x84ecfc
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0x93d1f8
mov dword [esp + 0x2c], 0
call fcn.007c1b50
lea eax, [esp + 0x20]
mov ecx, 0x93b384
mov edx, 0x2b
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x8000000
push 0x84eefc
push 0x84df38
push eax
call fcn.007c1f60
mov eax, dword [esp + 0x18]
lock dec dword [eax]
jne 0x4d4e89
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.004731d0
lea eax, [esp + 0x20]
mov ecx, str.adding_one_state_after_cache_clear_must_work0
mov edx, 0x2c
push 0x84ecd0
push 0x84deb8
push eax
call fcn.007c1f60
ud2
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov ecx, 0x93b384
mov edx, 0x2b
mov dword [esp + 0x24], 0
push 0x84eeec
push 0x84df38
push eax
call fcn.007c1f60
int3