Function at 0x4f8850
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 [0x5f3024]
xor eax, ebp
mov dword [esi + 0x68], eax
cmp dword [ebp + 8], 0
je 0x4f8b99
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 0x4f8b7b
mov ecx, dword [edi + 4]
call fcn.004ee740
test al, al
mov dword [esi + 0xc], edi
je 0x4f8a41
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.004ee750
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.004f8220
mov dword [edi + 0x50], 0
mov edi, dword [esi + 0xc]
mov dword [esi + 0x14], ebx
mov ecx, ebx
call fcn.004f7b80
mov esp, dword [esi + 0x24]
cmp dword [edi + 0x18], 0
je 0x4f8a61
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 0x4f8ad1
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.004f7cb0
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.004f7d00
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.004f1b70
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
imul ebx, dword [eax + 8], 0x70
cmp dword [ecx + ebx + 0x44], 0
jne 0x4f8b9c
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jne 0x4f8d5e
cmp dword [esi + 0x20], 0
mov edi, dword [esi + 0xc]
jne 0x4f8a36
cmp byte [edi + 0x30], 0
je 0x4f8a36
lea ecx, [edi + 0x168]
push 1
call fcn.004ff890
movzx ebx, byte [edi + 0x31]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x4f8a0d
mov ecx, dword [edi + 4]
call fcn.004ee790
test byte [0x5f55b4], 9
jne 0x4f8bd9
lea ecx, [ebp + 8]
call fcn.004f7c80
mov ecx, dword [esi + 0x68]
xor ecx, ebp
call fcn.0050db32
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 0x4f8a0d
mov dword [esi + 0x14], 0
cmp byte [edi + 0x176], 0
mov dword [esi + 0x10], 0
je 0x4f88c9
jmp 0x4f889c
push 0x14
call fcn.0050d4fe
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.0050d563
add esp, 4
mov ebx, eax
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3c8]
bt ecx, eax
jb 0x4f8b6d
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6043c8], 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 0x4f8ceb
mov dword [ebx + 0x1c], edi
jmp 0x4f8954
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x40]
mov dword [ecx], eax
push ecx
call fcn.004c5b20
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.0050d4fe
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.0050d563
add esp, 4
mov edx, eax
shr edx, 0xe
mov ecx, eax
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3c8]
bt ecx, edx
jb 0x4f8b88
mov ecx, eax
shr ecx, 0x15
mov byte [ecx + 0x6043c8], 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 0x4f8d05
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 0x4f896c
push ebx
call fcn.004d0fc0
add esp, 4
jmp 0x4f8aae
mov ecx, dword [esi + 0x18]
call fcn.004dfa10
jmp 0x4f8889
push eax
mov dword [esi + 0x10], eax
call fcn.004d0fc0
mov eax, dword [esi + 0x10]
add esp, 4
jmp 0x4f8b3b
int3
test byte [0x5f5524], 9
je 0x4f89ca
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.0057ac80
test al, al
je 0x4f8bd1
test byte [0x5f5524], 0x19
jne 0x4f8d2a
mov edi, dword [esi + 0xc]
jmp 0x4f89ca
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov edi, dword [eax + 4]
call fcn.004dfa60
cmp edi, eax
jne 0x4f8a1a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f8d1d
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 [0x5f55b4], 0x19
je 0x4f8a1a
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.0057ad80
add esp, 4
mov dword [esi + 0xc], eax
lea eax, [esi + 0x38]
push eax
call fcn.004e02a0
add esp, 4
call fcn.004dfa60
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x40]
movdqa xmmword [ebx], xmm0
movdqa xmmword [ebx + 0x10], xmm0
mov word [ebx], 0x301
mov dword [ebx + 4], 0x5d637b
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], 0x5f55b4
mov dword [esp], 0x43
call fcn.004e1250
add esp, 0x30
mov ecx, ebx
call fcn.004ca9f0
jmp 0x4f8a1a
mov edi, eax
mov ecx, eax
call fcn.0047c410
push edi
call fcn.0050d52e
add esp, 4
mov edi, dword [ebx + 0x18]
jmp 0x4f8ac9
mov edi, ecx
call fcn.0047c410
push edi
call fcn.0050d52e
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x4f8b59
mov ecx, dword [esi + 0x18]
call fcn.004dfa10
jmp 0x4f8c00
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.0057b040
add esp, 8
jmp 0x4f8bd1
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 0x4f8db6
xor eax, eax
inc eax
mov dword [esi + 0x10], ecx
lock xadd dword [ecx], eax
test eax, eax
jle 0x4f8dce
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 0x4f8dd1
add edi, 8
cmp edi, ebx
mov ecx, edi
je 0x4f89d8
jmp 0x4f8d5e
mov ecx, dword [4]
call dword [section..00cfg]
push dword [esi + 0x14]
push 0
call ecx
add esp, 8
jmp 0x4f8da7
int3
push dword [esi + 0x10]
call fcn.004575b0
add esp, 4
jmp 0x4f8da7