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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4d8
mov esi, dword [edx]
mov edi, dword [edx + 4]
mov ebx, dword [edx + 8]
mov eax, esi
xor eax, 3
or eax, edi
call 0x5c986f
pop eax
mov dword [esp + 0x34], eax
jne 0x5c9888
mov dword [ecx + 8], ebx
and dword [ecx + 4], 0
mov dword [ecx], 3
jmp 0x5caba7
mov eax, dword [edx + 0xc8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xcc]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xd4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xd0]
mov dword [esp], eax
mov eax, dword [edx + 0xd8]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xdc]
mov dword [esp + 0xc], eax
push 8
pop edx
mov ecx, 0x80
call fcn.004a3937
xor ecx, ecx
mov dword [esp + 8], eax
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
and dword [eax + 0xc], 0
mov dword [eax + 8], 4
and dword [eax + 0x78], 0
lock inc dword [eax]
jle 0x5cabdf
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x7c]
mov dword [eax - 0xc], esi
mov dword [eax - 8], edi
mov dword [eax - 4], ebx
add ecx, 0xc
push 0xbc
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, ecx
xor eax, 3
or eax, ebx
jne 0x5c993a
xor esi, esi
push 2
pop edi
jmp 0x5c9a85
mov eax, ecx
mov edx, ebx
xor eax, 2
or eax, ebx
jne 0x5c9963
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp]
mov dword [esp + 0x24], ecx
jmp 0x5c9a00
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x3b8]
mov ebx, ecx
mov dword [esp + 0x30], eax
push 0xfffffffffffffffe
pop edx
mov ecx, esi
push 0
push 0xffffffffffffffff
call fcn.004e6de5
pop eax
pop ecx
mov eax, dword [esi + 0x10]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
lea esi, [esp + 0x3d0]
mov dword [esp + 0x178], eax
movsd qword [esp + 0x170], xmm1
movsd qword [esp + 0x168], xmm0
push 0xa
pop ecx
lea edi, [esp + 0x220]
rep movsd dword es:[edi], dword [esi]
push 0x28
pop ecx
push 8
pop edx
call fcn.004a3937
push 0xa
pop ecx
mov dword [esp + 0x18], eax
mov edi, eax
lea esi, [esp + 0x220]
rep movsd dword es:[edi], dword [esi]
mov esi, 0
mov edi, 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0xa0469c
or ebx, dword [esp + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 4]
je 0x5c9a4d
lea ebx, [esp + 0x2e8]
lea ecx, [esp + 0x3b8]
and dword [ebx + 0xc], 0
and dword [ebx + 8], 0
and dword [ebx], 0
mov dword [ebx + 4], 0x18
push eax
call fcn.004e334f
pop eax
lea edi, [esp + 0x220]
lea eax, [esp + 0x3b8]
lea edx, [esp + 0x70]
mov ecx, edi
push eax
push ebx
call fcn.004e5d12
pop eax
pop ecx
mov ecx, edi
call fcn.0057ec2e
mov edi, esi
lea esi, [esp + 0x108]
mov ecx, esi
call fcn.005b8ea3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esi], 1
mov dword [esi + 4], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x3b8]
lea ecx, [esp + 0x70]
push 0xc8
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x178]
movsd xmm0, qword [esp + 0x168]
movsd xmm1, qword [esp + 0x170]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x208], eax
movsd qword [esp + 0x200], xmm1
movsd qword [esp + 0x1f8], xmm0
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e4], ecx
mov ecx, dword [esp]
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], edi
mov dword [esp + 0x1f4], edx
lea edx, [esp + 0x3f8]
mov dword [esp + 0x1f0], ecx
lea ecx, [esp + 0x370]
call fcn.005baa25
lea ecx, [esp + 0x440]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + 8]
lea eax, [edx + 0xe0]
cmp esi, 0x3b9aca00
cmovne eax, ecx
cmove esi, dword [edx + 0xe8]
mov ecx, dword [edx + 0xf0]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x5ca150
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c0]
mov edi, dword [eax - 8]
mov ecx, dword [eax - 4]
mov dword [esp], ecx
push 0xc0
push eax
lea ebx, [esp + 0x78]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x34]
test al, 1
jne 0x5c9c1c
cmp eax, 0xfffffffe
je 0x5ca1a1
lea ecx, [eax + 2]
lock cmpxchg dword [esi + 0x34], ecx
jne 0x5c9b91
mov eax, dword [esp + 0x10]
xor ebx, ebx
inc ebx
mov esi, dword [eax + 8]
lock xadd dword [esi + 0x1c], ebx
lea ecx, [esi + 0x18]
mov edx, ebx
call fcn.005c8572
and ebx, 0xf
mov dword [esp + 4], eax
mov ecx, edi
imul edx, ebx, 0xd0
lea edi, [eax + edx + 8]
mov eax, dword [esp]
mov dword [edi - 8], ecx
mov dword [edi - 4], eax
push 0xc0
lea eax, [esp + 0x74]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, ebx
mov dword [edi + 0xc0], eax
xor eax, eax
add esi, 0x38
inc eax
shl eax, cl
mov ecx, dword [esp + 4]
lock or dword [ecx + 0xd08], eax
mov ecx, esi
call fcn.005ff100
jmp 0x5c9c42
lea esi, [esp + 0x220]
push 0xc0
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp]
mov eax, edi
xor eax, 3
or eax, ecx
jne 0x5ca15f
mov eax, dword [esp + 0x1c]
xor eax, 2
mov dword [esp + 0x24], eax
or eax, dword [esp + 0x14]
je 0x5c9c7d
push 0xc
pop ecx
lea edi, [esp + 0x340]
lea esi, [esp + 0x1e0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
cmp eax, 0x3b9aca00
jne 0x5c9c96
mov dword [esp], 0x3b9aca00
jmp 0x5c9d2e
mov eax, dword [esp + 0x18]
cmp eax, 0x3b9aca00
jne 0x5c9da1
mov edi, 0x3b9aca00
jmp 0x5c9e37
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x220], ecx
mov dword [esp + 0x224], edx
mov dword [esp + 0x228], eax
mov eax, dword [0xa7101c]
cmp eax, 5
jb 0x5c9cfc
lea eax, [esp + 0x220]
lea edx, [esp + 0x168]
lea ecx, [esp + 0x70]
mov dword [edx], eax
xor eax, eax
mov dword [ecx], str.wait_at_most
mov dword [edx + 4], fcn.004489c0
inc eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
push 5
pop edx
push 0xa05290
call fcn.00565e75
pop eax
call fcn.005f2e70
mov esi, ecx
mov ecx, eax
push dword [esp + 0x228]
push dword [esp + 0x228]
push dword [esp + 0x228]
push esi
call fcn.005f3590
add esp, 0x10
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], ecx
call fcn.005dec70
mov ecx, eax
call fcn.005c95cf
lea ecx, [esp + 0x1d8]
add eax, 8
mov dword [ecx], 0x9fe024
mov dword [ecx + 4], eax
mov dword [esp + 0x50], ecx
push 0xc
pop ecx
lea edi, [esp + 0x70]
lea esi, [esp + 0x340]
lea eax, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
lea eax, [esp + 0xa5]
lea ecx, [esp + 0x220]
push 0xc3
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
movzx eax, al
mov eax, dword [eax*4 + 0x5cabec]
add eax, dword [esp + 0x34]
jmp eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x220], ecx
mov dword [esp + 0x224], edx
mov dword [esp + 0x228], eax
mov eax, dword [0xa7101c]
cmp eax, 5
jb 0x5c9e07
lea eax, [esp + 0x220]
lea edx, [esp + 0x168]
lea ecx, [esp + 0x70]
mov dword [edx], eax
xor eax, eax
mov dword [ecx], str.wait_at_most
mov dword [edx + 4], fcn.004489c0
inc eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
push 5
pop edx
push 0xa05290
call fcn.00565e75
pop eax
call fcn.005f2e70
mov esi, ecx
mov ecx, eax
push dword [esp + 0x228]
push dword [esp + 0x228]
push dword [esp + 0x228]
push esi
call fcn.005f3590
add esp, 0x10
mov edi, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005dec70
mov ecx, eax
call fcn.005c95cf
lea ecx, [esp + 0x38]
add eax, 8
lea esi, [esp + 0x2ec]
mov dword [esp + 0xc], edi
mov dword [ecx], 0x9fe024
mov dword [ecx + 4], eax
lea eax, [esp + 0x210]
mov dword [eax], ecx
mov eax, dword [esp + 8]
mov dword [esi - 4], eax
movzx eax, word [esp + 0x64]
mov byte [esi + 4], 0
mov word [esi + 5], ax
mov al, byte [esp + 0x66]
mov byte [esi + 7], al
xor eax, eax
test eax, eax
je 0x5c9e92
cmp eax, 3
je 0x5c9ea0
jmp 0x5ca13e
mov eax, dword [esp + 0x2e8]
mov dword [esp + 0x2ec], eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0x210]
mov edx, esi
push eax
call fcn.005c871a
pop eax
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, ecx
xor eax, 5
or eax, ebx
jne 0x5ca09e
cmp edi, 0x3b9aca00
mov byte [esp + 0x2f0], 3
jne 0x5c9f7a
mov eax, dword [0xa7101c]
cmp eax, 4
jbe 0x5c9f6d
call fcn.005dec70
mov dword [esp + 0x340], eax
lea edx, [esp + 0x220]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], 0xa05164
mov dword [esp + 0x74], 2
and dword [esp + 0x80], 0
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], 0x5deea0
mov dword [esp + 0x220], ecx
lea ecx, [esp + 0x168]
mov dword [esp + 0x224], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 1
lea ecx, [esp + 0x70]
push 5
pop edx
push 0xa051e4
call fcn.00565e75
pop eax
lea ecx, [esp + 0x340]
call fcn.005c224c
call fcn.005def80
push 3
pop eax
jmp 0x5c9e84
call fcn.005f2e70
mov esi, eax
mov eax, edi
mov edi, ecx
mov ebx, edx
mov ecx, esi
push eax
push dword [esp + 8]
push dword [esp + 8]
push edi
call fcn.005c95ea
add esp, 0x10
mov ecx, dword [0xa7101c]
test al, al
jne 0x5ca0e8
cmp ecx, 4
jbe 0x5ca06d
call fcn.005dec70
mov dword [esp + 0x1c8], eax
mov ecx, dword [esp]
mov edx, dword [esp + 4]
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x340], xmm0
push edi
push ebx
push esi
push dword [esp + 0x18]
call fcn.00605599
add esp, 0x10
mov dword [esp + 0x220], eax
lea eax, [esp + 0x340]
mov dword [esp + 0x224], edx
mov dword [esp + 0x228], ecx
mov dword [esp + 0x70], 0xa0524c
mov dword [esp + 0x168], eax
lea eax, [esp + 0x220]
mov dword [esp + 0x16c], 0x5deea0
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], fcn.004489c0
push 2
pop ecx
mov dword [esp + 0x74], ecx
and dword [esp + 0x80], 0
lea eax, [esp + 0x168]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x70]
push 5
pop edx
push 0xa0525c
call fcn.00565e75
pop eax
lea ecx, [esp + 0x1c8]
call fcn.005c224c
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push edi
push ebx
push esi
mov edi, dword [esp + 0x18]
push edi
call fcn.00605599
add esp, 0x10
mov esi, ecx
mov ecx, eax
push esi
call fcn.005df0f0
pop eax
push 3
pop eax
lea esi, [esp + 0x2ec]
jmp 0x5c9e84
mov edx, esi
lea esi, [esp + 0x7c]
mov dword [esp], ecx
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
push 0x15
pop ecx
lea edi, [esp + 0x220]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call fcn.005c9620
mov eax, dword [esp]
xor eax, 4
or eax, ebx
je 0x5cabe3
push 0x15
pop ecx
lea edi, [esp + 0x480]
lea esi, [esp + 0x220]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 4]
jmp 0x5ca131
cmp ecx, 5
jb 0x5ca11b
lea ecx, [esp + 0x70]
mov dword [ecx], str.wait_timeout_exceeded
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str.dest_is_out_of_bounds
and dword [ecx + 0xc], 0
push 5
pop edx
push 0xa05220
call fcn.00565e75
pop eax
lea ecx, [esp + 0x2ec]
call fcn.005c9620
xor ebx, ebx
push 4
pop eax
mov dword [esp], eax
xor edi, edi
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
jmp 0x5caabb
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completion
push 0xa050ec
jmp 0x5ca9bd
push 0x18
pop edx
mov ecx, str.core_thread_exited_early
push 0xa050a8
jmp 0x5ca1a8
mov eax, edi
lea edi, [esp + 0x78]
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
push 0xc0
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [edi + 0xc0], eax
push 0x14
pop edx
mov ecx, str.core_thread_panicked
push 0xa050cc
push 0xa00860
push ebx
call fcn.0063cff0
add esp, 0xc
ud2
push 7
pop ecx
int 0x29
ud2
call fcn.0063d070
pop eax
ud2
call fcn.0063cd70
jmp 0x5ca1ad
call dword [eax + 0xc]
add esp, 4
mov ecx, dword [esp]
mov edx, dword [esp + 0x10]
mov eax, ecx
and al, 7
cmp al, 3
je 0x5caae2
mov eax, ecx
and eax, 7
cmp eax, 4
jne 0x5cab19
test edi, edi
je 0x5cabbc
mov ecx, edi
call fcn.0057a868
push 0x48
lea eax, [esp + 0x374]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edi
and dword [eax + 4], 0
mov dword [eax], 3
mov eax, ecx
jmp 0x5cab86
lock inc dword [edx]
jle 0x5cabdf
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
lea edi, [eax + 0xc]
push 0x15
pop ecx
lea esi, [esp + 0x480]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x64], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x68], ecx
and dword [eax + 0x70], 0
mov dword [eax + 0x78], edx
mov ecx, dword [esp + 0x384]
mov edx, dword [esp + 0x388]
call fcn.004bdbce
mov eax, dword [esp + 0x1e8]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1ec]
or dword [esp + 0x24], ecx
jne 0x5caba7
mov ecx, dword [esp + 0x1c]
xor ecx, 2
or ecx, eax
je 0x5caba7
lea ecx, [esp + 0x1e0]
call fcn.005c9608
mov edx, dword [esp + 0x20]
add edx, 0xf0
mov ecx, edx
call fcn.005c983a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005baa1d
mov ecx, eax
mov ebx, eax
call fcn.0057a868
push 0x12
pop ecx
lea esi, [esp + 0x370]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, ebx
jmp 0x5caafc
ud2
call fcn.006423e4
ud2