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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x15
movzx edx, word [eax + eax + 0x53ed9c]
mov eax, ecx
and eax, 0xffe00000
cmp dx, 0xfffe
je 0x451696
shl edx, 0x15
cmp eax, edx
je 0x451696
mov esi, ecx
sub esi, edx
and esi, 0xffe00000
movzx edx, byte [esi + 0x103e]
and edx, 0x3f
shl edx, 5
lea edi, [esi + edx]
add edi, 0x1020
mov edx, edi
and edx, 0xffe00000
shl edi, 9
and edi, 0x3fc000
add edi, edx
add edi, 0xffe00000
jne 0x4516f1
or eax, 0x1000
mov esi, ecx
shr esi, 9
and esi, 0xfe0
lea edx, [eax + esi]
movzx eax, byte [eax + esi + 0x1e]
and eax, 0x3f
shl eax, 5
sub edx, eax
mov eax, edx
mov esi, dword [edx + 8]
and edx, 0xffe00000
shl eax, 9
and eax, 0x3fffc000
lea edi, [edx + eax]
add eax, edx
add eax, 0xffe00000
sub ecx, eax
mov eax, ecx
mul dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
add edx, eax
shr edx, 0xa
imul edx, dword [esi + 0xc]
add edi, edx
add edi, 0xffe00000
test edi, 0xfff
je 0x45171b
lea eax, [edi - 4]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
add ecx, 0x7ffffffe
test ecx, 0x7fffffff
je 0x451736
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
and eax, 0xffe00000
mov ecx, edi
shr ecx, 9
and ecx, 0xff8
add eax, ecx
add eax, 0x2000
jmp 0x4516fc
mov eax, edi
and eax, 0xffe00000
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea edx, [ecx + eax]
movzx eax, byte [ecx + eax + 0x101e]
and eax, 0x3f
shl eax, 5
sub edx, eax
lea esi, [edx + 0x1000]
mov eax, esi
and eax, 0xffe01000
mov ecx, dword [eax]
mov eax, dword [edx + 0x1008]
mov edx, ecx
mov eax, dword [eax + 0xc]
lock sub dword [ecx + 0x1198], eax
lock dec dword [ecx + 0x119c]
cmp byte [ecx + 3], 0
je 0x451894
mov eax, dword [0x540044]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax + 0x90]
cmp ebx, 1
jbe 0x451843
cmp ebx, 2
jb 0x451894
mov dword [ebp - 0x10], esi
mov esi, dword [esi + 8]
lea eax, [edx + 0x48]
cmp eax, esi
ja 0x451867
lea ecx, [edx + 0x1148]
cmp ecx, esi
jb 0x451867
sub esi, eax
sar esi, 5
add dword [ebx + 0x30], 1
adc dword [ebx + 0x34], 0
movzx eax, word [0x53ed98]
cmp esi, eax
ja 0x45185f
mov eax, dword [ebx + esi*8 + 0x78]
bswap eax
mov dword [edi], eax
mov dword [ebx + esi*8 + 0x78], edi
inc byte [ebx + esi*8 + 0x7c]
movzx eax, word [ebx + esi*8 + 0x7e]
add dword [ebx], eax
add dword [ebx + 0x38], 1
adc dword [ebx + 0x3c], 0
movzx eax, byte [ebx + esi*8 + 0x7d]
cmp byte [ebx + esi*8 + 0x7c], al
ja 0x45191b
lea esi, [ebx + esi*8]
movzx eax, byte [ebx + 4]
test al, 1
jne 0x451938
movzx eax, word [esi + 0x7e]
sub eax, dword [edx + 0xc]
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], 0
jmp 0x451713
mov ecx, edx
mov ebx, esi
mov esi, edx
call fcn.0046f6a0
mov edx, esi
mov esi, ebx
mov ebx, eax
cmp ebx, 2
jae 0x4517b4
jmp 0x451894
add dword [ebx + 0x40], 1
adc dword [ebx + 0x44], 0
mov eax, dword [ebp - 0x10]
test byte [eax + 0xf], 8
jne 0x451953
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [edx + 0xc]
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], 0
mov esi, dword [ebp - 0x10]
mov ebx, esi
mov dword [edi], 0
mov esi, edx
lea eax, [edx + 0x40]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x4518b7
mov ecx, dword [ebp - 0x10]
call fcn.00470430
mov ecx, ebx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
sub dword [esi + 0x117c], eax
mov eax, dword [ebx]
cmp eax, edi
je 0x45195e
bswap eax
mov dword [edi], eax
mov edx, ebx
mov dword [ebx], edi
mov eax, dword [ebx + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [ebx + 0xc], ecx
test eax, 0x3ffe
je 0x451961
lea ecx, [eax + 0x3ffe]
and ecx, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, ecx
mov dword [ebx + 0xc], edx
test al, 1
jne 0x451948
test ecx, ecx
je 0x451948
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x451713
mov edi, edx
lea edx, [ebx + esi*8]
add edx, 0x78
movzx eax, al
shr eax, 1
mov ecx, ebx
push eax
push edx
call fcn.00470110
mov edx, edi
jmp 0x451819
mov ecx, ebx
mov edi, edx
call fcn.0046f760
mov edx, edi
jmp 0x451828
mov ecx, ebx
push 1
call fcn.00412540
jmp 0x45190d
mov eax, dword [ebp - 0x10]
add eax, 0x20
jmp 0x45187d
int3
int3