Function at 0x4f8930
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 0x4f8c79
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 0x4f8c5b
mov ecx, dword [edi + 4]
call fcn.004ee820
test al, al
mov dword [esi + 0xc], edi
je 0x4f8b21
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.004ee830
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.004f8300
mov dword [edi + 0x50], 0
mov edi, dword [esi + 0xc]
mov dword [esi + 0x14], ebx
mov ecx, ebx
call fcn.004f7c60
mov esp, dword [esi + 0x24]
cmp dword [edi + 0x18], 0
je 0x4f8b41
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 0x4f8bb1
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.004f7d90
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.004f7de0
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.004f1c50
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
imul ebx, dword [eax + 8], 0x70
cmp dword [ecx + ebx + 0x44], 0
jne 0x4f8c7c
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jne 0x4f8e3e
cmp dword [esi + 0x20], 0
mov edi, dword [esi + 0xc]
jne 0x4f8b16
cmp byte [edi + 0x30], 0
je 0x4f8b16
lea ecx, [edi + 0x168]
push 1
call fcn.004ff970
movzx ebx, byte [edi + 0x31]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x4f8aed
mov ecx, dword [edi + 4]
call fcn.004ee870
test byte [0x5f55b4], 9
jne 0x4f8cb9
lea ecx, [ebp + 8]
call fcn.004f7d60
mov ecx, dword [esi + 0x68]
xor ecx, ebp
call fcn.0050dc12
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 0x4f8aed
mov dword [esi + 0x14], 0
cmp byte [edi + 0x176], 0
mov dword [esi + 0x10], 0
je 0x4f89a9
jmp 0x4f897c
push 0x14
call fcn.0050d5de
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.0050d643
add esp, 4
mov ebx, eax
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3d8]
bt ecx, eax
jb 0x4f8c4d
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6043d8], 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 0x4f8dcb
mov dword [ebx + 0x1c], edi
jmp 0x4f8a34
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x40]
mov dword [ecx], eax
push ecx
call fcn.004c5c00
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.0050d5de
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.0050d643
add esp, 4
mov edx, eax
shr edx, 0xe
mov ecx, eax
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3d8]
bt ecx, edx
jb 0x4f8c68
mov ecx, eax
shr ecx, 0x15
mov byte [ecx + 0x6043d8], 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 0x4f8de5
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 0x4f8a4c
push ebx
call fcn.004d10a0
add esp, 4
jmp 0x4f8b8e
mov ecx, dword [esi + 0x18]
call fcn.004dfaf0
jmp 0x4f8969
push eax
mov dword [esi + 0x10], eax
call fcn.004d10a0
mov eax, dword [esi + 0x10]
add esp, 4
jmp 0x4f8c1b
int3
test byte [0x5f5524], 9
je 0x4f8aaa
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.0057ad60
test al, al
je 0x4f8cb1
test byte [0x5f5524], 0x19
jne 0x4f8e0a
mov edi, dword [esi + 0xc]
jmp 0x4f8aaa
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov edi, dword [eax + 4]
call fcn.004dfb40
cmp edi, eax
jne 0x4f8afa
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f8dfd
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 0x4f8afa
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.0057ae60
add esp, 4
mov dword [esi + 0xc], eax
lea eax, [esi + 0x38]
push eax
call fcn.004e0380
add esp, 4
call fcn.004dfb40
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x40]
movdqa xmmword [ebx], xmm0
movdqa xmmword [ebx + 0x10], xmm0
mov word [ebx], 0x301
mov dword [ebx + 4], 0x5d63bb
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.004e1330
add esp, 0x30
mov ecx, ebx
call fcn.004caad0
jmp 0x4f8afa
mov edi, eax
mov ecx, eax
call fcn.0047c590
push edi
call fcn.0050d60e
add esp, 4
mov edi, dword [ebx + 0x18]
jmp 0x4f8ba9
mov edi, ecx
call fcn.0047c590
push edi
call fcn.0050d60e
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x4f8c39
mov ecx, dword [esi + 0x18]
call fcn.004dfaf0
jmp 0x4f8ce0
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.0057b120
add esp, 8
jmp 0x4f8cb1
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 0x4f8e96
xor eax, eax
inc eax
mov dword [esi + 0x10], ecx
lock xadd dword [ecx], eax
test eax, eax
jle 0x4f8eae
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 0x4f8eb1
add edi, 8
cmp edi, ebx
mov ecx, edi
je 0x4f8ab8
jmp 0x4f8e3e
mov ecx, dword [4]
call dword [section..00cfg]
push dword [esi + 0x14]
push 0
call ecx
add esp, 8
jmp 0x4f8e87
int3
push dword [esi + 0x10]
call fcn.00457690
add esp, 4
jmp 0x4f8e87