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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x15
movzx esi, word [eax + eax + 0x5892ec]
cmp si, 0xfffe
sete bl
mov eax, ecx
and eax, 0xffe00000
shl esi, 0x15
mov edx, eax
sub edx, esi
sete bh
or bh, bl
je 0x4bd441
mov esi, ecx
shr esi, 9
and esi, 0xfe0
lea edx, [esi + eax]
movzx eax, byte [esi + eax + 0x101e]
and eax, 0x3f
shl eax, 5
sub edx, eax
lea eax, [edx + 0x1000]
mov edi, eax
and edi, 0xffe00000
shl eax, 9
and eax, 0x3fffc000
lea esi, [edi + eax]
add eax, edi
add eax, 0xffe00000
sub ecx, eax
mov edi, dword [edx + 0x1008]
mov eax, ecx
mul dword [edi + 0x18]
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x1c]
imul edi, ecx
add edx, edi
shr edx, 0xa
imul edx, eax
lea ebx, [edx + esi]
add ebx, 0xffe00000
test ebx, 0xfff
je 0x4bd1fa
add eax, ebx
add eax, 0xfffffffc
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
add ecx, 0x3ffffffe
test ecx, 0x3fffffff
je 0x4bd215
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
add eax, ecx
add eax, 0x2000
jmp 0x4bd1db
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0x1fe0
or ecx, eax
mov edx, ecx
or edx, 0x1000
or ecx, 0x101e
movzx eax, byte [ecx]
and eax, 0x3f
shl eax, 5
sub edx, eax
mov eax, edx
and eax, 0xffe01000
mov ecx, dword [eax]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock sub dword [ecx + 0x1198], eax
lock dec dword [ecx + 0x119c]
mov dword [ebp - 0x14], ecx
cmp byte [ecx + 3], 1
jne 0x4bd381
mov eax, dword [0x58a36c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x90], 0
je 0x4bd498
mov eax, dword [0x58a36c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xc8]
cmp edi, 2
jb 0x4bd381
mov esi, dword [edx + 8]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + 0x48]
add ecx, 0x1148
cmp ecx, esi
setae cl
cmp eax, esi
ja 0x4bd485
test cl, cl
je 0x4bd35a
sub esi, eax
sar esi, 5
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
movzx eax, word [0x5892e8]
cmp esi, eax
ja 0x4bd352
lea eax, [edi + esi*8]
add eax, 0x78
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.004cdca0
mov eax, dword [edi + esi*8 + 0x78]
bswap eax
mov dword [ebx], eax
not eax
mov dword [ebx + 4], eax
mov dword [edi + esi*8 + 0x78], ebx
inc byte [edi + esi*8 + 0x7c]
movzx eax, word [edi + esi*8 + 0x7e]
add dword [edi], eax
add dword [edi + 0x38], 1
adc dword [edi + 0x3c], 0
movzx eax, byte [edi + esi*8 + 0x7d]
cmp byte [edi + esi*8 + 0x7c], al
ja 0x4bd41f
movzx eax, byte [edi + 4]
test al, 1
mov esi, dword [ebp - 0x14]
jne 0x4bd48c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 6]
sub eax, dword [esi + 0x10]
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
add dword [edi + 0x70], eax
adc dword [edi + 0x74], 0
jmp 0x4bd1f2
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
test byte [edx + 0xf], 8
jne 0x4bd4ac
mov eax, dword [edx + 8]
add eax, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
sub eax, dword [ecx + 0x10]
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
add dword [edi + 0x70], eax
adc dword [edi + 0x74], 0
mov esi, edx
mov dword [ebx], 0
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x40]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4bd434
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [edi + 0x117c], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x4bd4a6
mov edx, esi
bswap eax
mov dword [ebx], eax
not eax
mov dword [ebx + 4], 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 0x4bd4a9
mov esi, edx
lea ecx, [eax + 0x3ffe]
and ecx, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, ecx
mov dword [esi + 0xc], edx
test al, 1
sete al
test ecx, ecx
setne cl
test al, cl
je 0x4bd414
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4bd1f2
mov ecx, esi
push 1
call fcn.004ceec0
jmp 0x4bd406
movzx eax, al
shr eax, 1
mov ecx, edi
push eax
push dword [ebp - 0x10]
call fcn.004ce2e0
jmp 0x4bd325
mov ecx, dword [ebp - 0x10]
call fcn.004cee20
jmp 0x4bd3a1
movzx esi, byte [edx + 0x103e]
and esi, 0x3f
shl esi, 5
lea ebx, [esi + edx]
add ebx, 0x1020
mov edi, ebx
and edi, 0xffe00000
shl ebx, 9
and ebx, 0x3fffc000
add ebx, edi
add ebx, 0xffe00000
je 0x4bd169
mov eax, dword [esi + edx + 0x1028]
mov eax, dword [eax + 0xc]
jmp 0x4bd1ce
xor ecx, ecx
jmp 0x4bd2c2
mov ecx, edi
call fcn.004ceb50
jmp 0x4bd334
mov esi, edx
call fcn.004ecee4
mov edx, esi
jmp 0x4bd288
int3
int3
lea eax, [edx + 0x20]
jmp 0x4bd36a