Function at 0x545f70
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 edx, word [eax + eax + 0x7abe8c]
cmp edx, 0xfffe
je 0x545fd4
mov eax, ecx
and eax, 0xffe00000
shl edx, 0x15
sub eax, edx
je 0x545fd4
movzx edx, byte [eax + 0x103e]
and edx, 0x3f
shl edx, 5
lea ebx, [edx + eax]
add ebx, 0x1020
mov esi, ebx
and esi, 0xffe00000
shl ebx, 9
and ebx, 0x3fffc000
add ebx, esi
add ebx, 0xffe00000
jne 0x54606a
mov eax, ecx
and eax, 0xffe00000
mov edx, ecx
shr edx, 9
and edx, 0x1fe0
or edx, eax
mov eax, edx
or eax, 0x1000
or edx, 0x101e
movzx edx, byte [edx]
and edx, 0x3f
shl edx, 5
sub eax, edx
mov edx, eax
mov edi, dword [eax + 8]
and eax, 0xffe00000
shl edx, 9
and edx, 0x3fc000
lea esi, [eax + edx]
add eax, edx
add eax, 0xffe00000
sub ecx, eax
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 0x54607c
add eax, ebx
add eax, 0xfffffffc
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
add ecx, 0x3ffffffe
test ecx, 0x3fffffff
je 0x546097
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edx + eax + 0x1028]
mov eax, dword [eax + 0xc]
test ebx, 0xfff
jne 0x546046
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
add eax, ecx
add eax, 0x2000
jmp 0x54604b
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0x1fe0
or ecx, eax
mov esi, ecx
or esi, 0x1000
or ecx, 0x101e
movzx eax, byte [ecx]
and eax, 0x3f
shl eax, 5
sub esi, eax
mov eax, esi
and eax, 0xffe01000
mov ecx, dword [eax]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock sub dword [ecx + 0x15e0], eax
lock dec dword [ecx + 0x15e4]
mov dword [ebp - 0x14], ecx
cmp byte [ecx + 3], 1
jne 0x546211
mov eax, dword [0x7ad2c4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x90], 0
jne 0x54610b
call fcn.00650d54
mov eax, dword [0x7ad2c4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xd8]
cmp edi, 2
jb 0x546211
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x14]
lea ecx, [edx + 0x48]
cmp ecx, eax
ja 0x5461e1
add edx, 0x1588
cmp edx, eax
jb 0x5461e1
sub eax, ecx
sar eax, 3
imul esi, eax, 0xcccccccd
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
movzx eax, word [0x7abe88]
cmp esi, eax
ja 0x5461d9
lea eax, [edi + esi*8]
add eax, 0x78
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.00571d30
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 0x546296
movzx eax, byte [edi + 4]
test al, 1
mov esi, dword [ebp - 0x14]
jne 0x54628a
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 0x546062
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
js 0x5462b6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add eax, 0xc
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
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, dword [ebp - 0x10]
mov dword [ebx], 0
mov eax, dword [ebp - 0x14]
lea edi, [eax + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x54622f
mov ecx, edi
call fcn.00572950
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
sub dword [edx + 0x15c4], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x5462c1
bswap eax
mov dword [ebx], eax
not eax
mov dword [ebx + 4], eax
mov dword [esi], ebx
and byte [esi + 0x10], 0xfe
mov eax, dword [esi + 0xc]
test eax, 0x7fff
je 0x5462c4
lea ecx, [eax - 1]
and ecx, 0x7fff
mov edx, eax
and edx, 0xffff8000
or edx, ecx
mov dword [esi + 0xc], edx
test eax, 0x40000000
jne 0x5462ab
test ecx, ecx
je 0x5462ab
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x546062
mov ecx, edi
call fcn.005725c0
jmp 0x5461bb
movzx eax, al
shr eax, 1
mov ecx, edi
push eax
push dword [ebp - 0x10]
call fcn.00572430
jmp 0x5461ac
mov ecx, esi
push 1
call fcn.00572a00
jmp 0x54627e
mov eax, dword [ebp - 0x10]
add eax, 0x20
jmp 0x5461f7
int3
int3