Function at 0x489820
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, ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x88], eax
mov ecx, dword [ecx + 8]
call fcn.0048c6d0
mov edi, dword [esi + 0x24]
mov al, byte [edi + 0x69]
or al, byte [0x533ce8]
setne bl
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx + 0x60], xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [ecx + 0x70], 0xffffffff
call fcn.004884a0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x528e6c]
bt ecx, eax
jb 0x489cbf
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x530e6c], 1
lea eax, [esp + 0x44]
mov dword [eax - 0x28], edi
lea ecx, [esp + 0x6c]
pxor xmm0, xmm0
movdqa xmmword [ecx - 0x4c], xmm0
movdqa xmmword [ecx - 0x3c], xmm0
mov byte [ecx - 0x2c], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0x14], eax
mov byte [ecx], 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], ecx
mov edi, dword [esi + 0x24]
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x489aea
mov dword [esp], edi
lea edi, [esp + 8]
push edi
call fcn.00471340
add esp, 4
movsd xmm0, qword [edi]
movsd qword [esi + 0x1c], xmm0
cmp byte [esi + 0x2e], 0
jne 0x489994
cmp byte [esi + 0x14], 0
je 0x489ccd
mov eax, dword [ebp + 8]
cmp byte [esi + 0x15], 0
je 0x489a69
cmp eax, 1
setne al
xor bl, 1
test al, bl
je 0x489af6
mov eax, dword [esi + 0x24]
inc dword [eax + 0xb0]
mov esi, dword [esi + 0x24]
cmp byte [esi + 0xc8], 0
jne 0x489994
mov edi, dword [esi + 0xac]
mov ecx, esi
call fcn.00488630
add eax, edi
cmp eax, dword [esi + 0xa4]
ja 0x489c80
mov edi, dword [esi + 0xa8]
mov ecx, esi
call fcn.00488630
mov ebx, eax
mov ecx, esi
call fcn.00488690
add ebx, edi
add eax, ebx
inc eax
cmp eax, dword [esi + 0xa0]
ja 0x489acc
push dword [esp]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x489a77
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x489bb7
cmp byte [esp + 0x40], 0
jne 0x489c72
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
cmp ebx, esi
jne 0x489c3c
test ebx, ebx
je 0x4899f3
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x80]
test eax, eax
je 0x489cb1
cmp ebx, eax
jne 0x489cb1
mov byte [eax + 0x28], 0
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x489b47
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x489c20
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x489b7f
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x489ab0
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x528e6c]
bt edx, ecx
jb 0x489ccf
lea ecx, [esp + 0x10]
mov dword [ecx + 0xc], 0
call fcn.004884c0
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0048f468
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 0x24]
inc dword [ecx + 0xb4]
jmp 0x48992c
call fcn.0048c6c0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp edi, ebx
je 0x4899a9
mov esi, dword [edi]
test esi, esi
je 0x489cdd
lock inc dword [esi + 4]
mov ecx, esi
call fcn.0048c6c0
lock dec dword [esi + 4]
je 0x489ce9
add edi, 4
jmp 0x489a84
lock dec dword [ecx + 4]
jne 0x489a23
add ecx, 4
add ecx, 0xfffffffc
push 1
call fcn.00463460
jmp 0x489a23
cmp dword [esi + 0xb0], 0
jle 0x489994
mov al, 1
mov byte [esp + 0x40], al
mov byte [esi + 0xc8], al
jmp 0x489994
mov ecx, edi
call fcn.00470810
jmp 0x4898f6
mov byte [esi + 0x2c], 1
mov ebx, dword [esi + 0x24]
inc dword [ebx + 0xa0]
lea edi, [ebx + 0x1c]
mov ecx, edi
call fcn.0048d1c0
test al, al
jne 0x489b23
mov eax, dword [ebx + 0xa8]
cmp eax, dword [ebx + 0xa0]
jae 0x489c92
xor eax, eax
mov word [ebx + 0x3c], ax
mov edi, dword [esi + 0x24]
mov eax, dword [edi]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
lea eax, [esp + 0x10]
push eax
call ebx
jmp 0x489946
mov edi, dword [esp + 0x38]
mov eax, esi
cmp edi, esi
je 0x489b6d
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
test ecx, ecx
je 0x489b65
lock dec dword [ecx + 4]
je 0x489cfd
cmp edi, esi
jne 0x489b51
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
push eax
call fcn.0048e90d
add esp, 4
jmp 0x4899ff
mov edi, dword [esp + 0x28]
mov eax, esi
cmp edi, esi
je 0x489ba5
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
test ecx, ecx
je 0x489b9d
lock dec dword [ecx + 4]
je 0x489d0f
cmp edi, esi
jne 0x489b89
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], esi
push eax
call fcn.0048e90d
add esp, 4
jmp 0x489a17
mov eax, dword [esp + 0x1c]
push dword [eax + 0x60]
call fcn.00462fe0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0xd8], 0
jne 0x489d21
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
cmp edi, ebx
je 0x4899b5
mov esi, dword [edi]
test esi, esi
je 0x489bee
lock inc dword [esi + 4]
mov eax, dword [esp + 0x1c]
mov ecx, esi
push dword [eax + 0x60]
call fcn.00462fe0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0xd8], 0
jne 0x489d31
test esi, esi
je 0x489c1b
lock dec dword [esi + 4]
je 0x489d41
add edi, 4
jmp 0x489bdc
lock dec dword [ecx + 4]
jne 0x489a0b
add ecx, 4
add ecx, 0xfffffffc
push 1
call fcn.00463460
jmp 0x489a0b
mov ecx, dword [ebx]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esp + 4]
push dword [esp]
call edi
add ebx, 8
cmp ebx, esi
jne 0x489c3c
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x78], ebx
jmp 0x4899d0
mov ecx, dword [esp + 0x1c]
call fcn.00461c40
jmp 0x4899c0
cmp dword [esi + 0xb4], 0
jle 0x48996d
jmp 0x489ad9
mov ecx, edi
call fcn.0048d1a0
mov ecx, edi
movzx edi, byte [eax]
call fcn.0048d1a0
movzx eax, byte [eax + 1]
shl eax, 8
or eax, edi
jmp 0x489b25
push ebx
call fcn.0048e90d
add esp, 4
jmp 0x4899f3
push edi
call fcn.004e3120
add esp, 4
jmp 0x4898b2
ud2
push eax
call fcn.004e3210
add esp, 4
jmp 0x489a41
xor ecx, ecx
call fcn.0048c6c0
jmp 0x489aab
add esi, 4
add esi, 0xfffffffc
mov ecx, esi
push 1
call fcn.00463460
jmp 0x489aab
add ecx, 4
add ecx, 0xfffffffc
push 1
call fcn.00463460
jmp 0x489b65
add ecx, 4
add ecx, 0xfffffffc
push 1
call fcn.00463460
jmp 0x489b9d
add ecx, 0xdc
call fcn.00470940
jmp 0x489bd4
add ecx, 0xdc
call fcn.00470940
jmp 0x489c0d
add esi, 4
add esi, 0xfffffffc
mov ecx, esi
push 1
call fcn.00463460
jmp 0x489c1b