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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x2490
call fcn.00615550
mov eax, dword [edx + 0xc]
mov esi, ecx
test eax, eax
je 0x521bc3
lock inc dword [eax]
jle 0x52236f
mov ecx, dword [edx + 0x10]
mov ebx, edx
lock inc dword [ecx]
jle 0x52236f
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov edx, dword [ebx]
mov dword [esp + 0x78], edi
lea edi, [esp + 0x240]
mov ecx, edi
add edx, 0x28
call fcn.0048dedc
cmp dword [edi], 0
jne 0x522371
mov edi, dword [esp + 0x244]
mov dl, byte [esp + 0x248]
cmp byte [edi + 0x2e1], 0
je 0x521bcd
mov word [esi], 2
movzx edx, dl
mov ecx, edi
call fcn.004bd038
lea ecx, [esp + 0x6c]
call fcn.00521b0d
jmp 0x52220d
mov word [esi], 6
jmp 0x52220d
mov ecx, dword [ebp + 8]
mov al, byte [edi + 0x2e0]
cmp word [ecx], 0
je 0x521c1c
test al, al
je 0x5220de
mov eax, dword [ecx + 0x14]
movups xmm2, xmmword [ecx + 4]
mov byte [esp + 3], dl
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x14], eax
movzx eax, word [ecx + 0x1c]
mov dword [esp + 8], eax
movzx eax, word [ecx + 0x1e]
mov word [esp + 0xe], ax
xor eax, eax
inc eax
mov dword [esp + 4], eax
jmp 0x521c64
test al, al
mov byte [esp + 3], dl
je 0x522109
movdqu xmm0, xmmword [ecx + 2]
movaps xmm2, xmmword [0x636340]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
pextrw eax, xmm0, 2
shufps xmm0, xmm2, 0xe4
mov dword [esp + 8], eax
xor eax, eax
shufps xmm2, xmm0, 0x24
inc eax
mov dword [esp + 4], eax
movsd xmm0, qword [esp + 0x6c]
movsd xmm1, qword [esp + 0x74]
lea ecx, [edi + 0x78]
mov word [esp + 0x7c], ax
movaps xmmword [esp + 0x40], xmm2
mov dword [esp + 0x2c], edi
movups xmmword [esp + 0x7e], xmm2
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm0
call fcn.00554883
movdqa xmm1, xmmword [esp + 0x40]
test al, al
pshufd xmm0, xmm1, 0x55
movd edi, xmm1
movd ecx, xmm0
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ecx
je 0x521cc7
mov ax, 3
mov dword [esp + 4], eax
jmp 0x522183
mov edx, dword [esp + 0x1c]
pextrw eax, xmm1, 1
test dl, dl
cmove eax, dword [esp + 8]
test ax, ax
je 0x522163
test dl, dl
je 0x522143
cmp dword [esp + 0x7c], 0
je 0x522163
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + 0x24c]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x24]
push dword [eax + 0x28]
call fcn.00527b78
pop ecx
test al, al
je 0x522215
lea eax, [esp + 0x240]
mov dword [esp + 0x250], 0x14
mov dword [esp + 0x248], 0x3b9aca00
lea ecx, [esp + 0xa3]
push eax
push ecx
call fcn.0054cb8f
pop eax
pop ecx
mov eax, dword [0x7f50bc]
cmp eax, 5
jb 0x521e90
mov ecx, dword [0x7f30a8]
lea edx, [esp + 0x90]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx + 0x18]
mov dword [edx], 5
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
call fcn.00513e14
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x28], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x521e90
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0xb8]
movq xmm0, qword [esp + 0x90]
mov dword [ecx + 8], eax
mov eax, dword [0x7f30a8]
movq qword [ecx], xmm0
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x1c
mov dword [esp + 0x64], edx
lea edx, [esp + 0x240]
mov dword [esp + 0x60], ecx
and dword [edx + 0x10], 0
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x130]
call fcn.0052f9c5
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x130]
push 0x76af9c
call fcn.0052f9f9
pop eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa3]
lea edx, [esp + 0xfc]
mov dword [eax], ecx
lea ecx, [esp + 0x130]
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea eax, [esp + 0xd0]
mov dword [ecx + 8], 0x76a254
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0xbc]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xe7]
call fcn.00550f46
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x130]
mov dword [esp + 0x18], eax
lea edx, [eax + 8]
mov eax, dword [edi + 0x24c]
push 0
lea edi, [esp + 0xeb]
push edi
mov edi, dword [esp + 0x34]
push dword [edi + 0xfc]
push dword [edi + 0xf8]
push dword [eax + 0x2c]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.005548dc
add esp, 0x1c
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x130]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x4c]
push dword [esp + 0x64]
lea ecx, [esp + 0x254]
push ecx
call dword [eax + 0xc]
add esp, 0x18
movzx eax, word [esp + 0x240]
cmp ax, 8
jne 0x522222
mov eax, dword [esp + 4]
lea ecx, [esp + 0xfc]
movsd xmm0, qword [esp + 0x7c]
movsd xmm1, qword [esp + 0x84]
lea edx, [esp + 0x240]
movsd xmm2, qword [esp + 0xab]
mov word [ecx], ax
movzx eax, word [esp + 0x8c]
movsd qword [ecx + 2], xmm0
movsd qword [ecx + 0xa], xmm1
movq xmm0, qword [esp + 0xb0]
movq xmm1, qword [esp + 0xa3]
mov word [ecx + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov word [ecx + 0x1c], ax
lea eax, [esp + 0xb8]
movq qword [eax + 0xd], xmm0
movsd qword [eax + 8], xmm2
movq qword [eax], xmm1
movzx eax, word [esp + 0xe]
mov word [ecx + 0x1e], ax
lea eax, [esp + 0xd0]
mov byte [ecx + 0x20], 2
movq qword [eax + 0xd], xmm0
movsd qword [eax + 8], xmm2
movq qword [eax], xmm1
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
call fcn.005ab390
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, ecx
lea ecx, [esp + 0x240]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esp + 0x10]
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x10b]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esp + 0x6c]
call fcn.00554a92
add esp, 0x30
lea ecx, [esp + 0x240]
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx + 0x18]
mov word [esp + 0x28], ax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x30], eax
movzx eax, word [ecx + 0x1a]
mov word [esp + 0x40], ax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x14], eax
movzx eax, word [ecx + 0x34]
mov dword [esp + 8], eax
movzx eax, word [ecx + 0x36]
lea ecx, [esp + 0x1380]
mov word [esp + 0xe], ax
lea eax, [esp + 0x278]
push 0x1108
push eax
push ecx
call fcn.00616830
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
xor eax, 2
mov dword [esp + 0x3c], ecx
or eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
jne 0x52229a
movzx ebx, word [esp + 0x28]
mov dl, byte [esp + 3]
jmp 0x5221bc
movsd xmm1, qword [ecx + 0x10]
movq xmm0, qword [ecx + 0x18]
movsd xmm2, qword [ecx]
movsd qword [esi + 0x10], xmm1
movq xmm1, qword [ecx + 8]
movq qword [esi + 0x18], xmm0
movsd qword [esi], xmm2
movq qword [esi + 8], xmm1
jmp 0x521bab
mov edx, dword [ecx + 0x14]
movzx eax, word [ecx + 2]
movups xmm2, xmmword [ecx + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x14], edx
movzx edx, word [ecx + 0x1c]
movzx ecx, word [ecx + 0x1e]
mov word [esp + 0xe], cx
mov cl, 1
mov dword [esp + 8], edx
mov dword [esp + 0x1c], ecx
jmp 0x521c64
pshufd xmm0, xmm1, 0xff
movd eax, xmm0
pshufd xmm0, xmm1, 0xee
or eax, dword [esp + 0x18]
movd ecx, xmm0
or ecx, edi
or eax, ecx
jne 0x521cf3
movzx eax, word [esp + 0x7c]
mov edx, dword [esp + 0x86]
mov ecx, dword [esp + 0x8a]
mov word [esp + 0x40], ax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
call fcn.004f44d4
mov eax, dword [esp + 0x54]
lock dec dword [eax]
jne 0x5221a2
lea ecx, [esp + 0x54]
call fcn.00574e3e
mov eax, dword [esp + 4]
mov ebx, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dl, byte [esp + 3]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x40]
mov word [esi], bx
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x14]
movzx edx, dl
mov word [esi + 2], ax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov word [esi + 0x1c], cx
movzx ecx, word [esp + 0xe]
mov word [esi + 0x1e], cx
mov ecx, edi
call fcn.004bd038
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ax, 7
mov dword [esp + 4], eax
jmp 0x522187
mov ebx, eax
movzx eax, word [esp + 0x242]
mov ecx, dword [esp + 0x250]
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x244]
mov dword [esp + 0x34], ecx
movzx ecx, word [esp + 0x25e]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x248]
mov word [esp + 0xe], cx
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x254]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x258]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x25c]
mov dword [esp + 8], eax
call fcn.004f44d4
jmp 0x5221a8
lea ecx, [esp + 0x268]
push 0x1108
lea eax, [esp + 0x1384]
push eax
push ecx
call fcn.00616830
add esp, 0xc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x268]
mov dword [ecx - 0x24], eax
mov eax, dword [esp + 4]
mov dword [ecx - 0x28], eax
movzx eax, word [esp + 0x28]
mov word [ecx - 0x20], ax
movzx eax, word [esp + 0x40]
mov word [ecx - 0x1e], ax
mov eax, dword [esp + 0x20]
mov dword [ecx - 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [ecx - 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx - 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [ecx - 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [ecx - 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx - 8], eax
mov eax, dword [esp + 8]
mov word [ecx - 4], ax
movzx eax, word [esp + 0xe]
mov word [ecx - 2], ax
mov eax, dword [edi + 0x2d0]
mov dword [esp + 8], eax
lock inc dword [eax]
jle 0x52236f
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [edi + 0x288]
mov dword [esp + 4], eax
call fcn.004f9bc1
mov ebx, edx
mov edx, dword [esp + 4]
lea ecx, [esi + 4]
push ebx
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call fcn.005207cd
add esp, 0x14
movzx edx, byte [esp + 3]
mov word [esi], 8
jmp 0x522206
ud2
mov eax, dword [esp + 0x244]
mov cl, byte [esp + 0x248]
lea esi, [esp + 0x1380]
mov dword [esi], eax
mov byte [esi + 4], cl
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x7662c8
push 0x765c0c
push esi
call fcn.0062d770