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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov ebx, ecx
lea ecx, [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esi + 0x88], eax
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
xor edi, edi
dec edi
mov dword [esi + 0x18], 0xffffff00
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
test eax, eax
jne 0x505aa5
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x7c], edi
mov dword [esi + 0x78], edi
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x68], xmm0
mov edi, dword [ebx - 0x10]
mov dword [esi + 0x54], edi
xor eax, eax
mov byte [esi + 0x70], al
xorps xmm1, xmm1
movups xmmword [esi + 0x58], xmm1
mov dword [esi + 0x50], 0x62196c
mov dword [esi + 0x74], eax
movdqa xmmword [esi + 0x30], xmm0
mov byte [esi + 0x30], al
mov byte [esi + 0x3c], al
mov dword [esi + 0x40], eax
add edi, 0x50
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x505b36
cmp byte [ebx - 5], 1
je 0x505fa3
cmp byte [ebx - 0x1f], 0
je 0x505fd5
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 0xa8]
dec ecx
cmp byte [ebx - 0x20], 0
mov dword [eax + 0xa8], ecx
je 0x50596e
mov edx, dword [eax + 0x5c]
cmp edx, dword [eax + 0x60]
je 0x50584c
cmp ecx, dword [eax + 0xa0]
jae 0x505979
mov word [eax + 0x78], 0
lea eax, [ebp + 8]
cmp byte [ebx - 0x1d], 1
jne 0x50585f
mov byte [ebx - 0x1d], 0
cmp byte [ebx - 0x1f], 1
jne 0x505869
mov byte [ebx - 0x1f], 0
lea ecx, [ebx - 0x30]
cmp dword [esi + 8], 0
jne 0x5059bf
lea ebx, [esi + 0x50]
push dword [eax + 0xc]
push ebx
push dword [esi + 4]
call fcn.005065a0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea ecx, [esi + 0x30]
call fcn.00506500
mov dword [ebx], 0x62196c
mov ebx, dword [ebx + 0x24]
test bl, 1
jne 0x505f93
lea eax, [esi + 0x78]
cmp ebx, 2
jae 0x505a13
test ebx, ebx
jne 0x505961
lea edi, [esi + 0x68]
mov dword [edi - 0x18], 0x6218bc
mov edx, dword [edi - 4]
mov eax, edx
mov dword [esi + 4], edi
and eax, 1
jne 0x505f5a
mov ebx, edx
shr ebx, 1
mov cl, 1
cmp edx, 2
jae 0x505cc5
lea edx, [ebp + 8]
test eax, eax
jne 0x505f9b
test cl, cl
je 0x505c94
test eax, eax
jne 0x505ffd
mov dword [esi + 0x64], 0
cmp byte [esi + 0x70], 0
jne 0x505e9a
mov edi, dword [esi + 0x58]
test edi, edi
jne 0x505adf
cmp dword [esi + 8], 0
jne 0x505986
mov edi, dword [edx + 4]
test edi, edi
jne 0x505b42
mov dword [edx + 4], 0
test edi, edi
jne 0x505b67
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x505fe4
mov edi, dword [edx]
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.00566245
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esi + 0x74]
call fcn.00536810
jmp 0x5058ba
dec dword [eax + 0xac]
jmp 0x505838
movzx ecx, word [edx + 8]
mov word [eax + 0x78], cx
jmp 0x505852
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50599a
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
mov edi, dword [esi + 0x18]
test edi, edi
sete al
mov ebx, dword [esi + 0x10]
test ebx, ebx
sete cl
or cl, al
je 0x505bd5
test edi, edi
je 0x505921
jmp 0x505bee
mov dword [esi + 0x1c], esp
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx - 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov edx, dword [esi + 0x18]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x10], edx
lea edx, [esi + 0x50]
mov dword [eax], edx
lea edx, [esi + 0x30]
mov dword [eax + 4], edx
call fcn.005080b0
mov ecx, dword [esi + 0xc]
lea eax, [ebp + 8]
mov dword [esi + 0x18], 0
mov esp, dword [esi + 0x1c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jmp 0x505876
shr ebx, 1
shl ebx, 2
xor edi, edi
mov dword [esi + 4], eax
mov ecx, dword [eax + edi]
test ecx, ecx
je 0x506013
xor eax, eax
inc eax
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x506010
mov dword [esi + 0x80], 0x9b
mov al, byte [0x6494e7]
test al, al
mov dword [esi + 0x1c], ecx
jne 0x50605f
mov eax, dword [ecx + 0x48]
lea edx, [eax + 0x10]
cmp byte [eax + 0x14], 0
je 0x505a8d
lea eax, [ecx + 4]
mov dword [esi + 0xc], eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc]
lock dec dword [eax]
je 0x506034
add edi, 4
cmp ebx, edi
mov eax, dword [esi + 4]
jne 0x505a1d
mov ebx, dword [esi + 0x74]
jmp 0x5058b2
mov dword [esi + 0x80], 0x1aa
mov al, byte [0x6495f6]
test al, al
je 0x505a61
jmp 0x506166
mov dword [esi + 0x14], esp
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [esi + 0x18], edx
lea eax, [edx + 0x10]
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x505d5d
mov esp, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], eax
jmp 0x5057b6
mov ebx, dword [esi + 0x5c]
mov eax, edi
cmp ebx, edi
je 0x505b22
mov edx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov eax, ebx
add ebx, 0xfffffff8
je 0x505fce
mov ecx, dword [ebx]
test ecx, ecx
jne 0x505b98
mov dword [ebx], 0
test ecx, ecx
jne 0x505bc6
mov ecx, dword [ebx]
test ecx, ecx
jne 0x506043
cmp ebx, edi
jne 0x505aee
mov eax, dword [esi + 0x58]
mov dword [esi + 0x5c], edi
push eax
call fcn.00562f60
add esp, 4
lea edx, [ebp + 8]
jmp 0x50591b
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x50580a
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x50592c
mov dword [edx + 4], 0
mov al, byte [edi + 9]
and al, 0x7f
cmp al, 2
je 0x505b82
lock dec dword [ebx + 0xc]
je 0x505c0d
lock dec dword [edi + 4]
jne 0x50593b
mov ecx, edi
push 1
call fcn.00507e50
lea edx, [ebp + 8]
jmp 0x50593b
mov eax, dword [ebx + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x505b5d
jmp 0x505f65
mov eax, dword [eax - 4]
mov dword [esi + 4], eax
test eax, eax
je 0x505b03
mov dword [ebx], 0
mov al, byte [ecx + 9]
and al, 0x7f
cmp al, 2
je 0x505f02
mov eax, dword [esi + 4]
lock dec dword [eax + 0xc]
je 0x505def
lock dec dword [ecx + 4]
jne 0x505b11
jmp 0x505e88
mov al, byte [edi + 9]
and al, 0x7f
cmp al, 2
mov edi, ebx
je 0x505ebf
lock dec dword [edi + 0xc]
je 0x505d6b
mov eax, dword [esi + 0x18]
lock dec dword [eax + 4]
jne 0x505921
mov ecx, dword [esi + 0x18]
push 1
call fcn.00507e50
lea edx, [ebp + 8]
jmp 0x505921
lea eax, [ebx + 0x14]
mov dword [esi + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x50614a
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x506158
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x10], eax
pxor xmm0, xmm0
mov eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x30]
movdqu xmmword [ebx + 0x24], xmm0
mov ebx, eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x5060a2
push 0
push dword [esi + 0x18]
push 0x635600
call fcn.0050f990
add esp, 0xc
lea edx, [ebp + 8]
jmp 0x505933
lea edi, [edi + ebx*4]
add edi, 0xfffffffc
neg ebx
test edi, edi
je 0x505fce
mov ecx, dword [edi]
test ecx, ecx
je 0x505cb4
lock dec dword [ecx + 4]
je 0x506287
add edi, 0xfffffffc
inc ebx
jne 0x505c9c
mov eax, dword [esi + 0x64]
and eax, 1
jmp 0x5058f7
shl ebx, 2
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax + ecx]
test ecx, ecx
je 0x505cea
xor eax, eax
inc eax
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x50624a
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x34]
test eax, eax
je 0x505d0e
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x50624d
mov ecx, dword [esi + 0xc]
push edx
push eax
call fcn.0042cc70
mov ecx, dword [esi + 0x54]
cmp byte [ecx + 0xf0], 1
je 0x506268
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [ebp + 8]
je 0x505d3c
lock dec dword [ecx + 4]
je 0x506278
mov ecx, dword [esi + 0x1c]
add ecx, 4
cmp ebx, ecx
jne 0x505cca
mov ecx, dword [esi + 0x64]
mov ebx, ecx
shr ebx, 1
mov eax, ecx
and eax, 1
cmp ecx, 2
setb cl
jmp 0x5058e7
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505ad1
mov ebx, dword [esi + 0x10]
lea edi, [ebx + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x506250
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x50625c
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x14], eax
pxor xmm0, xmm0
mov eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x30]
movdqu xmmword [ebx + 0x24], xmm0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [esi + 4]
cmp edi, ebx
jne 0x5061af
push 0
push dword [esi + 8]
push 0x635600
call fcn.0050f990
add esp, 0xc
lea edx, [ebp + 8]
mov edi, dword [esi + 0x18]
jmp 0x5059b2
mov dword [esi + 0x1c], ecx
lea ecx, [eax + 0x14]
mov dword [esi + 0xc], ecx
push ecx
call edx
test al, al
je 0x506296
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esi + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
call eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5062a4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x20], eax
pxor xmm0, xmm0
movdqu xmmword [ecx + 0x24], xmm0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
mov edx, ecx
cmp ecx, eax
jne 0x5062b2
push 0
push dword [esi + 0x2c]
push 0x635600
call fcn.0050f990
add esp, 0xc
mov edx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ecx, dword [esi + 0x1c]
jmp 0x505b09
push 1
call fcn.00507e50
mov edx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jmp 0x505b11
mov ecx, dword [esi + 0x54]
call fcn.0042ce50
lea edx, [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x505910
lea ecx, [esi + 0x64]
call fcn.005d0180
lea edx, [ebp + 8]
jmp 0x505910
mov eax, dword [edi + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x505be4
add edi, 0x34
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5063a1
mov ebx, dword [esi + 0x10]
mov ecx, dword [ebx + 0x38]
call fcn.00545810
push edi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
jmp 0x505be4
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], ecx
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
mov ecx, dword [esi + 0x1c]
jne 0x505bb9
mov eax, dword [esi + 4]
add eax, 0x34
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5063ad
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
call fcn.00545810
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ecx, dword [esi + 0x1c]
jmp 0x505bb9
mov ecx, dword [esi + 0x68]
mov dword [esi + 4], ecx
jmp 0x5058d5
lea eax, [ebx + 0x34]
mov dword [esi + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x506369
mov ecx, dword [ebx + 0x38]
call fcn.00545810
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
jmp 0x505b5d
mov eax, dword [esi + 0x78]
jmp 0x5058a9
mov edi, dword [esi + 0x68]
jmp 0x5058ef
mov ecx, dword [ebx - 0x10]
call fcn.004f4120
cmp byte [ebx - 0x1f], 0
je 0x505fd5
cmp byte [ebx - 0x20], 0
jne 0x505fbf
mov ecx, dword [ebx - 0x10]
call fcn.00590b00
mov word [ebx - 7], 0
mov byte [ebx - 5], 0
jmp 0x505814
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x505fda
push str....._third_partylibc_srcincludeoptional:795:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x622e92
call fcn.00590170
lock dec dword [ecx + 4]
jne 0x505946
push 1
call fcn.00507e50
lea edx, [ebp + 8]
jmp 0x505946
push dword [esi + 0x68]
call fcn.00562f60
lea edx, [ebp + 8]
add esp, 4
jmp 0x5058ff
int3
xor ecx, ecx
call fcn.00530340
jmp 0x505a7b
int3
int3
int3
int3
int3
int3
int3
mov ecx, dword [esi + 0x1c]
push 1
call fcn.004051d0
jmp 0x505a7b
lock dec dword [ecx + 4]
jne 0x505b1b
push 1
call fcn.00507e50
mov edx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jmp 0x505b1b
movzx eax, al
mov ecx, dword [0x648794]
mov edx, dword [0x648790]
xor edx, dword [esi + 0x1c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], edx
lea ecx, [esi + 0x84]
mov dword [ecx], str.WorkerThreadWaitableEvent::WakeUp
lea edx, [esi + 0x30]
push edx
push 3
push ecx
lea ecx, [esi + 0x80]
push ecx
push eax
call fcn.005be690
mov ecx, dword [esi + 0x1c]
add esp, 0x14
jmp 0x505a55
mov dword [esi + 8], ebx
mov ebx, eax
cmp dword [esi + 0x10], ebx
jb 0x506377
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x50637a
mov eax, ecx
mov edx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [eax + ebx*4], ecx
mov ecx, dword [edx + 4]
call dword [0x63e19c]
push dword [esi + 0x14]
call ecx
add esp, 4
lea ecx, [esi + 0x50]
call fcn.005609a0
inc ebx
cmp ebx, dword [esi + 0x10]
mov eax, 0
cmove ebx, eax
cmp ebx, dword [esi + 8]
jne 0x5060a7
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jbe 0x506417
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 8]
jb 0x50637d
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jg 0x506380
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
lea ebx, [ecx + eax*4]
mov ecx, dword [esi + 8]
shl ecx, 2
shl eax, 2
sub ecx, eax
mov dword [esi + 8], ecx
mov ecx, ebx
call fcn.005609a0
add ebx, 4
add dword [esi + 8], 0xfffffffc
jne 0x506135
jmp 0x505c7a
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505c22
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505c46
movzx eax, al
mov ecx, dword [0x648794]
mov dword [esi + 0xc], edx
mov edx, dword [0x648790]
xor edx, dword [esi + 0xc]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], edx
lea ecx, [esi + 0x84]
mov dword [ecx], str.WaitableEvent::Signal
lea edx, [esi + 0x30]
push edx
push 3
push ecx
lea ecx, [esi + 0x80]
push ecx
push eax
call fcn.005be690
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
add esp, 0x14
jmp 0x505a61
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], edi
jb 0x506383
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x506386
mov ebx, ecx
mov dword [esi + 0x50], ecx
mov eax, dword [esi + 8]
xor ecx, ecx
mov dword [eax + edi*4], ecx
mov ecx, dword [ebx + 4]
call dword [0x63e19c]
push ebx
call ecx
add esp, 4
lea ecx, [esi + 0x50]
call fcn.005609a0
inc edi
cmp edi, dword [esi + 0x14]
mov eax, 0
cmove edi, eax
cmp edi, dword [esi + 0x10]
jne 0x5061b2
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 4]
jbe 0x5063bb
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], eax
jb 0x506389
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], eax
jg 0x50638c
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edi, [ecx + eax*4]
mov ebx, dword [esi + 0x10]
shl ebx, 2
shl eax, 2
sub ebx, eax
mov ecx, edi
call fcn.005609a0
add edi, 4
add ebx, 0xfffffffc
jne 0x506236
jmp 0x505dd2
int3
int3
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505d80
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505da0
add ecx, 0xe8
call fcn.00535400
jmp 0x505d28
push 1
call fcn.004051d0
lea edx, [ebp + 8]
jmp 0x505d3c
push 1
call fcn.004051d0
lea edx, [ebp + 8]
jmp 0x505cb4
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505e03
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505e2b
cmp dword [esi + 0x24], edx
jb 0x50601f
mov ecx, edx
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x506022
mov eax, edx
lea edx, [esi + 0x30]
mov dword [esi + 4], eax
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xc], ecx
xor edx, edx
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
call dword [0x63e19c]
push dword [esi + 4]
call ecx
add esp, 4
lea ecx, [esi + 0x30]
call fcn.005609a0
mov edx, dword [esi + 0xc]
inc edx
cmp edx, dword [esi + 0x24]
mov eax, 0
cmove edx, eax
mov eax, dword [esi + 0x20]
cmp edx, eax
mov ecx, dword [esi + 0x28]
jne 0x5062b2
cmp eax, ecx
jbe 0x506485
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x20]
jb 0x506025
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x20]
jg 0x506028
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x20]
shl eax, 2
shl ecx, 2
sub eax, ecx
mov dword [esi + 0x20], eax
mov ecx, edx
mov dword [esi + 4], edx
call fcn.005609a0
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 4]
add edx, 4
add eax, 0xfffffffc
jne 0x506349
jmp 0x505e68
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505f7a
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505ee6
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x505f38
mov eax, dword [esi + 4]
cmp dword [esi + 0x14], eax
jb 0x506398
jl 0x50639b
je 0x5063ee
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edi, [eax + ecx*4]
mov eax, dword [esi + 0x14]
shl eax, 2
shl ecx, 2
sub eax, ecx
mov dword [esi + 0x14], eax
mov ecx, edi
call fcn.005609a0
add edi, 4
add dword [esi + 0x14], 0xfffffffc
jne 0x5063de
cmp dword [esi + 0x10], 0
js 0x50639e
mov ebx, dword [esi + 0x10]
je 0x505dd2
shl ebx, 2
mov edi, dword [esi + 8]
mov ecx, edi
call fcn.005609a0
add edi, 4
add ebx, 0xfffffffc
jne 0x506403
jmp 0x505dd2
mov eax, dword [esi + 4]
cmp dword [esi + 0x10], eax
jb 0x50638f
jl 0x506392
je 0x506452
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
lea ebx, [eax + ecx*4]
mov eax, dword [esi + 0x10]
shl eax, 2
shl ecx, 2
sub eax, ecx
mov dword [esi + 0x10], eax
mov ecx, ebx
call fcn.005609a0
add ebx, 4
add dword [esi + 0x10], 0xfffffffc
jne 0x506442
cmp dword [esi + 8], 0
js 0x506395
mov ebx, dword [esi + 8]
je 0x505c7a
shl ebx, 2
mov eax, dword [esi + 0x18]
mov ecx, eax
mov dword [esi + 8], eax
call fcn.005609a0
mov eax, dword [esi + 8]
add eax, 4
add ebx, 0xfffffffc
jne 0x50646b
jmp 0x505c7a
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
jb 0x50602b
jl 0x50602e
je 0x5064c6
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x24]
shl eax, 2
shl ecx, 2
sub eax, ecx
mov dword [esi + 0x24], eax
mov ecx, edx
mov dword [esi + 4], edx
call fcn.005609a0
mov edx, dword [esi + 4]
add edx, 4
add dword [esi + 0x24], 0xfffffffc
jne 0x5064b0
cmp dword [esi + 0x20], 0
js 0x506031
mov eax, dword [esi + 0x20]
je 0x505e68
shl eax, 2
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov dword [esi + 4], ecx
call fcn.005609a0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
add ecx, 4
add eax, 0xfffffffc
jne 0x5064df
jmp 0x505e68