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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov edi, ecx
lea ecx, [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esi + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
mov dword [esi + 0x80], 0xffffffff
mov byte [esi + 0x70], 0
mov eax, dword [ecx]
xor ebx, ebx
dec ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], eax
test eax, eax
jne 0x4f5552
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
movdqu xmmword [esi + 0x38], xmm0
movdqu xmmword [esi + 0x28], xmm0
mov ebx, dword [edi + 0x20]
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
jb 0x4f56e4
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov dword [esi + 0x28], ebx
pxor xmm0, xmm0
movdqu xmmword [esi + 0x2c], xmm0
movdqu xmmword [esi + 0x3c], xmm0
xor eax, eax
mov byte [esi + 0x4c], al
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x50], xmm0
mov dword [esi + 0x60], 0xffffffff
mov byte [esi + 0x50], al
mov dword [esi + 0x64], 0
mov ebx, dword [edi + 0x20]
add ebx, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f560a
cmp byte [edi + 0x2a], 0
jne 0x4f56f2
cmp byte [edi + 0x10], 0
je 0x4f5737
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0xa0]
dec ecx
cmp byte [edi + 0x11], 0
mov dword [eax + 0xa0], ecx
je 0x4f53b9
mov edx, dword [eax + 0x20]
cmp edx, dword [eax + 0x24]
je 0x4f52ce
cmp ecx, dword [eax + 0x98]
jae 0x4f5773
mov word [eax + 0x3c], 0
xor eax, eax
mov byte [edi + 0x14], al
mov byte [edi + 0x10], al
cmp dword [esi + 8], 0
jne 0x4f54f4
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea ecx, [esi + 0x50]
call fcn.004f59f0
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4f53c4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x4f5641
cmp byte [esi + 0x4c], 0
jne 0x4f5739
mov ebx, dword [esi + 0x40]
test ebx, ebx
jne 0x4f55ce
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x4f56c5
mov ebx, dword [esi + 0x30]
test ebx, ebx
jne 0x4f55ec
mov edi, dword [esi + 0x2c]
test edi, edi
jne 0x4f5407
mov eax, dword [esi + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6c24fc]
bt edx, ecx
jb 0x4f5746
mov dword [esi + 0x28], 0
mov ebx, dword [esi + 0x1c]
test ebx, ebx
jne 0x4f5616
cmp byte [esi + 0x70], 0
jne 0x4f5532
lea eax, [ebp + 8]
mov edi, dword [eax]
test edi, edi
jne 0x4f5426
mov dword [eax], 0
test edi, edi
jne 0x4f54d5
lea eax, [ebp + 8]
mov edi, dword [eax]
test edi, edi
jne 0x4f5754
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.00512ee3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
dec dword [eax + 0xa4]
jmp 0x4f52ba
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
cmp ebx, edi
je 0x4f5300
mov eax, dword [ebx]
test eax, eax
je 0x4f57ba
lock inc dword [eax + 4]
push dword [eax + 0x20]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
lock dec dword [eax + 4]
je 0x4f57cb
add ebx, 4
jmp 0x4f53d3
lock dec dword [edi + 4]
jne 0x4f5341
mov ecx, edi
call fcn.004045b0
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4f5341
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4f5387
mov dword [eax], 0
mov al, byte [edi + 0x12]
and al, 0x7f
cmp al, 2
je 0x4f57ae
lock dec dword [ebx + 0x1c]
jne 0x4f54d5
lea eax, [ebx + 0x24]
mov dword [esi + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f57e2
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f57ef
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x18], eax
pxor xmm0, xmm0
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xc], eax
movdqu xmmword [ebx + 0x2c], xmm0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
cmp ebx, eax
jne 0x4f57fc
push 0
push dword [esi + 0x10]
push 0x5e3220
call fcn.004ee300
add esp, 0xc
jmp 0x4f538d
lock dec dword [edi + 4]
jne 0x4f5395
mov ecx, edi
call fcn.00405b10
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4f5395
mov dword [esi + 8], esp
mov ecx, dword [edi + 0x20]
sub esp, 0x14
mov edx, esp
mov edi, dword [esi + 0xc]
mov dword [edx + 8], edi
mov edi, dword [esi + 0x10]
mov dword [edx + 0xc], edi
mov edi, dword [esi + 0x14]
mov dword [edx + 0x10], edi
lea edi, [esi + 0x1c]
mov dword [edx], edi
lea edi, [esi + 0x50]
mov dword [edx + 4], edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
call fcn.00405e50
mov esp, dword [esi + 8]
jmp 0x4f52e6
lea edi, [esi + 0x74]
mov eax, dword [edi + 8]
test eax, eax
je 0x4f5546
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
call fcn.004f8ee0
jmp 0x4f537a
mov dword [esi + 0x10], esp
push eax
sub esp, 8
mov eax, esp
lea edx, [ebp + 8]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [edx], ecx
mov ecx, dword [edx + 4]
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], ecx
lea ecx, [esi + 0x1c]
mov dword [eax], ecx
call fcn.00405d80
add esp, 0xc
mov esp, dword [esi + 0x10]
lea ecx, [esi + 0x1c]
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [esi + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x78], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x7c], ecx
mov byte [esi + 0x70], 1
lea ecx, [esi + 0x1c]
call fcn.004f8ee0
pcmpeqd xmm0, xmm0
jmp 0x4f5203
mov edi, dword [esi + 0x44]
mov eax, ebx
cmp edi, ebx
jne 0x4f5983
mov dword [esi + 0x44], ebx
push eax
call fcn.0050fc7c
add esp, 4
jmp 0x4f5320
mov edi, dword [esi + 0x34]
mov eax, ebx
cmp edi, ebx
jne 0x4f59b6
mov dword [esi + 0x34], ebx
push eax
call fcn.0050fc7c
add esp, 4
jmp 0x4f5336
mov ecx, ebx
call fcn.004f8930
jmp 0x4f528c
mov edi, dword [esi + 0x20]
mov eax, ebx
cmp edi, ebx
je 0x4f5630
add edi, 0xfffffff8
mov ecx, edi
call fcn.004f8ee0
cmp edi, ebx
jne 0x4f561f
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], ebx
push eax
call fcn.0050fc7c
add esp, 4
jmp 0x4f5370
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x60]
mov edx, dword [edx + 0x64]
test eax, eax
je 0x4f5652
lock inc dword [eax + 4]
push edx
push eax
call fcn.00407510
mov ecx, dword [esi + 0x28]
cmp byte [ecx + 0xd0], 0
jne 0x4f591a
mov ebx, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
cmp ebx, edi
je 0x4f530b
mov eax, dword [ebx]
test eax, eax
je 0x4f5681
lock inc dword [eax + 4]
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x60]
mov edx, dword [ecx + 0x64]
test eax, eax
je 0x4f5695
lock inc dword [eax + 4]
mov ecx, dword [esi + 8]
push edx
push eax
call fcn.00407510
mov ecx, dword [esi + 0x28]
cmp byte [ecx + 0xd0], 0
jne 0x4f592a
mov eax, dword [esi + 8]
test eax, eax
je 0x4f56c0
lock dec dword [eax + 4]
je 0x4f593a
add ebx, 4
jmp 0x4f566f
lock dec dword [edi + 4]
jne 0x4f532b
mov ecx, edi
call fcn.004045b0
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4f532b
push ebx
call fcn.004e3a80
add esp, 4
jmp 0x4f5247
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x98]
dec edx
mov dword [eax + 0x98], edx
cmp ecx, dword [eax + 0x24]
je 0x4f5716
cmp dword [eax + 0xa0], edx
jae 0x4f5951
mov word [eax + 0x3c], 0
cmp byte [edi + 0x10], 0
je 0x4f5737
cmp byte [edi + 0x11], 0
je 0x4f5780
mov word [edi + 0x28], 0
mov byte [edi + 0x2a], 0
jmp 0x4f5296
ud2
mov ecx, dword [esi + 0x28]
call fcn.00596de0
jmp 0x4f5315
push eax
call fcn.004e3ba0
add esp, 4
jmp 0x4f535e
lock dec dword [edi + 4]
jne 0x4f53a2
mov ecx, edi
call fcn.00405b10
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4f53a2
movzx ecx, word [edx + 8]
mov word [eax + 0x3c], cx
jmp 0x4f52d4
mov eax, dword [edi + 0x20]
dec dword [eax + 0x9c]
mov ecx, dword [eax + 0x20]
cmp ecx, dword [eax + 0x24]
je 0x4f57a3
mov edx, dword [eax + 0xa0]
cmp edx, dword [eax + 0x98]
jae 0x4f5976
mov word [eax + 0x3c], 0
jmp 0x4f5728
mov ecx, ebx
call fcn.00596f70
jmp 0x4f5444
push dword [0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4f5402
mov ecx, eax
call fcn.004045b0
push dword [esi + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x4f5402
mov ecx, dword [esi + 8]
call fcn.004f8930
jmp 0x4f5463
mov ecx, dword [esi + 8]
call fcn.004f8930
jmp 0x4f5486
cmp dword [esi + 0x18], ebx
jb 0x4f595e
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + ebx*4]
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], ecx
mov dword [eax + ebx*4], 0
mov ecx, dword [ecx + 4]
call dword [section..00cfg]
push dword [esi + 8]
call ecx
add esp, 4
lea ecx, [esi + 0x1c]
call fcn.0050e9f0
inc ebx
cmp ebx, dword [esi + 0x18]
mov eax, 0
cmove ebx, eax
cmp ebx, dword [esi + 0xc]
jne 0x4f57fc
mov eax, dword [esi + 0x14]
cmp dword [esi + 0xc], eax
jbe 0x4f589c
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0xc]
jb 0x4f5961
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
jb 0x4f5964
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jg 0x4f5967
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea ebx, [eax + ecx*4]
mov eax, dword [esi + 0xc]
shl eax, 2
shl ecx, 2
sub eax, ecx
mov dword [esi + 0xc], eax
mov ecx, ebx
call fcn.0050e9f0
mov eax, dword [esi + 0xc]
add ebx, 4
add eax, 0xfffffffc
jne 0x4f5882
jmp 0x4f54be
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
jb 0x4f596a
jl 0x4f596d
je 0x4f58db
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea ebx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
lea eax, [eax*4]
shl ecx, 2
sub eax, ecx
mov dword [esi + 8], eax
mov ecx, ebx
call fcn.0050e9f0
add ebx, 4
add dword [esi + 8], 0xfffffffc
jne 0x4f58cb
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0xc]
jb 0x4f5970
cmp dword [esi + 0xc], 0
js 0x4f5973
mov eax, dword [esi + 0xc]
je 0x4f54be
shl eax, 2
mov ebx, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov ecx, ebx
call fcn.0050e9f0
mov eax, dword [esi + 0xc]
add ebx, 4
add eax, 0xfffffffc
jne 0x4f5900
jmp 0x4f54be
add ecx, 0xd4
call fcn.004fd7d0
jmp 0x4f5669
add ecx, 0xd4
call fcn.004fd7d0
jmp 0x4f56af
mov ecx, eax
call fcn.004045b0
push dword [esi + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x4f56c0
movzx ecx, word [ecx + 8]
mov word [eax + 0x3c], cx
jmp 0x4f571c
int3
int3
int3
int3
int3
int3
int3
int3
movzx ecx, word [ecx + 8]
mov word [eax + 0x3c], cx
jmp 0x4f5728
mov eax, dword [edi - 4]
add edi, 0xfffffffc
test eax, eax
je 0x4f5993
lock dec dword [eax + 4]
je 0x4f599f
cmp edi, ebx
jne 0x4f5983
mov eax, dword [esi + 0x40]
jmp 0x4f55db
mov ecx, eax
mov dword [esi + 8], eax
call fcn.004045b0
push dword [esi + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x4f5993
mov eax, dword [edi - 4]
add edi, 0xfffffffc
test eax, eax
je 0x4f59c6
lock dec dword [eax + 4]
je 0x4f59d2
cmp edi, ebx
jne 0x4f59b6
mov eax, dword [esi + 0x30]
jmp 0x4f55f9
mov ecx, eax
mov dword [esi + 8], eax
call fcn.004045b0
push dword [esi + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x4f59c6