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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esi + 0xc8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x12]
and al, 0x7f
je 0x583b53
mov bl, 1
cmp al, 2
je 0x583b5d
cmp al, 1
jne 0x583b4f
mov eax, dword [ecx + 0x18]
mov edx, 2
lock xadd dword [eax], edx
test dl, 1
je 0x583b5d
mov eax, dword [ecx + 0x18]
mov edx, 0xfffffffe
lock xadd dword [eax], edx
cmp edx, 3
jne 0x583b4f
lea edi, [ecx + 0x3c]
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x583d4b
mov ecx, dword [ebx + 0x40]
call fcn.004c8d40
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, ebx
xor ebx, ebx
jmp 0x583b5d
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
test al, 1
sete bl
mov dword [esi + 4], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0xa0], xmm0
movdqa xmmword [esi + 0xb0], xmm0
mov dword [esi + 0xc4], 0xffffffff
mov dword [esi + 0xc0], 0xffffffff
mov byte [esi + 0x70], 0
pxor xmm0, xmm0
movdqu xmmword [esi + 0x78], xmm0
movdqu xmmword [esi + 0x88], xmm0
movdqu xmmword [esi + 0x98], xmm0
movdqu xmmword [esi + 0xa8], xmm0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0x14], 0xffffffff
lea eax, [ebp + 0xc]
mov ecx, dword [eax]
lea edi, [esi + 0x14]
push edi
call fcn.0058e7c0
lea eax, [esi + 0x28]
lea ecx, [ebp + 0xc]
test bl, bl
je 0x583bfe
push edi
push eax
call fcn.0058e9d0
jmp 0x583c05
push edi
push eax
call fcn.0058ea00
lea ecx, [esi + 0x78]
lea edi, [esi + 0x28]
push edi
call fcn.0058dd20
mov byte [esi + 0x70], 1
mov ecx, edi
call fcn.0058ecd0
mov eax, dword [esi + 0x14]
mov cl, byte [eax + 0x10]
mov byte [esi + 0x20], cl
movsd xmm0, qword [eax + 8]
movsd qword [esi + 0x18], xmm0
mov ecx, dword [eax + 0x11]
mov dword [esi + 0x21], ecx
movzx eax, word [eax + 0x15]
mov word [esi + 0x25], ax
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [esi + 0x1f]
movsd qword [esi + 0x2f], xmm0
lea ecx, [esi + 0x14]
call fcn.0058e680
cmp byte [esi + 0x70], 0
je 0x583ca2
mov dword [esi + 0x10], ebx
lea eax, [ebp + 0xc]
mov dword [esi + 0xc], esp
sub esp, 0x50
mov ebx, esp
cmp byte [esi + 0x70], 0
je 0x583d57
mov edi, dword [eax]
mov ecx, ebx
lea eax, [esi + 0x78]
push eax
call fcn.0058dd20
mov dword [ebx + 0x48], edi
lea eax, [esi + 0x28]
mov dword [ebx + 0x4c], eax
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov esp, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
test bl, bl
je 0x583ce8
lea eax, [ebp + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 0x12]
and al, 0x7f
cmp al, 1
jne 0x583ce8
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x18]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x583ce8
mov ebx, dword [esi + 4]
lea edi, [ebx + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x583d42
mov ecx, dword [ebx + 0x40]
call fcn.004c8d40
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea ecx, [ebp + 0xc]
push 0
call fcn.0058ea30
test al, al
je 0x583d04
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0058e810
jmp 0x583d0e
mov ecx, dword [esi + 8]
push 0
call fcn.0058e7f0
lea edi, [ebp + 8]
cmp byte [esi + 0x70], 0
je 0x583d1f
lea ecx, [esi + 0x78]
call fcn.0058ecd0
lea ecx, [ebp + 0xc]
call fcn.0058e840
mov edi, dword [edi]
mov ecx, dword [esi + 0xc8]
xor ecx, ebp
call fcn.006c9121
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, edi
call fcn.00474260
jmp 0x583cd9
mov ecx, edi
call fcn.00474260
jmp 0x583b3e
call fcn.00408dfc
int3