Function at 0x140031510
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rsi, qword [0x140414ef8]
xor r9d, r9d
mov qword [rax - 0x20], rbp
mov rdi, rsi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
vmovaps xmmword [rax - 0x58], xmm6
vmovaps xmmword [rax - 0x78], xmm10
mov eax, dword [rsi + 0x48a0]
sub eax, 1
mov qword [rsp + 0x20], r9
mov byte [rsp + 0xc0], r9b
js 0x14003158f
movsxd rdx, eax
mov rax, qword [rsi + 0x48a8]
imul r8, rdx, 0x38
add rax, 8
add r8, rax
nop dword [rax]
mov rbp, qword [r8]
test rbp, rbp
je 0x140031585
test dword [rbp + 0x14], 0x8000000
jne 0x14003164d
sub r8, 0x38
sub rdx, 1
jns 0x140031570
lea r12, [rsi + 0x4a60]
mov rbp, r9
mov rax, qword [r12]
vxorps xmm10, xmm10, xmm10
cmp qword [rsi + 0x4a68], r9
je 0x1400315eb
test rax, rax
jne 0x1400315eb
vcomiss xmm10, dword [rsi + 0x4a94]
vmovss xmm0, dword [rsi + 0x18]
vmovss xmm1, dword [0x1403f5dd8]
vfnmadd213ss xmm1, xmm0, dword [rsi + 0x4a7c]
vmaxss xmm0, xmm1, xmm10
vmovss dword [rsi + 0x4a7c], xmm0
jb 0x1400315eb
vcomiss xmm0, xmm10
ja 0x1400315eb
mov qword [rsi + 0x4a68], r9
mov esi, 0xffffffff
lea rdx, [0x1403f4119]
mov ebx, esi
lea r9, [0x1400edca0]
mov r8b, reloc.WLDAP32.dll_Ordinal_35
cmp r8b, 0x23
jne 0x140031615
cmp byte [rdx], r8b
jne 0x140031615
cmp byte [rdx + 1], r8b
cmove ebx, esi
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r9 + rcx*4]
test r8b, r8b
jne 0x140031603
mov eax, dword [rdi + 8]
not ebx
mov rsi, qword [0x140414ef8]
test al, 2
je 0x140031660
test byte [rdi + 0xc], 1
je 0x140031660
mov r13b, 1
jmp 0x140031663
lea r12, [rsi + 0x4a60]
mov rax, r9
mov qword [r12], r9
jmp 0x14003159d
xor r13b, r13b
and al, 1
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0xc8], eax
test rbp, rbp
jne 0x1400316a2
mov ecx, dword [rdi + 0x4a58]
test ecx, ecx
je 0x1400316a2
mov r8d, 0x1001
mov edx, ebx
call fcn.14002b530
mov rsi, qword [0x140414ef8]
test al, al
je 0x1400316a2
mov r14b, 1
jmp 0x1400316aa
xor r14b, r14b
test rbp, rbp
jne 0x1400316d1
mov ecx, dword [rdi + 0x4a5c]
test ecx, ecx
je 0x1400316d1
mov r8d, 0x1001
mov edx, ebx
call fcn.14002b530
mov rsi, qword [0x140414ef8]
test al, al
je 0x1400316d1
mov r15b, 1
jmp 0x1400316d9
xor r15b, r15b
test rbp, rbp
jne 0x1400316fd
test r13b, r13b
je 0x1400316fd
cmp qword [r12], 0
jne 0x1400316fd
xor r8d, r8d
xor edx, edx
mov ecx, 0x26b
call fcn.140029610
test al, al
je 0x1400316fd
mov r8b, 1
jmp 0x14003170b
xor r8b, r8b
test rbp, rbp
jne 0x140031719
cmp qword [r12], rbp
jne 0x140031719
test r14b, r14b
jne 0x140031715
test r15b, r15b
je 0x140031719
mov al, 1
jmp 0x14003171b
xor al, al
mov byte [rsp + 0xb8], al
test r8b, r8b
jne 0x14003172f
test al, al
je 0x1400318aa
mov rax, qword [rdi + 0x48d8]
test rax, rax
jne 0x1400317b1
mov r9d, dword [rdi + 0x3ea8]
sub r9d, 1
js 0x1400318aa
movsxd rdx, r9d
movsxd rax, dword [rsi + 0x3ea8]
cmp rdx, rax
jge 0x1400318aa
cmp rdx, 0xffffffff80000001
je 0x1400318aa
mov rax, qword [rsi + 0x3eb0]
mov rcx, qword [rax + rdx*8]
cmp byte [rcx + 0xb7], 0
je 0x140031792
cmp rcx, qword [rcx + 0x378]
jne 0x140031792
test dword [rcx + 0x14], 0x80000
je 0x1400317a1
dec r9d
sub rdx, 1
js 0x1400318aa
jmp 0x14003174f
movsxd rcx, r9d
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400318aa
mov rax, qword [rax + 0x378]
mov qword [rdi + 0x4a68], rax
mov qword [r12], rax
movzx eax, byte [rsp + 0xb8]
xor eax, 1
mov qword [rdi + 0x4a78], 0
add eax, 2
mov qword [rdi + 0x4a8c], 0
mov qword [rdi + 0x4a84], 0
mov byte [rdi + 0x4a80], r8b
mov dword [rdi + 0x490c], eax
test r14b, r14b
jne 0x14003180d
test r15b, r15b
je 0x1400318aa
mov eax, dword [rdi + 0x4a5c]
or eax, dword [rdi + 0x4a58]
bt eax, 0xc
jae 0x140031834
mov dword [rsi + 0x4604], ebx
mov dword [rsi + 0x4600], ebx
mov word [rsi + 0x4608], 0
bt eax, 0xd
jae 0x14003184f
mov dword [rsi + 0x4610], ebx
mov dword [rsi + 0x460c], ebx
mov word [rsi + 0x4614], 0
bt eax, 0xe
jae 0x14003186a
mov dword [rsi + 0x461c], ebx
mov dword [rsi + 0x4618], ebx
mov word [rsi + 0x4620], 0
bt eax, 0xf
jae 0x140031885
mov dword [rsi + 0x4628], ebx
mov dword [rsi + 0x4624], ebx
mov word [rsi + 0x462c], 0
bt eax, 0xb
jae 0x1400318aa
cmp byte [rsi + 0x79], 0
mov eax, 0x4600
mov ecx, 0x4624
cmovne eax, ecx
mov dword [rax + rsi + 4], ebx
mov dword [rax + rsi], ebx
mov word [rax + rsi + 8], 0
vmovss xmm0, dword [rdi + 0x4a78]
mov rbp, qword [r12]
mov r13d, 1
vmovaps xmmword [rsp + 0x40], xmm7
mov rdx, rbp
vaddss xmm1, xmm0, dword [rdi + 0x18]
vmovss xmm6, dword [0x1403f5ce8]
vmovss dword [rdi + 0x4a78], xmm1
test rbp, rbp
je 0x1400319cb
cmp dword [rdi + 0x490c], 3
jne 0x1400319d4
vsubss xmm0, xmm1, dword [0x1403f5c64]
vmulss xmm1, xmm0, dword [0x1403f5dfc]
vcomiss xmm1, xmm10
jae 0x14003190e
vmovaps xmm2, xmm10
jmp 0x140031912
vminss xmm2, xmm1, xmm6
vmovss xmm0, dword [rdi + 0x4a7c]
vmaxss xmm7, xmm0, xmm2
mov r8d, r13d
xor edx, edx
mov ecx, 0x273
vmovss dword [rdi + 0x4a7c], xmm7
call fcn.140029610
mov r8d, r13d
movzx ebx, al
xor edx, edx
mov ecx, 0x274
call fcn.140029610
movzx ecx, al
mov eax, ebx
sub eax, ecx
je 0x140031969
mov ecx, eax
call fcn.1400313c0
mov rbp, qword [r12]
mov dword [rdi + 0x4a7c], 0x3f800000
vmovaps xmm7, xmm6
mov edx, 0x26b
mov rcx, rsi
call fcn.140028e60
cmp byte [rax], 0
je 0x14003198b
cmp byte [rsi + 0x44ac], 0
mov rdx, qword [r12]
mov rbp, rdx
je 0x1400319cb
vcomiss xmm7, xmm6
setb al
and byte [rdi + 0x4a80], al
je 0x1400319b9
cmp qword [rdi + 0x48d8], 0
je 0x1400319be
mov byte [rsp + 0xc0], r13b
mov qword [r12], 0
jmp 0x140031a81
mov qword [rsp + 0x20], rbp
mov qword [r12], 0
jmp 0x140031a81
test rdx, rdx
je 0x140031a81
cmp dword [rdi + 0x490c], 2
jne 0x140031a81
mov eax, dword [rdi + 0x4a58]
mov ecx, 0xf800
vmovss xmm0, dword [rdi + 0x4a78]
vsubss xmm1, xmm0, dword [0x1403f5c64]
vmulss xmm2, xmm1, dword [0x1403f5dfc]
test eax, eax
mov r8d, 0xf800
cmovne ecx, eax
mov eax, dword [rdi + 0x4a5c]
test eax, eax
cmovne r8d, eax
and r8d, ecx
mov ecx, r8d
and ecx, 0xf800
vcomiss xmm2, xmm10
jae 0x140031a35
vmovaps xmm1, xmm10
jmp 0x140031a39
vminss xmm1, xmm2, xmm6
vmovss xmm0, dword [rdi + 0x4a7c]
vmaxss xmm1, xmm0, xmm1
vmovss dword [rdi + 0x4a7c], xmm1
test r14b, r14b
jne 0x140031a6e
test r15b, r15b
jne 0x140031a6e
mov eax, dword [rdi + 0xe28]
and eax, r8d
and eax, 0xf800
cmp eax, ecx
je 0x140031a81
mov rbx, rdx
jmp 0x140031a86
movzx ecx, r14b
xor ecx, r13d
lea ecx, [rcx*2 - 1]
call fcn.1400313c0
mov rbx, qword [rsp + 0x20]
cmp byte [rsp + 0xc8], 0
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
je 0x140031ac9
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0x4000
call fcn.140029610
test al, al
je 0x140031ac9
mov byte [rdi + 0x4a80], r13b
mov dword [rdi + 0x490c], 2
cmp byte [rdi + 0x4a80], 0
je 0x140031c09
cmp dword [rdi + 0x490c], 2
jne 0x140031c09
cmp dword [rdi + 0x37c0], 0
jg 0x140031b10
cmp byte [rdi + 0xe24], 0
jne 0x140031b10
cmp byte [rdi + 0xe25], 0
jne 0x140031b10
cmp byte [rdi + 0xe27], 0
jne 0x140031b10
cmp dword [rsi + 0x4618], 0xffffffff
je 0x140031b17
mov byte [rdi + 0x4a80], 0
mov edx, 0x4000
mov rcx, rsi
call fcn.140028e60
vcomiss xmm10, dword [rax + 8]
ja 0x140031be7
cmp byte [rax], 0
jne 0x140031be7
cmp byte [rsi + 0x4620], 0
jne 0x140031be7
cmp byte [rdi + 0x4a80], 0
je 0x140031be7
cmp dword [rdi + 0x3f58], 0
je 0x140031b68
cmp byte [rdi + 0x3f65], 0
je 0x140031be7
lea rax, [rdi + 0x36f0]
test rax, rax
jne 0x140031b7b
lea rax, [rsi + 0xe08]
vmovss xmm0, dword [rax]
vmovss xmm1, dword [0x1403f5fac]
vcomiss xmm0, xmm1
vmovss xmm2, dword [rax + 4]
jb 0x140031b9e
vcomiss xmm2, xmm1
jb 0x140031b9e
movzx ecx, r13b
jmp 0x140031ba0
xor cl, cl
lea rax, [rdi + 0xe08]
test rax, rax
jne 0x140031bb3
lea rax, [rsi + 0xe08]
vmovss xmm0, dword [rax]
vcomiss xmm0, xmm1
vmovss xmm2, dword [rax + 4]
jb 0x140031bce
vcomiss xmm2, xmm1
jb 0x140031bce
movzx eax, r13b
jmp 0x140031bd0
xor al, al
mov edx, dword [rsp + 0xc0]
cmp al, cl
movzx edx, dl
cmove edx, r13d
mov dword [rsp + 0xc0], edx
mov edx, 0x4000
mov rcx, rsi
call fcn.140028e60
cmp byte [rax], 0
je 0x140031c02
cmp byte [rsi + 0x4620], 0
je 0x140031c09
mov byte [rdi + 0x4a80], 0
mov rax, qword [r12]
test rax, rax
je 0x140031da4
test byte [rax + 0x14], 4
jne 0x140031da4
mov eax, dword [rdi + 0x490c]
cmp eax, 2
jne 0x140031c6c
cmp byte [rdi + 0xe25], 0
jne 0x140031da4
mov edx, 0x203
mov rcx, rsi
call fcn.140028e60
mov edx, 0x201
mov rcx, rsi
mov r10, rax
call fcn.140028e60
mov edx, 0x202
mov rcx, rsi
mov r9, rax
call fcn.140028e60
mov edx, 0x204
jmp 0x140031ca7
cmp eax, 3
jne 0x140031da4
mov edx, 0x27b
mov rcx, rsi
call fcn.140028e60
mov edx, 0x279
mov rcx, rsi
mov r10, rax
call fcn.140028e60
mov edx, 0x27a
mov rcx, rsi
mov r9, rax
call fcn.140028e60
mov edx, 0x27c
vmovss xmm0, dword [rax + 0xc]
vsubss xmm6, xmm0, dword [r9 + 0xc]
mov rcx, rsi
call fcn.140028e60
vucomiss xmm6, xmm10
vmovss xmm0, dword [rax + 0xc]
vsubss xmm4, xmm0, dword [r10 + 0xc]
jne 0x140031cd7
vucomiss xmm4, xmm10
je 0x140031da4
vmovss xmm0, dword [rdi + 0x74]
vminss xmm1, xmm0, dword [rdi + 0x70]
vmulss xmm2, xmm1, dword [rdi + 0x18]
vmulss xmm3, xmm2, dword [0x1403f5f24]
vmovaps xmm1, xmm6
vfmadd213ss xmm1, xmm3, dword [rdi + 0x4a84]
vcvttss2si eax, xmm1
vmovaps xmm0, xmm4
vfmadd213ss xmm0, xmm3, dword [rdi + 0x4a88]
vxorps xmm7, xmm7, xmm7
vcvtsi2ss xmm7, xmm7, eax
vucomiss xmm7, xmm10
vcvttss2si eax, xmm0
vxorps xmm6, xmm6, xmm6
vcvtsi2ss xmm6, xmm6, eax
vmovss dword [rdi + 0x4a84], xmm1
vmovss dword [rdi + 0x4a88], xmm0
mov byte [rdi + 0x4917], r13b
jne 0x140031d45
vucomiss xmm6, xmm10
je 0x140031da4
mov rax, qword [r12]
lea rdx, [rsp + 0xb0]
mov r8d, r13d
mov rcx, qword [rax + 0x378]
vaddss xmm0, xmm7, dword [rcx + 0x20]
vaddss xmm1, xmm6, dword [rcx + 0x24]
vmovss dword [rsp + 0xb0], xmm0
vmovss dword [rsp + 0xb4], xmm1
call fcn.1400289e0
vmovss xmm0, dword [rdi + 0x4a84]
vmovss xmm2, dword [rdi + 0x4a88]
vsubss xmm1, xmm0, xmm7
vsubss xmm0, xmm2, xmm6
vmovss dword [rdi + 0x4a88], xmm0
vmovss dword [rdi + 0x4a84], xmm1
vmovaps xmm10, xmmword [rsp + 0x30]
vmovaps xmm7, xmmword [rsp + 0x40]
vmovaps xmm6, xmmword [rsp + 0x50]
test rbx, rbx
je 0x140031e37
mov rax, qword [rdi + 0x48d8]
test rax, rax
je 0x140031dd0
cmp rbx, qword [rax + 0x378]
je 0x140031e2f
xor edx, edx
xor ecx, ecx
call fcn.14001fa50
mov rax, qword [0x140414ef8]
xor edx, edx
mov rcx, rbx
mov word [rax + 0x4915], r13w
mov byte [rax + 0x4917], r13b
call fcn.14002cc80
mov edx, r13d
mov rcx, rbx
call fcn.140028240
mov rbx, qword [rdi + 0x48d8]
cmp dword [rbx + 0x3a0], 0
jne 0x140031e1e
xor edx, edx
mov rcx, rbx
call fcn.14002ea40
cmp word [rbx + 0x15e], 2
jne 0x140031e2f
mov dword [rdi + 0x4910], r13d
mov qword [r12], 0
cmp byte [rsp + 0xc0], 0
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
je 0x140031f0e
cmp qword [rdi + 0x48d8], 0
je 0x140031f0e
xor edx, edx
xor ecx, ecx
call fcn.14001fa50
mov rsi, qword [rdi + 0x48d8]
mov rbx, rsi
lea rcx, [rsi + 0x368]
cmp qword [rcx], 0
je 0x140031ebe
test byte [rbx + 0x15c], 2
jne 0x140031ea8
mov eax, dword [rbx + 0x14]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140031ea8
mov rbx, qword [rcx]
lea rcx, [rbx + 0x368]
cmp qword [rcx], 0
jne 0x140031e80
cmp rbx, rsi
je 0x140031ebe
xor edx, edx
mov rcx, rbx
call fcn.140028240
mov qword [rbx + 0x398], rsi
mov rax, qword [rdi + 0x48d8]
test byte [rax + 0x15c], 2
je 0x140031ed9
mov ecx, dword [rdi + 0x4910]
xor ecx, 1
jmp 0x140031edb
xor ecx, ecx
cmp ecx, dword [rdi + 0x4910]
je 0x140031f0e
cmp ecx, 1
jne 0x140031ef2
mov dword [rax + 0x3a4], 0
call fcn.14002e910
mov rax, qword [0x140414ef8]
mov word [rax + 0x4915], 1
mov byte [rax + 0x4917], 1
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret