Function at 0x4d8000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, esp
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esi + 0x68], eax
cmp dword [ebp + 8], 0
je 0x4d8349
mov edi, ecx
lea eax, [ecx + 0x10]
mov dword [esi + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4d832b
mov ecx, dword [edi + 4]
call fcn.004d06f0
test al, al
mov dword [esi + 0xc], edi
je 0x4d81f1
mov eax, dword [edi + 4]
mov edi, dword [eax + 0x2b0]
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [esi + 0x40]
mov ecx, edi
mov edi, dword [esi + 0xc]
push eax
call ebx
mov eax, dword [esi + 0x40]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov ecx, dword [edi + 4]
lea eax, [esi + 0x28]
push eax
call fcn.004d0700
mov dword [esi + 0x1c], esp
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
sub esp, 0x70
mov ebx, esp
mov dword [esi + 0x24], esp
sub esp, 0x5c
mov edi, esp
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x44], ecx
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
mov ecx, edi
lea eax, [ebp + 8]
push eax
call fcn.004d79d0
mov dword [edi + 0x50], 0
mov edi, dword [esi + 0xc]
mov dword [esi + 0x14], ebx
mov ecx, ebx
call fcn.004d7330
mov esp, dword [esi + 0x24]
cmp dword [edi + 0x18], 0
je 0x4d8211
mov edi, dword [edi + 0x1c]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
inc eax
xor ebx, ebx
cmp eax, ecx
mov edx, eax
cmove edx, ebx
cmp dword [edi + 4], edx
je 0x4d8281
cmp eax, ecx
cmovne ebx, eax
mov dword [edi + 8], ebx
imul ecx, ebx, 0x70
add ecx, dword [edi + 0xc]
mov ebx, dword [esi + 0x14]
push ebx
call fcn.004d7460
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
inc eax
mov dword [edi + 0x20], eax
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0x24], eax
mov ecx, ebx
call fcn.004d74b0
mov esp, dword [esi + 0x1c]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x1c]
imul edx, dword [eax + 8], 0x70
add edx, dword [eax + 0xc]
push edx
call fcn.004d3b20
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
imul ebx, dword [eax + 8], 0x70
cmp dword [ecx + ebx + 0x44], 0
jne 0x4d834c
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jne 0x4d850e
cmp dword [esi + 0x20], 0
mov edi, dword [esi + 0xc]
jne 0x4d81e6
cmp byte [edi + 0x30], 0
je 0x4d81e6
lea ecx, [edi + 0x168]
push 1
call fcn.004df040
movzx ebx, byte [edi + 0x31]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x4d81bd
mov ecx, dword [edi + 4]
call fcn.004d0740
test byte [0x59f6fc], 9
jne 0x4d8389
lea ecx, [ebp + 8]
call fcn.004d7430
mov ecx, dword [esi + 0x68]
xor ecx, ebp
call fcn.004ed092
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x3c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4d81bd
mov dword [esi + 0x14], 0
cmp byte [edi + 0x176], 0
mov dword [esi + 0x10], 0
je 0x4d8079
jmp 0x4d804c
push 0x14
call fcn.004eca5e
add esp, 4
mov edi, eax
mov dword [eax], 4
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push 0x1c0
call fcn.004ecac3
add esp, 4
mov ebx, eax
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5a5e98]
bt ecx, eax
jb 0x4d831d
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x5ade98], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], edi
test eax, eax
jne 0x4d849b
mov dword [ebx + 0x1c], edi
jmp 0x4d8104
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x40]
mov dword [ecx], eax
push ecx
call fcn.004ab010
add esp, 4
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 1
add eax, ecx
add eax, 2
mov dword [esi + 0x10], eax
push 0x14
call fcn.004eca5e
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
imul eax, eax, 0x70
push eax
call fcn.004ecac3
add esp, 4
mov edx, eax
shr edx, 0xe
mov ecx, eax
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5a5e98]
bt ecx, edx
jb 0x4d8338
mov ecx, eax
shr ecx, 0x15
mov byte [ecx + 0x5ade98], 1
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x10], edi
test ecx, ecx
jne 0x4d84b5
mov eax, dword [edx + 0x1c]
mov edi, dword [eax + 0x10]
mov dword [edx + 0x1c], edi
mov ecx, dword [edi]
mov eax, dword [edi + 8]
inc eax
jmp 0x4d811c
push ebx
call fcn.004b5630
add esp, 4
jmp 0x4d825e
mov ecx, dword [esi + 0x18]
call fcn.004c2ef0
jmp 0x4d8039
push eax
mov dword [esi + 0x10], eax
call fcn.004b5630
mov eax, dword [esi + 0x10]
add esp, 4
jmp 0x4d82eb
int3
test byte [0x59f66c], 9
je 0x4d817a
mov dword [esi + 0x14], ecx
xor eax, eax
lea edx, [esi + 0x30]
mov dword [edx + 4], eax
mov dword [edx], eax
mov ecx, edi
mov edi, edx
push edx
call fcn.00550930
test al, al
je 0x4d8381
test byte [0x59f66c], 0x19
jne 0x4d84da
mov edi, dword [esi + 0xc]
jmp 0x4d817a
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov edi, dword [eax + 4]
call fcn.004c31d0
cmp edi, eax
jne 0x4d81ca
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4d84cd
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x78]
mov ecx, dword [edx + 0x7c]
mov ecx, dword [ecx + 8]
mov dword [esi + 0x20], ecx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov ebx, dword [edx + 0x88]
mov edi, dword [edx + 0x84]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test byte [0x59f6fc], 0x19
je 0x4d81ca
sub ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [esi + 0x14]
add edi, dword [esi + 0x10]
sar ebx, 4
imul eax, ebx, 0xb6db6db7
add edi, eax
mov eax, dword [esi + 0xc]
push dword [eax]
call fcn.00550a30
add esp, 4
mov dword [esi + 0xc], eax
lea eax, [esi + 0x38]
push eax
call fcn.004c39a0
add esp, 4
call fcn.004c31d0
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x40]
movdqa xmmword [ebx], xmm0
movdqa xmmword [ebx + 0x10], xmm0
mov word [ebx], 0x301
mov dword [ebx + 4], str.value
mov ecx, edi
sar ecx, 0x1f
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], edi
sub esp, 0x30
lea ecx, [esi + 0x38]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x59f6fc
mov dword [esp], 0x43
call fcn.004c4950
add esp, 0x30
mov ecx, ebx
call fcn.004af270
jmp 0x4d81ca
mov edi, eax
mov ecx, eax
call fcn.00486a20
push edi
call fcn.004eca8e
add esp, 4
mov edi, dword [ebx + 0x18]
jmp 0x4d8279
mov edi, ecx
call fcn.00486a20
push edi
call fcn.004eca8e
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x4d8309
mov ecx, dword [esi + 0x18]
call fcn.004c2ef0
jmp 0x4d83b0
mov eax, dword [esi + 0x14]
add eax, ebx
lea edx, [esi + 0x38]
mov dword [edx], edi
mov dword [edx + 4], eax
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
sub esp, 8
movq xmm0, qword [esi + 0x40]
movq qword [esp], xmm0
mov ecx, str.task_posted_to_disabled_queue
call fcn.00550cf0
add esp, 8
jmp 0x4d8381
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x1c]
imul edx, dword [eax + 8], 0x70
add edx, dword [eax + 0xc]
mov dword [esi + 0x14], edx
mov edi, ecx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4d8566
xor eax, eax
inc eax
mov dword [esi + 0x10], ecx
lock xadd dword [ecx], eax
test eax, eax
jle 0x4d857e
mov eax, dword [edi + 4]
mov dword [esi + 0x1c], eax
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push dword [esi + 0x14]
push dword [esi + 0x1c]
call ecx
add esp, 8
mov eax, dword [esi + 0x10]
lock dec dword [eax]
je 0x4d8581
add edi, 8
cmp edi, ebx
mov ecx, edi
je 0x4d8188
jmp 0x4d850e
mov ecx, dword [4]
call dword [section..00cfg]
push dword [esi + 0x14]
push 0
call ecx
add esp, 8
jmp 0x4d8557
int3
push dword [esi + 0x10]
call fcn.0046eba0
add esp, 4
jmp 0x4d8557