Function at 0x657cc0
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]
test edi, edi
je 0x657db7
movzx eax, byte [0x73e520]
test al, 1
jne 0x657f35
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov edx, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea esi, [eax + ecx]
add esi, 0x1000
movzx eax, byte [eax + ecx + 0x101e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [edx + 0x10]
sub esi, eax
prefetcht0 byte [esi]
cmp byte [edx + 6], 0
jne 0x657e6f
cmp byte [edx + 3], 0
jne 0x657dbf
mov dword [ebx], 0
lea eax, [edx + 0x40]
mov dword [ebp - 0x10], eax
push eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x657f14
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [edi + 0x117c], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x657f54
bswap eax
mov dword [ebx], eax
mov dword [esi], ebx
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [esi + 0xc], ecx
test eax, 0x3ffe
je 0x657f57
lea ecx, [eax + 0x3ffe]
and ecx, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, ecx
mov dword [esi + 0xc], edx
test al, 1
jne 0x657eb6
test ecx, ecx
je 0x657eb6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x72dff4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0xa8]
cmp ecx, 2
jb 0x657d33
mov edi, dword [esi + 8]
lea eax, [edx + 0x48]
cmp eax, edi
ja 0x657ecc
mov dword [ebp - 0x10], ecx
lea ecx, [edx + 0x1148]
cmp ecx, edi
mov ecx, dword [ebp - 0x10]
jb 0x657ecc
sub edi, eax
sar edi, 5
add dword [ecx + 0x30], 1
adc dword [ecx + 0x34], 0
movzx eax, word [0x72cc78]
cmp edi, eax
ja 0x657ec4
mov eax, dword [ecx + edi*8 + 0x78]
bswap eax
mov dword [ebx], eax
mov dword [ecx + edi*8 + 0x78], ebx
inc byte [ecx + edi*8 + 0x7c]
movzx eax, word [ecx + edi*8 + 0x7e]
add dword [ecx], eax
add dword [ecx + 0x38], 1
adc dword [ecx + 0x3c], 0
mov al, byte [ecx + edi*8 + 0x7d]
cmp byte [ecx + edi*8 + 0x7c], al
ja 0x657f5a
mov al, byte [ecx + 4]
test al, 1
jne 0x657f21
movzx eax, word [ecx + edi*8 + 0x7e]
sub eax, dword [edx + 0xc]
add dword [ecx + 0x68], 1
adc dword [ecx + 0x6c], 0
add dword [ecx + 0x70], eax
adc dword [ecx + 0x74], 0
jmp 0x657db7
test ebx, 0xfff
je 0x657ef5
lea ecx, [ebx - 4]
mov eax, dword [ecx]
and eax, 0x7fffffff
cmp eax, 1
jne 0x657f7b
mov eax, dword [ecx]
mov edi, eax
and edi, 0xfffffffe
lock cmpxchg dword [ecx], edi
jne 0x657e90
test al, 1
je 0x657fc8
and eax, 0x7fffffff
cmp eax, 1
jne 0x657fce
jmp 0x657d29
mov ecx, esi
push 1
call fcn.00627fb0
jmp 0x657dae
add dword [ecx + 0x40], 1
adc dword [ecx + 0x44], 0
test byte [esi + 0xf], 8
jne 0x657ffb
mov eax, dword [esi + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [edx + 0xc]
add dword [ecx + 0x68], 1
adc dword [ecx + 0x6c], 0
add dword [ecx + 0x70], eax
adc dword [ecx + 0x74], 0
jmp 0x657d33
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
add ecx, eax
add ecx, 0x2000
jmp 0x657e7e
mov ecx, dword [ebp - 0x10]
call fcn.00655e40
jmp 0x657d50
mov ecx, dword [ebp - 0x10]
mov esi, edx
call fcn.00655a00
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x657e53
push edi
call fcn.006cdf30
add esp, 4
push edi
call fcn.006cdf50
add esp, 4
test al, al
je 0x657ce3
jmp 0x657db7
int3
int3
mov esi, edx
lea edx, [ecx + edi*8]
add edx, 0x78
movzx eax, al
shr eax, 1
mov ecx, dword [ebp - 0x10]
push eax
push edx
call fcn.00655640
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x657e48
cmp byte [edx + 7], 0
je 0x657e8e
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test byte [esi + 0xf], 8
jne 0x658003
mov eax, dword [esi + 8]
add eax, 0xc
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x73e538]
test ecx, ecx
jne 0x658008
push dword [ebp - 0x14]
push 0xef
push edi
call fcn.006719e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
jmp 0x657e8e
push eax
call fcn.006b5630
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x1198], eax
lock inc dword [edx + 0x119c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x11a0], eax
lock inc dword [edx + 0x11a4]
jmp 0x657db7
lea eax, [esi + 0x20]
jmp 0x657edc
lea eax, [esi + 0x20]
jmp 0x657f97
call dword [section..00cfg]
push dword [ebp - 0x14]
push edi
call ecx
add esp, 8
jmp 0x657fbd