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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov ebp, dword [esp + 0x9c]
cmp byte [esp + 0xa0], 0
mov ebx, ecx
je 0x564ce5
mov eax, dword [edx]
test eax, eax
je 0x564ce5
lea esi, [eax + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 8], eax
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x803890]
test eax, 0x7fffffff
jne 0x56501f
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x9c]
mov cl, byte [ecx + 0xc]
test cl, cl
jne 0x5650e3
movzx edi, byte [edx]
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
test edi, edi
je 0x564d90
cmp edi, 1
jne 0x564d94
movzx eax, byte [edx + 1]
shl eax, 8
jmp 0x564dd7
movzx esi, byte [ebp]
test esi, esi
je 0x564cfb
cmp esi, 1
jne 0x564cff
movzx eax, byte [ebp + 1]
shl eax, 8
jmp 0x564d49
mov eax, esi
jmp 0x564d49
call fcn.004ce5c9
mov edi, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x38]
mov eax, dword [eax + 4]
mov edx, dword [eax]
lea ecx, [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push ecx
push ebx
call dword [edx]
mov ebp, dword [esp + 0xac]
add esp, 0x10
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ebx, dword [esp + 4]
xor eax, eax
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
or eax, esi
lea esi, [esp + 0x40]
mov dword [esi - 8], eax
mov dword [esi - 4], edi
lea eax, [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push esi
call dword [ecx]
add esp, 0x10
movq xmm0, qword [esi + 8]
movsd xmm2, qword [esi - 8]
movq xmm1, qword [esi]
movq qword [ebx + 0x10], xmm0
movq qword [ebx + 8], xmm1
movsd qword [ebx], xmm2
mov dword [ebx + 0x18], 0
jmp 0x564f6b
mov eax, edi
jmp 0x564dd7
call fcn.004ce5c9
mov ebp, eax
mov eax, dword [esp + 0x9c]
lea ebx, [esp + 0x38]
mov eax, dword [eax + 4]
mov edx, dword [eax]
lea ecx, [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push ecx
push ebx
call dword [edx]
mov edx, dword [esp + 0xac]
add esp, 0x10
movsd xmm0, qword [ebx]
movq xmm1, qword [ebx + 8]
xor eax, eax
movq qword [ebp + 8], xmm1
movsd qword [ebp], xmm0
mov esi, dword [esp + 8]
or eax, edi
lea edi, [edx + 0x14]
lea ecx, [esi + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x58]
mov dword [ecx - 8], eax
mov dword [ecx - 4], ebp
mov eax, dword [edx + 8]
push dword [edx + 0x10]
push dword [edx + 0xc]
mov dword [esp + 0x14], edi
push edi
push ecx
call dword [eax]
add esp, 0x10
mov edi, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
lea eax, [esp + 0x50]
mov ecx, edi
mov dword [esp], edx
push eax
push ebp
push ebx
call fcn.00554f63
add esp, 0xc
cmp dword [esi + 0x28], 0
je 0x56502b
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp], edx
and edx, eax
shr eax, 0x19
mov dword [esp + 0x30], ecx
movd xmm0, eax
mov dword [esp + 0x1c], eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
movdqu xmmword [esp + 0x68], xmm0
movdqu xmm0, xmmword [ecx + edx]
movdqu xmm1, xmmword [esp + 0x68]
movdqu xmmword [esp + 0x78], xmm0
pcmpeqb xmm0, xmm1
pmovmskb ebp, xmm0
test ebp, ebp
je 0x564ee3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov ebx, dword [eax]
bsf eax, ebp
lea ecx, [esp + 0x50]
add eax, edx
and eax, dword [esp]
neg eax
lea esi, [eax + eax*2]
lea edx, [ebx + esi*8 - 0x18]
call fcn.004ca478
test al, al
je 0x564ed3
lea eax, [ebx + esi*8]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov ecx, esi
mov edx, edi
push dword [eax - 8]
push dword [eax - 0xc]
call fcn.004c9c8f
add esp, 8
test al, al
jne 0x564f3b
mov edx, dword [esp + 0x34]
lea eax, [ebp - 1]
and eax, ebp
test ax, ax
mov ebp, eax
jne 0x564e94
cmp dword [esp + 0x18], 1
movdqu xmm1, xmmword [esp + 0x78]
mov ebx, 1
je 0x564f0c
pmovmskb eax, xmm1
xor ebx, ebx
test eax, eax
setne bl
bsf eax, eax
add eax, edx
and eax, dword [esp]
mov dword [esp + 0x24], eax
pcmpeqd xmm0, xmm0
mov ecx, dword [esp + 0x30]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x564f76
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
lea edx, [edx + eax + 0x10]
add eax, 0x10
and edx, dword [esp]
mov dword [esp + 0x14], eax
jmp 0x564e6d
lea ebx, [esp + 0x64]
mov ecx, dword [ebx - 0x14]
mov edx, dword [ebx - 0x10]
call fcn.004c91e0
mov eax, dword [ebx - 0xc]
push edi
push esi
push ebx
call dword [eax + 8]
add esp, 0xc
mov eax, dword [esp + 4]
mov byte [eax], 3
movzx edx, byte [esp + 0x28]
mov ecx, dword [esp + 0x2c]
call fcn.005aa9d0
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp byte [ecx + eax], 0
js 0x564f8b
movdqa xmm0, xmmword [ecx]
pmovmskb eax, xmm0
bsf eax, eax
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x58]
mov edx, dword [esp + 8]
mov esi, eax
mov ebx, dword [esp + 0x1c]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [edx + 0x20]
movzx ecx, byte [eax + esi]
and ecx, 1
sub dword [edx + 0x28], ecx
lea ecx, [esi - 0x10]
and ecx, dword [edx + 0x24]
mov byte [eax + esi], bl
neg esi
mov byte [ecx + eax + 0x10], bl
inc dword [edx + 0x2c]
lea ecx, [esi + esi*2]
mov ebx, dword [esp + 4]
movsd xmm0, qword [esp + 0x48]
movsd qword [eax + ecx*8 - 8], xmm0
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd qword [eax + ecx*8 - 0x10], xmm1
movsd qword [eax + ecx*8 - 0x18], xmm0
mov ecx, dword [esp + 0x9c]
movzx esi, byte [ecx]
test esi, esi
je 0x56504c
cmp esi, 1
jne 0x565050
movzx eax, byte [ecx + 1]
shl eax, 8
jmp 0x565096
call fcn.0065a0d0
xor al, 1
jmp 0x564ca3
mov ecx, dword [esp + 0x10]
mov edx, edi
push ebp
push ebx
push dword [esp + 8]
mov esi, eax
call fcn.0065870c
mov eax, esi
mov esi, dword [esp + 0x14]
add esp, 0xc
jmp 0x564e2f
mov eax, esi
jmp 0x565096
call fcn.004ce5c9
mov edi, eax
mov eax, dword [esp + 0x9c]
mov ebp, ebx
lea ebx, [esp + 0x38]
mov eax, dword [eax + 4]
mov edx, dword [eax]
lea ecx, [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push ecx
push ebx
call dword [edx]
mov ecx, dword [esp + 0xac]
add esp, 0x10
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ebx, ebp
xor eax, eax
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
or eax, esi
lea esi, [esp + 0x40]
mov edx, dword [esp + 0xc]
mov dword [esi - 8], eax
mov dword [esi - 4], edi
mov eax, dword [ecx + 8]
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push edx
push esi
call dword [eax]
add esp, 0x10
mov ecx, dword [esp + 0x20]
call fcn.005538c3
movsd xmm1, qword [esi]
movq xmm0, qword [esi - 8]
movsd qword [ebx + 8], xmm1
movq xmm1, qword [esi + 8]
movq qword [ebx], xmm0
movq qword [ebx + 0x10], xmm1
mov dword [ebx + 0x18], eax
jmp 0x564f5d
lea edi, [esp + 0x38]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov dword [edi], esi
mov byte [edi + 4], al
push 0x7b7ba4
push 0x7b73ac
push edi
call fcn.006525c0
add esp, 0xc
ud2