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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x511014]
xor eax, ebp
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x46862b
prefetcht0 byte [ebx]
mov eax, ebx
and eax, 0xffe00000
mov ecx, dword [eax + 0x1000]
mov edx, ebx
shr edx, 9
and edx, 0xfe0
lea esi, [eax + edx]
add esi, 0x1000
movzx eax, byte [eax + edx + 0x101e]
and eax, 0x3f
shl eax, 5
mov edx, ebx
sub edx, dword [ecx + 0x10]
sub esi, eax
prefetcht0 byte [esi]
cmp byte [ecx], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
je 0x468b02
cmp byte [ecx + 6], 0
jne 0x46863e
cmp byte [ecx + 3], 0
je 0x4686b9
mov eax, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + 0x90]
cmp edi, 1
jbe 0x468aeb
cmp edi, 2
jb 0x4686b9
mov eax, dword [esi + 8]
lea ebx, [ecx + 0x48]
lea edx, [ecx + 0x1148]
cmp edx, eax
setae dl
cmp ebx, eax
ja 0x468bdb
test dl, dl
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
je 0x468695
sub eax, ebx
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
cmp eax, 0x3e0
ja 0x46868d
mov esi, eax
shr eax, 2
mov ecx, dword [edi + eax + 0x78]
bswap ecx
mov dword [edx], ecx
mov dword [edi + eax + 0x78], edx
movzx ebx, byte [edi + eax + 0x7c]
inc bl
mov byte [edi + eax + 0x7c], bl
movzx ecx, word [edi + eax + 0x7e]
movzx edx, cx
add dword [edi], edx
shr esi, 5
add dword [edi + 0x38], 1
adc dword [edi + 0x3c], 0
movzx eax, byte [edi + eax + 0x7d]
cmp bl, al
ja 0x468748
movzx eax, byte [edi + 4]
test al, 1
jne 0x468ab0
movzx eax, cx
mov ecx, dword [esp + 8]
sub eax, dword [ecx + 0xc]
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
add dword [edi + 0x70], eax
adc dword [edi + 0x74], 0
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00496ce3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edx, 0xfff
je 0x4688ca
lea edi, [edx - 4]
mov eax, dword [edi]
and eax, 0x7fffffff
cmp eax, 1
jne 0x468919
mov eax, dword [edi]
nop
mov edx, eax
and edx, 0xfffffffe
lock cmpxchg dword [edi], edx
jne 0x468660
test al, 1
je 0x468be2
and eax, 0x7fffffff
cmp eax, 1
jne 0x4688ec
cmp byte [ecx + 3], 0
jne 0x468563
jmp 0x4686b9
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
test byte [esi + 0xf], 8
jne 0x468aa8
mov eax, dword [esi + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [ecx + 0xc]
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
add dword [edi + 0x70], eax
adc dword [edi + 0x74], 0
mov edi, dword [esp + 4]
mov dword [edi], 0
lea eax, [ecx + 0x40]
mov dword [esp + 8], eax
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x468acf
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [ebx + 0x117c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x468c59
bswap eax
mov dword [edi], eax
mov dword [esi], edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [esi + 0xc], ecx
test eax, 0x3ffe
je 0x468c5c
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 0x468950
test ecx, ecx
je 0x468950
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x46862b
movzx eax, al
mov dword [esp + 0xc], eax
shr eax, 1
cmp bl, al
jbe 0x468606
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 4]
push edx
call fcn.00469490
movzx edx, byte [edi + esi*8 + 0x7c]
cmp byte [esp + 0xc], 1
mov dword [esp + 0x1c], edx
jbe 0x46898d
mov ecx, dword [edi + esi*8 + 0x78]
movzx eax, word [edi + esi*8 + 0x7e]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp al, 1
je 0x4687b1
dec eax
mov ebx, ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x468c18
bswap ecx
test ecx, 0x1fc000
je 0x468bea
prefetcht0 byte [ecx]
dec eax
jne 0x468791
mov ebx, dword [ecx]
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x468afb
bswap ebx
test ebx, 0x1fc000
je 0x468c67
prefetcht0 byte [ebx]
mov eax, dword [edi + 0x2f8]
add eax, 0x40
mov dword [esp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x468ac1
test ebx, ebx
je 0x46895e
mov eax, dword [ebx]
test eax, eax
je 0x4688b4
bswap eax
test eax, 0x1fc000
je 0x468bea
mov dword [esp + 4], eax
prefetcht0 byte [eax]
mov eax, ebx
and eax, 0xffe00000
mov edx, ebx
shr edx, 9
and edx, 0xfe0
lea ecx, [edx + eax]
movzx eax, byte [edx + eax + 0x101e]
mov edx, dword [edi + 0x2f8]
and eax, 0x3f
shl eax, 5
sub ecx, eax
mov eax, dword [ecx + 0x1008]
mov eax, dword [eax + 0xc]
sub dword [edx + 0x117c], eax
mov eax, dword [ecx + 0x1000]
cmp eax, ebx
je 0x468c1f
add ecx, 0x1000
bswap eax
mov dword [ebx], eax
mov dword [ecx], ebx
mov ebx, dword [ecx + 0xc]
mov edx, ebx
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test ebx, 0x3ffe
je 0x468c22
lea edx, [ebx + 0x3ffe]
and edx, 0x3ffe
mov eax, ebx
and eax, 0xefffc001
or eax, edx
mov dword [ecx + 0xc], eax
test bl, 1
jne 0x4688c1
test edx, edx
je 0x4688c1
mov eax, dword [esp + 4]
mov ebx, eax
test eax, eax
jne 0x4687f4
jmp 0x46895e
mov dword [esp + 4], 0
jmp 0x468812
push 1
call fcn.00468ca0
jmp 0x4688a1
mov eax, edx
and eax, 0xffe00000
mov edx, dword [esp + 4]
shr edx, 9
and edx, 0xff8
lea edi, [edx + eax]
add edi, 0x2000
jmp 0x46864d
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [ecx + 0x1198], eax
lock inc dword [ecx + 0x119c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [ecx + 0x11a0], eax
lock inc dword [ecx + 0x11a4]
jmp 0x46862b
cmp byte [ecx + 7], 0
je 0x46865d
test byte [esi + 0xf], 8
jne 0x468c5f
mov eax, dword [esi + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [ecx + 0xc]
push eax
push 0xef
push ebx
call fcn.00498980
mov ecx, dword [esp + 0x14]
add esp, 0xc
jmp 0x46865d
mov ecx, esi
push 1
call fcn.00468ca0
jmp 0x468739
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
mov byte [edi + esi*8 + 0x7c], al
sub eax, dword [esp + 0x1c]
movzx ecx, word [edi + esi*8 + 0x7e]
imul eax, ecx
add dword [edi], eax
jmp 0x468606
movzx eax, word [edi + esi*8 + 0x7e]
mov dword [esp + 0x14], eax
mov ebx, dword [edi + esi*8 + 0x78]
mov eax, dword [edi + 0x2f8]
add eax, 0x40
mov dword [esp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x468add
test ebx, ebx
je 0x468a91
mov eax, dword [ebx]
test eax, eax
je 0x468a7b
bswap eax
test eax, 0x1fc000
je 0x468c2b
mov dword [esp + 4], eax
prefetcht0 byte [eax]
mov eax, ebx
and eax, 0xffe00000
mov edx, ebx
shr edx, 9
and edx, 0xfe0
lea ecx, [edx + eax]
movzx eax, byte [edx + eax + 0x101e]
mov edx, dword [edi + 0x2f8]
and eax, 0x3f
shl eax, 5
sub ecx, eax
mov eax, dword [ecx + 0x1008]
mov eax, dword [eax + 0xc]
sub dword [edx + 0x117c], eax
mov eax, dword [ecx + 0x1000]
cmp eax, ebx
je 0x468c25
add ecx, 0x1000
bswap eax
mov dword [ebx], eax
mov dword [ecx], ebx
mov ebx, dword [ecx + 0xc]
mov edx, ebx
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test ebx, 0x3ffe
je 0x468c28
lea edx, [ebx + 0x3ffe]
and edx, 0x3ffe
mov eax, ebx
and eax, 0xefffc001
or eax, edx
mov dword [ecx + 0xc], eax
test bl, 1
jne 0x468a88
test edx, edx
je 0x468a88
mov eax, dword [esp + 4]
mov ebx, eax
test eax, eax
jne 0x4689be
jmp 0x468a91
mov dword [esp + 4], 0
jmp 0x4689dc
push 1
call fcn.00468ca0
jmp 0x468a6b
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [edi + esi*8 + 0x78], 0
jmp 0x468972
lea eax, [esi + 0x20]
jmp 0x4686a5
mov ecx, edi
call fcn.004692c0
movzx ecx, word [edi + esi*8 + 0x7e]
jmp 0x468612
mov ecx, dword [esp + 0xc]
call fcn.0045a230
jmp 0x4687ec
mov ecx, dword [esp + 8]
call fcn.0045a230
jmp 0x4686db
mov ecx, dword [esp + 0xc]
call fcn.0045a230
jmp 0x4689b6
call fcn.004097f0
mov ecx, dword [esp + 8]
mov edi, eax
jmp 0x468581
xor ebx, ebx
jmp 0x4687d0
mov al, byte [0x514c75]
test al, 1
jne 0x468c80
mov edx, dword [esp + 4]
mov eax, edx
shr eax, 0x15
cmp word [eax + eax + 0x513bd0], 0xfffe
mov ecx, dword [esp + 8]
jne 0x46854f
mov eax, dword [esi + 8]
test byte [esi + 0xf], 8
jne 0x468c8a
lea esi, [eax + 0xc]
mov edi, dword [eax + 0xc]
cmp byte [0x514c77], 1
jne 0x468b5c
mov eax, dword [esi]
mov ecx, dword [esp + 8]
sub eax, dword [ecx + 0xc]
push eax
push 0
push ebx
call fcn.00498980
add esp, 0xc
mov ecx, dword [0x514c60]
and ecx, 1
mov eax, 2
sub eax, ecx
mov edx, dword [esp + 4]
mov ecx, edx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, edx
and ecx, 0xffe00000
not eax
shr edx, 5
and edx, 0xfffc
lock and dword [edx + ecx + 0x4000], eax
mov eax, edi
lock xadd dword [0x514c58], eax
add eax, edi
mov ecx, dword [0x514c5c]
cmp eax, ecx
jbe 0x46862b
mov eax, dword [0x514c70]
mov al, byte [eax + 8]
test al, 1
je 0x46862b
mov al, byte [0x514c74]
test al, al
jne 0x46862b
push 1
call fcn.004dee20
add esp, 4
jmp 0x46862b
xor edx, edx
jmp 0x4685a3
mov ecx, edi
push eax
call fcn.004d8520
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [ebx]
push str.first
call fcn.004d81d0
push edi
call fcn.004054a0
add esp, 4
mov ecx, dword [esp + 0x10]
call fcn.004d84e0
xor ecx, ecx
jmp 0x4687ae
int3
int3
int3
int3
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [ebx]
push str.first
call fcn.004d81d0
push edi
call fcn.004054a0
add esp, 4
mov ecx, dword [esp + 0x14]
call fcn.004d84e0
int3
int3
lea eax, [esi + 0x20]
jmp 0x468933
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi], xmm0
mov eax, ecx
mov ecx, edi
push 0
push dword [eax]
jmp 0x468bfc
call fcn.004dee40
jmp 0x468b0f
add esi, 0x20
jmp 0x468b3b