Function at 0x46c2e0
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 0x46c3ed
movzx eax, byte [0x55d344]
test al, 1
je 0x46c319
push edi
call fcn.00474850
add esp, 4
push edi
call fcn.00474870
add esp, 4
test al, al
jne 0x46c3ed
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 0x46c4a5
cmp byte [edx + 3], 0
jne 0x46c3f5
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 0x46c550
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [edi + 0x117c], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x46c576
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 0x46c579
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 0x46c4f6
test ecx, ecx
je 0x46c4f6
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 [0x54ddb0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x90]
cmp ecx, 2
jb 0x46c369
mov edi, dword [esi + 8]
lea eax, [edx + 0x48]
cmp eax, edi
ja 0x46c50c
mov dword [ebp - 0x10], ecx
lea ecx, [edx + 0x1148]
cmp ecx, edi
mov ecx, dword [ebp - 0x10]
jb 0x46c50c
sub edi, eax
sar edi, 5
add dword [ecx + 0x30], 1
adc dword [ecx + 0x34], 0
movzx eax, word [0x54bc08]
cmp edi, eax
ja 0x46c504
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 0x46c57c
mov al, byte [ecx + 4]
test al, 1
jne 0x46c55d
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 0x46c3ed
test ebx, 0xfff
je 0x46c531
lea ecx, [ebx - 4]
mov eax, dword [ecx]
and eax, 0x7fffffff
cmp eax, 1
jne 0x46c59d
mov eax, dword [ecx]
nop word cs:[eax + eax]
mov edi, eax
and edi, 0xfffffffe
lock cmpxchg dword [ecx], edi
jne 0x46c4d0
test al, 1
je 0x46c5ea
and eax, 0x7fffffff
cmp eax, 1
jne 0x46c5f0
jmp 0x46c35f
mov ecx, esi
push 1
call fcn.0045b2a0
jmp 0x46c3e4
add dword [ecx + 0x40], 1
adc dword [ecx + 0x44], 0
test byte [esi + 0xf], 8
jne 0x46c571
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 0x46c369
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
add ecx, eax
add ecx, 0x2000
jmp 0x46c4b4
mov ecx, dword [ebp - 0x10]
call fcn.0046a750
jmp 0x46c386
mov ecx, dword [ebp - 0x10]
mov esi, edx
call fcn.0046a310
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x46c489
lea eax, [esi + 0x20]
jmp 0x46c518
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.00469f70
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x46c47e
cmp byte [edx + 7], 0
je 0x46c4c4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test byte [esi + 0xf], 8
jne 0x46c61d
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 [0x55d35c]
test ecx, ecx
jne 0x46c622
push dword [ebp - 0x14]
push 0xef
push edi
call fcn.004a3810
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
jmp 0x46c4c4
push eax
call fcn.004e2640
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 0x46c3ed
lea eax, [esi + 0x20]
jmp 0x46c5b9
call dword [section..00cfg]
push dword [ebp - 0x14]
push edi
call ecx
add esp, 8
jmp 0x46c5df