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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
call fcn.00482aa0
test edi, edi
je 0x57d69c
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov esi, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea edx, [eax + ecx]
add edx, 0x1000
movzx eax, byte [edx + 0x1e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [esi + 0x10]
sub edx, eax
prefetcht0 byte [edx]
cmp byte [esi], 2
je 0x57d6a6
cmp byte [esi + 6], 0
je 0x57d5dc
test ebx, 0xfff
je 0x57d869
mov edi, ebx
add ebx, 0xfffffffc
mov eax, dword [ebx]
and eax, 0x7fffffff
cmp eax, 1
je 0x57d5b7
cmp byte [esi + 7], 0
jne 0x57d8c0
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [ebx], ecx
jne 0x57d5b9
test al, 1
je 0x57d88b
and eax, 0x7fffffff
cmp eax, 1
jne 0x57d893
mov ebx, edi
mov dword [ebp - 0x14], ebx
cmp byte [esi + 3], 0
je 0x57d7b4
mov eax, dword [0x5f7664]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax + 0x90]
cmp ebx, 1
jbe 0x57d776
cmp ebx, 2
jb 0x57d7b4
mov edi, dword [edx + 8]
lea eax, [esi + 0x48]
cmp eax, edi
ja 0x57d790
lea ecx, [esi + 0x1148]
cmp ecx, edi
jb 0x57d790
sub edi, eax
sar edi, 5
add dword [ebx + 0x30], 1
adc dword [ebx + 0x34], 0
movzx eax, word [0x5f60b8]
cmp edi, eax
ja 0x57d788
mov eax, dword [ebx + edi*8 + 0x78]
bswap eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ebx + edi*8 + 0x78], ecx
inc byte [ebx + edi*8 + 0x7c]
movzx eax, word [ebx + edi*8 + 0x7e]
add dword [ebx], eax
add dword [ebx + 0x38], 1
adc dword [ebx + 0x3c], 0
mov al, byte [ebx + edi*8 + 0x7d]
cmp byte [ebx + edi*8 + 0x7c], al
ja 0x57d844
lea edi, [ebx + edi*8]
mov al, byte [ebx + 4]
test al, 1
jne 0x57d85d
movzx eax, word [edi + 0x7e]
sub eax, dword [esi + 0xc]
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], 0
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, byte [0x5f6081]
test al, 1
jne 0x57d905
mov eax, ebx
shr eax, 0x15
cmp word [eax + eax + 0x5f60bc], 0xfffe
jne 0x57d58a
mov eax, dword [edx + 8]
test byte [edx + 0xf], 8
jne 0x57d916
mov ecx, edi
lea edx, [eax + 0xc]
mov edi, dword [eax + 0xc]
cmp byte [0x5f6083], 1
jne 0x57d6f8
mov eax, dword [edx]
sub eax, dword [esi + 0xc]
push eax
push 0
mov esi, ecx
push ecx
call fcn.00510ea0
add esp, 0xc
mov ecx, dword [0x5f606c]
and ecx, 1
mov eax, 2
sub eax, ecx
mov ecx, ebx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, ebx
and ecx, 0xffe00000
not eax
shr ebx, 5
and ebx, 0xfffc
lock and dword [ebx + ecx + 0x4000], eax
mov eax, edi
lock xadd dword [0x5f6064], eax
add eax, edi
mov ecx, dword [0x5f6068]
cmp eax, ecx
jbe 0x57d69c
mov ecx, dword [0x5f607c]
call fcn.00580220
test al, al
je 0x57d69c
mov al, byte [0x5f6080]
test al, al
jne 0x57d69c
push 1
call fcn.005699c0
add esp, 0x10
jmp 0x57d69f
mov ecx, esi
mov edi, edx
call fcn.004824f0
mov edx, edi
mov ebx, eax
jmp 0x57d607
add dword [ebx + 0x40], 1
adc dword [ebx + 0x44], 0
test byte [edx + 0xf], 8
jne 0x57d8fd
mov eax, dword [edx + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [esi + 0xc]
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], 0
mov edi, edx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x57d7d8
mov ecx, dword [ebp - 0x10]
call fcn.004ecaa0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
sub dword [esi + 0x117c], eax
mov eax, dword [edi]
cmp eax, ebx
je 0x57d925
bswap eax
mov dword [ebx], eax
mov dword [edi], ebx
mov eax, dword [edi + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [edi + 0xc], ecx
test eax, 0x3ffe
je 0x57d928
mov edx, 0x3ffe
lea esi, [eax + edx]
and esi, edx
mov edx, eax
and edx, 0xefffc001
or edx, esi
mov dword [edi + 0xc], edx
test al, 1
mov ecx, edi
jne 0x57d8f1
test esi, esi
je 0x57d8f1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x57d69c
lea edx, [ebx + edi*8]
add edx, 0x78
movzx eax, al
shr eax, 1
mov ecx, ebx
push eax
push edx
call fcn.004ec0f0
jmp 0x57d678
mov ecx, ebx
call fcn.004ec850
jmp 0x57d686
mov eax, ebx
and eax, 0xffe00000
mov edi, ebx
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
lea ebx, [ecx + eax]
add ebx, 0x2000
jmp 0x57d5a1
mov ecx, ebx
push eax
call fcn.0055bb20
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [esi + 0x1198], eax
lock inc dword [esi + 0x119c]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [esi + 0x11a0], eax
lock inc dword [esi + 0x11a4]
jmp 0x57d69c
test byte [edx + 0xf], 8
mov dword [ebp - 0x18], edx
jne 0x57d920
mov eax, dword [edx + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [esi + 0xc]
push eax
push 0xef
mov eax, dword [ebp + 8]
push eax
call fcn.00510ea0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
jmp 0x57d5b7
push 1
call fcn.004c63a0
jmp 0x57d836
lea eax, [edx + 0x20]
jmp 0x57d7a0
mov edi, edx
call fcn.005699e0
mov edx, edi
mov edi, dword [ebp + 8]
jmp 0x57d6b3
mov ecx, edi
add edx, 0x20
jmp 0x57d6d9
lea eax, [edx + 0x20]
jmp 0x57d8cf
int3
int3