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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov ebx, ecx
mov ecx, dword [ebp + 8]
test edx, edx
je 0x5cfd98
cmp edx, 1
jne 0x5d0024
mov eax, dword [ecx + 0x40]
mov esi, dword [ecx + 0x44]
test al, 1
jne 0x5d016b
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 8], 0
mov edi, eax
shr edi, 1
and edi, 0x1f
cmp edi, 0x1f
jne 0x5cfcad
cmp ebx, 6
ja 0x5cfc8f
xor eax, eax
inc eax
mov edx, eax
mov ecx, ebx
pause
inc eax
shr edx, cl
test edx, edx
je 0x5cfc80
jmp 0x5cfc95
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, dword [ebp + 8]
cmp ebx, 0xb
adc ebx, 0
mov eax, dword [edx + 0x40]
mov esi, dword [edx + 0x44]
test al, 1
je 0x5cfc6c
jmp 0x5d0105
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
cmp edi, 0x1e
jne 0x5cfcee
test eax, eax
jne 0x5cfcee
mov al, byte [0x803894]
mov ecx, 0x368
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5d05a7
push 0x368
push 0
mov dword [esp + 0x10], eax
push eax
call fcn.0064ad90
add esp, 0xc
test esi, esi
jne 0x5cfd2f
mov al, byte [0x803894]
mov ecx, 0x368
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5d05a7
mov esi, eax
push 0x368
push 0
push eax
call fcn.0064ad90
add esp, 0xc
mov edx, dword [ebp + 8]
xor eax, eax
lock cmpxchg dword [edx + 0x44], esi
jne 0x5cfd72
mov dword [edx + 4], esi
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 2]
lock cmpxchg dword [edx + 0x40], ecx
je 0x5d04ab
mov esi, dword [edx + 0x44]
cmp ebx, 6
mov ecx, 6
mov edi, eax
cmovb ecx, ebx
xor eax, eax
inc eax
mov edx, eax
pause
inc eax
shr edx, cl
test edx, edx
je 0x5cfd57
mov edx, dword [ebp + 8]
cmp ebx, 7
mov eax, edi
adc ebx, 0
jmp 0x5cfca4
mov eax, dword [esp + 8]
test eax, eax
je 0x5cfd8c
push eax
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov dword [esp + 8], esi
jmp 0x5cfca1
lea eax, [esp + 0x10]
lea esi, [esp + 0xb8]
xor edx, edx
lea edi, [esp + 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, 0x3b9aca00
mov dword [esi + 8], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], edx
lea edx, [esp + 0x90]
mov dword [edi + 8], eax
mov dword [edx], esi
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x88]
test edx, ecx
jne 0x5d00f4
xor ebx, ebx
mov dword [esp + 0x88], edi
dec edx
mov dword [esp + 8], ebx
mov ebx, dword [edi + 0xd4]
xor esi, esi
and edx, ecx
sub esi, dword [edi + 0x84]
lea eax, [edx + edx*8]
lea eax, [eax + eax*2]
add eax, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + eax + 0x18]
cmp ecx, eax
jne 0x5cfe41
inc edx
cmp edx, dword [edi + 0x80]
jae 0x5cfe83
lea esi, [ecx + 1]
jmp 0x5cfe8b
add eax, dword [edi + 0x84]
lea edx, [ecx + 1]
cmp eax, edx
jne 0x5cfec1
mfence
mov eax, dword [edi]
mov ebx, dword [esp + 8]
add eax, dword [edi + 0x84]
cmp eax, ecx
je 0x5cff05
cmp ebx, 6
mov ecx, 6
cmovb ecx, ebx
xor eax, eax
inc eax
mov edx, eax
pause
inc eax
shr edx, cl
test edx, edx
je 0x5cfe73
cmp ebx, 7
jmp 0x5cfee5
and esi, ecx
add esi, dword [edi + 0x84]
mov eax, ecx
mov ebx, dword [esp + 8]
lock cmpxchg dword [edi + 0x40], esi
je 0x5d01e7
cmp ebx, 6
mov ecx, 6
cmovb ecx, ebx
xor edx, edx
inc edx
mov esi, edx
pause
inc edx
shr esi, cl
test esi, esi
je 0x5cfeaa
mov edi, dword [esp + 0x88]
cmp ebx, 7
jmp 0x5cfee8
mov ebx, dword [esp + 8]
cmp ebx, 6
ja 0x5cfedc
xor eax, eax
inc eax
mov edx, eax
mov ecx, ebx
pause
inc eax
shr edx, cl
test edx, edx
je 0x5cfecd
jmp 0x5cfee2
call dword [sym.imp.kernel32.dll_SwitchToThread]
cmp ebx, 0xb
mov eax, dword [edi + 0x40]
setb cl
mov edx, dword [edi + 0x88]
movzx ecx, cl
add ebx, ecx
mov ecx, eax
test edx, eax
je 0x5cfe06
jmp 0x5d00f4
mov ebx, dword [esp + 0x30]
cmp ebx, 0xb
jne 0x5cffde
mov eax, dword [esp + 0x60]
cmp eax, 0x3b9aca00
je 0x5cff5c
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.005a62b0
cmp eax, esi
mov edi, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], esi
sbb edx, ebx
mov edx, dword [esp + 8]
jb 0x5cff5c
xor eax, dword [esp + 0xc]
xor edi, ebx
mov ecx, ebx
or edi, eax
jne 0x5d050d
cmp dword [esp + 0x34], edx
jae 0x5d050d
lea eax, [esp + 0x90]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], eax
call fcn.004aeb14
test eax, eax
je 0x5d0005
mov edi, dword [eax]
mov esi, eax
mov dword [eax], 0
test edi, edi
je 0x5d0005
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.005d0bdf
mov eax, dword [esi]
mov dword [esi], edi
test eax, eax
mov dword [esp + 0x38], eax
je 0x5cffd1
lock dec dword [eax]
jne 0x5cffd1
lea ecx, [esp + 0x38]
call fcn.004ae9ee
mov dword [esp + 0x30], 0
jmp 0x5cfddd
cmp ebx, 6
ja 0x5cfff5
xor eax, eax
inc eax
mov edx, eax
mov ecx, ebx
pause
inc eax
shr edx, cl
test edx, edx
je 0x5cffe6
jmp 0x5cfffb
call dword [sym.imp.kernel32.dll_SwitchToThread]
inc ebx
mov dword [esp + 0x30], ebx
jmp 0x5cfddd
call fcn.00652908
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x38], eax
call fcn.005d0bdf
lock dec dword [esi]
je 0x5cffc8
jmp 0x5cffd1
add ecx, 8
mov eax, 0x3b9aca00
xor edi, edi
lea esi, [esp + 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 0x8c], ecx
mov edx, ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x98], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x2c], edi
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x30], edi
mov dword [esp + 0x10], ecx
mov ecx, esi
call fcn.005f8836
cmp dword [esi], edi
jne 0x5d0537
mov edi, dword [esp + 0x5c]
mov bl, byte [esp + 0x60]
lea esi, [esp + 0x38]
mov ecx, esi
lea edx, [edi + 0x20]
call fcn.0041ed14
cmp dword [esi], 0
je 0x5d019f
mov eax, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x38]
movzx edx, bl
mov ecx, edi
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x60], eax
mov dword [esp + 0xe8], eax
call fcn.005aa9d0
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x5d0287
mov ecx, dword [ebp + 0xc]
movsd xmm0, qword [ecx + 0x10]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov byte [eax + 0x18], 1
mov ebx, dword [esp + 4]
jmp 0x5d0299
mov ecx, dword [esp + 0x54]
xor eax, eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
jmp 0x5d01fa
xor edi, edi
xor esi, esi
mov eax, dword [esp + 8]
mov ebx, dword [esp + 4]
test eax, eax
je 0x5d0127
push eax
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp + 8]
test esi, esi
je 0x5d016b
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi*8]
sub edx, 0xffffff80
lea eax, [eax + eax*2]
add eax, edi
movsd xmm0, qword [ecx + 0x10]
movsd qword [esi + eax + 0x14], xmm0
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov ecx, edx
movsd qword [esi + eax + 0xc], xmm1
movsd qword [esi + eax + 4], xmm0
lock or dword [esi + eax + 0x1c], 1
call fcn.005d0a9b
jmp 0x5d0466
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 4
je 0x5d0466
mov dword [esp + 0x18], eax
movsd xmm0, qword [ecx + 4]
movsd xmm1, qword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
movsd qword [esp + 0x1c], xmm0
movsd qword [esp + 0x24], xmm1
mov dword [esp + 0x2c], eax
jmp 0x5d0444
cmp byte [edi + 0x38], 0
je 0x5d02bc
mov eax, dword [ebp + 0xc]
movzx edx, bl
mov ecx, edi
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm2
mov dword [esp + 0x14], 1
call fcn.005aa9d0
mov ebx, dword [esp + 4]
jmp 0x5d0433
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x54]
inc ecx
add edx, dword [esp + 0x34]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x90]
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x5d024a
movsd xmm0, qword [esi + 0x10]
mov ecx, dword [esp + 0x10]
movsd qword [edx + 0x10], xmm0
add ecx, 0xb0
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
mov eax, dword [eax + 0x24]
mov dword [edx + 0x18], eax
call fcn.005d0a9b
mov eax, 2
mov ebx, dword [esp + 4]
jmp 0x5d0437
mov ecx, dword [esi]
mov ebx, dword [esp + 4]
mov eax, 2
cmp ecx, 4
je 0x5d0437
mov eax, dword [esi + 0x14]
movsd xmm0, qword [esi + 4]
movsd xmm1, qword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
xor eax, eax
movsd qword [esp + 0x1c], xmm0
movsd qword [esp + 0x24], xmm1
inc eax
jmp 0x5d0437
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 4
jne 0x5d0578
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], 2
lock dec dword [eax]
jne 0x5d0433
lea ecx, [esp + 0x58]
call fcn.004ae9ee
jmp 0x5d0433
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esp + 0x10]
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x60], xmm1
movsd qword [esp + 0x58], xmm2
mov dword [esp + 0x70], edi
mov byte [esp + 0x74], bl
mov dword [esp + 0x78], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], eax
call fcn.004aeb14
test eax, eax
je 0x5d0474
mov ebx, dword [eax]
mov edi, eax
mov dword [eax], 0
test ebx, ebx
je 0x5d04d8
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
mov dword [eax], ebx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
push eax
call fcn.005d05cc
add esp, 4
mov eax, dword [edi]
mov dword [edi], ebx
test eax, eax
mov dword [esp + 0x38], eax
je 0x5d0369
lock dec dword [eax]
jne 0x5d0369
lea ecx, [esp + 0x38]
call fcn.004ae9ee
movsd xmm1, qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
mov eax, dword [esp + 0x2c]
movsd qword [esp + 0x40], xmm1
movsd xmm1, qword [esp + 0x24]
movsd qword [esp + 0x38], xmm0
mov dword [esp + 0x50], eax
movsd qword [esp + 0x48], xmm1
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x3c]
movsd xmm2, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x4c]
cmp eax, 3
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xa8], xmm2
movsd qword [esp + 0xb0], xmm1
je 0x5d0474
movsd xmm1, qword [esp + 0xa8]
mov dword [esp + 0x14], eax
movsd xmm0, qword [esp + 0xa0]
mov ebx, dword [esp + 4]
movsd qword [esp + 0x20], xmm1
movsd xmm1, qword [esp + 0xb0]
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x28], xmm1
mov eax, dword [esp + 0x58]
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x5d0426
test eax, eax
je 0x5d0426
cmp eax, 4
je 0x5d0433
lea eax, [esp + 0x5c]
push eax
call fcn.0042fae4
add esp, 4
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
call fcn.005aa9d0
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x5d0466
test eax, eax
je 0x5d0567
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
movsd qword [ebx + 0x10], xmm0
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm2
jmp 0x5d046c
mov dword [ebx], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00652908
mov edi, eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push esi
call fcn.005d05cc
add esp, 4
lock dec dword [edi]
mov ebx, dword [esp + 4]
jne 0x5d0404
lea ecx, [esp + 0x38]
call fcn.004ae9ee
jmp 0x5d0404
cmp edi, 0x1e
jne 0x5d0109
mov eax, dword [esp + 8]
mov ebx, dword [esp + 4]
test eax, eax
je 0x5d05b8
mov dword [edx + 0x44], eax
mov edi, 0x1e
lock add dword [edx + 0x40], 2
mov dword [esi], eax
jmp 0x5d0127
call fcn.00652908
lea ebx, [esp + 0x14]
mov edi, eax
lea ecx, [esp + 0x38]
lea edx, [esp + 0x58]
mov dword [ebx], edi
push ebx
call fcn.005d05cc
add esp, 4
lock dec dword [edi]
jne 0x5d0395
lea ecx, [esp + 0x14]
call fcn.004ae9ee
jmp 0x5d0395
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm2
jmp 0x5d0241
mov eax, dword [esp + 0x5c]
mov cl, byte [esp + 0x60]
lea esi, [esp + 0x14]
mov edx, 0x2b
mov dword [esi], eax
mov byte [esi + 4], cl
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x7c4080
push 0x7c4b38
push esi
call fcn.006525c0
add esp, 0xc
ud2
mov ecx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
mov edx, 0x28
push 0x7c3e28
jmp 0x5d059d
jae 0x5d057f
cmp eax, 1
jne 0x5d058e
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call fcn.0042fae4
add esp, 4
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7c4090
call fcn.006522d0
add esp, 4
ud2
mov ecx, 4
mov edx, 0x368
call fcn.00651860
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7c3f40
jmp 0x5d059d