Function at 0x140048870
Capabilities:
Hash data with crc32

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdi, qword [0x140220168]
xor r9d, r9d
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x58], r12
movaps xmmword [rsp + 0x20], xmm7
mov eax, dword [rdi + 0x48c0]
sub eax, 1
mov qword [rsp + 0x88], r9
mov byte [rsp + 0x80], r9b
js 0x1400488e3
mov r8, qword [rdi + 0x48c8]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
mov rsi, qword [r8]
test rsi, rsi
je 0x1400488d9
test dword [rsi + 0x14], 0x8000000
jne 0x1400489a7
sub r8, 0x38
sub rdx, 1
jns 0x1400488c4
mov rsi, r9
xorps xmm7, xmm7
cmp qword [rdi + 0x4af0], r9
je 0x140048935
cmp qword [rdi + 0x4ae8], r9
jne 0x140048935
comiss xmm7, dword [rdi + 0x4b1c]
movss xmm0, dword [rdi + 0x18]
movss xmm1, dword [rdi + 0x4b04]
mulss xmm0, dword [0x1401a5984]
subss xmm1, xmm0
maxss xmm1, xmm7
movss dword [rdi + 0x4b04], xmm1
jb 0x140048935
comiss xmm7, xmm1
jb 0x140048935
mov qword [rdi + 0x4af0], r9
mov ebp, 0xffffffff
lea rdx, [0x14019c689]
mov ebx, ebp
lea r9, [0x140195b20]
mov r8b, reloc.WLDAP32.dll_Ordinal_35
nop dword [rax]
cmp r8b, 0x23
jne 0x140048962
cmp byte [rdx], r8b
jne 0x140048962
cmp byte [rdx + 1], r8b
cmove ebx, ebp
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 0x140048950
mov r12d, dword [rdi + 8]
not ebx
mov rbp, qword [rsp + 0x88]
movzx eax, r12b
mov qword [rsp + 0x48], r14
test r12b, 2
je 0x1400489b3
test byte [rdi + 0xc], 1
je 0x1400489b3
mov r14b, 1
jmp 0x1400489ba
mov qword [rdi + 0x4ae8], r9
jmp 0x1400488e6
xor r14b, r14b
movzx r12d, al
and r12b, 1
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x40], r15
test rsi, rsi
jne 0x1400489e7
mov ecx, dword [rdi + 0x4ae0]
test ecx, ecx
je 0x1400489e7
mov edx, ebx
call fcn.140043010
test al, al
je 0x1400489e7
mov r15b, 1
jmp 0x1400489ef
xor r15b, r15b
test rsi, rsi
jne 0x140048a09
mov ecx, dword [rdi + 0x4ae4]
test ecx, ecx
je 0x140048a09
mov edx, ebx
call fcn.140043010
test al, al
je 0x140048a09
mov r13b, 1
jmp 0x140048a11
xor r13b, r13b
test rsi, rsi
jne 0x140048a37
test r14b, r14b
je 0x140048a37
cmp qword [rdi + 0x4ae8], rbp
jne 0x140048a37
xor r8d, r8d
xor edx, edx
mov ecx, 0x26b
call fcn.140041150
test al, al
je 0x140048a37
mov r11b, 1
jmp 0x140048a3f
xor r11b, r11b
test rsi, rsi
jne 0x140048a57
cmp qword [rdi + 0x4ae8], rbp
jne 0x140048a57
test r15b, r15b
jne 0x140048a52
test r13b, r13b
je 0x140048a57
mov r10b, 1
jmp 0x140048a5a
xor r10b, r10b
test r11b, r11b
jne 0x140048a68
test r10b, r10b
je 0x140048bc5
mov rax, qword [rdi + 0x4908]
test rax, rax
jne 0x140048ad2
movsxd rcx, dword [rdi + 0x3eb8]
lea edx, [rcx - 1]
test edx, edx
js 0x140048ac7
movsxd rax, edx
mov r9, rcx
cmp rax, r9
jge 0x140048ac7
cmp rax, 0xffffffff80000001
je 0x140048ac7
mov r8, qword [rdi + 0x3ec0]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0xb7], bpl
je 0x140048abf
cmp rcx, qword [rcx + 0x380]
jne 0x140048abf
test dword [rcx + 0x14], 0x80000
je 0x140048bb9
dec edx
sub rax, 1
jns 0x140048a88
xor eax, eax
test rax, rax
je 0x140048bc5
mov rax, qword [rax + 0x380]
xor r14d, r14d
mov qword [rdi + 0x4af0], rax
mov qword [rdi + 0x4ae8], rax
movzx eax, r10b
xor eax, 1
mov qword [rdi + 0x4b00], r14
add eax, 2
mov qword [rdi + 0x4b14], r14
mov qword [rdi + 0x4b0c], r14
mov byte [rdi + 0x4b08], r11b
mov dword [rdi + 0x4940], eax
test r15b, r15b
jne 0x140048b24
test r13b, r13b
je 0x140048bc8
mov eax, dword [rdi + 0x4ae4]
or eax, dword [rdi + 0x4ae0]
bt eax, 0xc
jae 0x140048b49
mov dword [rdi + 0x4614], ebx
mov dword [rdi + 0x4610], ebx
mov word [rdi + 0x4618], bp
bt eax, 0xd
jae 0x140048b62
mov dword [rdi + 0x4620], ebx
mov dword [rdi + 0x461c], ebx
mov word [rdi + 0x4624], bp
bt eax, 0xe
jae 0x140048b7b
mov dword [rdi + 0x462c], ebx
mov dword [rdi + 0x4628], ebx
mov word [rdi + 0x4630], bp
bt eax, 0xf
jae 0x140048b94
mov dword [rdi + 0x4638], ebx
mov dword [rdi + 0x4634], ebx
mov word [rdi + 0x463c], bp
bt eax, 0xb
jae 0x140048bc8
cmp byte [rdi + 0x59], bpl
mov eax, 0x4610
mov ecx, 0x4634
cmovne eax, ecx
mov dword [rax + rdi + 4], ebx
mov dword [rax + rdi], ebx
mov word [rax + rdi + 8], bp
jmp 0x140048bc8
movsxd rax, edx
mov rax, qword [r8 + rax*8]
jmp 0x140048ac9
xor r14d, r14d
movss xmm0, dword [rdi + 0x18]
addss xmm0, dword [rdi + 0x4b00]
movss xmm5, dword [0x1401a58e4]
movaps xmmword [rsp + 0x30], xmm6
movss dword [rdi + 0x4b00], xmm0
cmp qword [rdi + 0x4ae8], rbp
je 0x140048cba
cmp dword [rdi + 0x4940], 3
jne 0x140048cba
subss xmm0, dword [0x1401a5888]
divss xmm0, dword [0x1401a5870]
comiss xmm7, xmm0
jbe 0x140048c1e
movaps xmm1, xmm7
jmp 0x140048c25
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm6, dword [rdi + 0x4b04]
xor edx, edx
maxss xmm6, xmm1
mov ecx, 0x274
mov r8d, 1
movss dword [rdi + 0x4b04], xmm6
call fcn.140041150
xor edx, edx
movzx ebx, al
mov ecx, 0x273
mov r8d, 1
call fcn.140041150
movzx ecx, al
sub ecx, ebx
je 0x140048c79
call fcn.140048710
mov dword [rdi + 0x4b04], 0x3f800000
movaps xmm6, xmm5
cmp byte [rdi + 0x34d4], bpl
je 0x140048c8b
cmp byte [rdi + 0x44bc], bpl
je 0x140048cba
comiss xmm5, xmm6
seta al
and byte [rdi + 0x4b08], al
je 0x140048cac
cmp qword [rdi + 0x4908], rbp
je 0x140048cb3
mov byte [rsp + 0x80], 1
jmp 0x140048cb3
mov rbp, qword [rdi + 0x4ae8]
mov qword [rdi + 0x4ae8], r14
cmp qword [rdi + 0x4ae8], 0
je 0x140048d70
cmp dword [rdi + 0x4940], 2
jne 0x140048d70
mov eax, dword [rdi + 0x4ae0]
mov ecx, 0xf800
movss xmm0, dword [rdi + 0x4b00]
test eax, eax
subss xmm0, dword [0x1401a5888]
cmovne ecx, eax
mov edx, 0xf800
mov eax, dword [rdi + 0x4ae4]
test eax, eax
cmovne edx, eax
divss xmm0, dword [0x1401a5870]
and edx, ecx
mov ecx, edx
and ecx, 0xf800
comiss xmm7, xmm0
jbe 0x140048d21
movaps xmm5, xmm7
jmp 0x140048d25
minss xmm5, xmm0
movss xmm0, dword [rdi + 0x4b04]
maxss xmm0, xmm5
movss dword [rdi + 0x4b04], xmm0
test r15b, r15b
jne 0x140048d5d
test r13b, r13b
jne 0x140048d5d
mov eax, dword [rdi + 0xe20]
and eax, edx
and eax, 0xf800
cmp eax, ecx
je 0x140048d70
mov rbp, qword [rdi + 0x4ae8]
jmp 0x140048d70
movzx ecx, r15b
xor ecx, 1
lea ecx, [rcx*2 - 1]
call fcn.140048710
mov r15, qword [rsp + 0x40]
test r12b, r12b
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
je 0x140048dab
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0x4000
call fcn.140041150
test al, al
je 0x140048dab
mov byte [rdi + 0x4b08], 1
mov dword [rdi + 0x4940], 2
cmp byte [rdi + 0x4b08], 0
je 0x140048ec6
cmp dword [rdi + 0x4940], 2
jne 0x140048ec6
cmp dword [rdi + 0x37b8], 0
jg 0x140048df2
cmp byte [rdi + 0xe1c], 0
jne 0x140048df2
cmp byte [rdi + 0xe1d], 0
jne 0x140048df2
cmp byte [rdi + 0xe1f], 0
jne 0x140048df2
cmp dword [rdi + 0x4628], 0xffffffff
je 0x140048df9
mov byte [rdi + 0x4b08], 0
comiss xmm7, dword [rdi + 0x36cc]
ja 0x140048ead
cmp byte [rdi + 0x36c4], 0
jne 0x140048eb6
cmp byte [rdi + 0x4630], 0
jne 0x140048ead
cmp byte [rdi + 0x4b08], 0
je 0x140048ead
cmp dword [rdi + 0x3f68], 0
je 0x140048e3f
cmp byte [rdi + 0x3f75], 0
je 0x140048ead
lea rax, [rdi + 0x36e8]
test rax, rax
jne 0x140048e52
lea rax, [rdi + 0xe00]
movss xmm0, dword [rax]
movss xmm1, dword [0x1401a5b54]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140048e71
comiss xmm2, xmm1
jb 0x140048e71
mov cl, 1
jmp 0x140048e73
xor cl, cl
lea rax, [rdi + 0xe00]
test rax, rax
jne 0x140048e86
lea rax, [rdi + 0xe00]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140048e9d
comiss xmm2, xmm1
jb 0x140048e9d
mov al, 1
jmp 0x140048e9f
xor al, al
cmp al, cl
jne 0x140048ead
mov byte [rsp + 0x80], 1
jmp 0x140048ebf
cmp byte [rdi + 0x36c4], 0
je 0x140048ebf
cmp byte [rdi + 0x4630], 0
je 0x140048ec6
mov byte [rdi + 0x4b08], 0
mov rax, qword [rdi + 0x4ae8]
test rax, rax
je 0x14004902c
test byte [rax + 0x14], 4
jne 0x14004902c
mov eax, dword [rdi + 0x4940]
movaps xmm2, xmm7
movaps xmm3, xmm7
cmp eax, 2
jne 0x140048f1c
cmp byte [rdi + 0xe1d], 0
jne 0x140048f41
movss xmm3, dword [rdi + 0x2e70]
movss xmm2, dword [rdi + 0x2e50]
subss xmm3, dword [rdi + 0x2e60]
subss xmm2, dword [rdi + 0x2e40]
jmp 0x140048f41
cmp eax, 3
jne 0x140048f41
movss xmm3, dword [rdi + 0x35f0]
movss xmm2, dword [rdi + 0x35d0]
subss xmm3, dword [rdi + 0x35e0]
subss xmm2, dword [rdi + 0x35c0]
ucomiss xmm2, xmm7
jp 0x140048f53
jne 0x140048f53
ucomiss xmm3, xmm7
jp 0x140048f53
je 0x14004902c
movss xmm1, dword [rdi + 0x50]
xorps xmm6, xmm6
movss xmm0, dword [rdi + 0x18]
xorps xmm5, xmm5
minss xmm1, dword [rdi + 0x54]
mulss xmm0, dword [0x1401a5ae4]
mov byte [rdi + 0x4953], 1
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [rdi + 0x4b0c]
addss xmm3, dword [rdi + 0x4b10]
cvttss2si eax, xmm2
movss dword [rdi + 0x4b0c], xmm2
movss dword [rdi + 0x4b10], xmm3
cvtsi2ss xmm6, eax
cvttss2si eax, xmm3
ucomiss xmm6, xmm7
cvtsi2ss xmm5, eax
jp 0x140048fc1
jne 0x140048fc1
ucomiss xmm5, xmm7
jp 0x140048fc1
je 0x14004902c
mov rax, qword [rdi + 0x4ae8]
lea rdx, [rsp + 0x88]
movaps xmm0, xmm6
movaps xmm1, xmm5
mov r8d, 1
mov rcx, qword [rax + 0x380]
addss xmm0, dword [rcx + 0x20]
addss xmm1, dword [rcx + 0x24]
movss dword [rsp + 0x88], xmm0
movss dword [rsp + 0x8c], xmm1
call fcn.1400408f0
movss xmm0, dword [rdi + 0x4b10]
movss xmm4, dword [rdi + 0x4b0c]
subss xmm0, xmm5
subss xmm4, xmm6
movss dword [rdi + 0x4b10], xmm0
movss dword [rdi + 0x4b0c], xmm4
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
test rbp, rbp
je 0x14004917a
mov rax, qword [rdi + 0x4908]
test rax, rax
je 0x140049058
cmp rbp, qword [rax + 0x380]
je 0x140049173
xor edx, edx
xor ecx, ecx
call fcn.140036d30
mov rsi, qword [0x140220168]
mov r9d, dword [rsi + 0x48c0]
mov word [rsi + 0x4951], 1
mov byte [rsi + 0x4953], 1
test r9d, r9d
je 0x140049138
mov ebx, r14d
jle 0x140049111
mov r10, qword [rsi + 0x48c8]
mov ecx, r9d
add r10, 8
mov r11, r14
mov rax, qword [r10]
test rax, rax
je 0x1400490ff
test dword [rax + 0x14], 0x1000000
jne 0x1400490ff
mov r8d, ebx
cmp ebx, ecx
jge 0x140049111
mov rdx, qword [rsi + 0x48c8]
add rdx, 8
add rdx, r11
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400490f1
mov rax, rbp
cmp qword [rbp + 0x380], rcx
je 0x1400490ff
nop dword [rax]
cmp rax, rcx
je 0x1400490ff
mov rax, qword [rax + 0x378]
test rax, rax
jne 0x1400490e0
inc r8d
add rdx, 0x38
cmp r8d, r9d
jl 0x1400490c8
jmp 0x140049111
inc ebx
add r11, 0x38
add r10, 0x38
mov ecx, r9d
cmp ebx, r9d
jl 0x1400490a2
cmp ebx, r9d
jge 0x140049138
test byte [rsi + 0x5df4], 4
je 0x14004912f
mov rdx, qword [rbp + 8]
lea rcx, str._popup__ClosePopupsOverWindow___s___n
call fcn.14004aa00
xor edx, edx
mov ecx, ebx
call fcn.140044670
mov edx, 1
mov rcx, rbp
call fcn.140040110
mov rbx, qword [rdi + 0x4908]
cmp dword [rbx + 0x3a8], 0
jne 0x14004915f
xor edx, edx
mov rcx, rbx
call fcn.140045f10
cmp word [rbx + 0x15e], 2
jne 0x140049173
mov dword [rdi + 0x4944], 1
mov qword [rdi + 0x4ae8], r14
cmp byte [rsp + 0x80], 0
mov rbp, qword [rsp + 0x90]
je 0x140049253
cmp qword [rdi + 0x4908], 0
je 0x140049253
xor edx, edx
xor ecx, ecx
call fcn.140036d30
mov rbx, qword [rdi + 0x4908]
lea rcx, [rbx + 0x370]
cmp qword [rcx], 0
je 0x1400491e8
nop dword [rax + rax]
test byte [rbx + 0x15c], 2
jne 0x1400491e8
mov eax, dword [rbx + 0x14]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x1400491e8
mov rbx, qword [rcx]
lea rcx, [rbx + 0x370]
cmp qword [rcx], 0
jne 0x1400491c0
mov rsi, qword [rdi + 0x4908]
cmp rbx, rsi
je 0x140049205
xor edx, edx
mov rcx, rbx
call fcn.140040110
mov qword [rbx + 0x3a0], rsi
mov rax, qword [rdi + 0x4908]
test byte [rax + 0x15c], 2
je 0x140049220
mov ecx, dword [rdi + 0x4944]
xor ecx, 1
jmp 0x140049223
mov ecx, r14d
cmp ecx, dword [rdi + 0x4944]
je 0x140049253
cmp ecx, 1
jne 0x140049237
mov dword [rax + 0x3ac], r14d
call fcn.140045dd0
mov rax, qword [0x140220168]
mov word [rax + 0x4951], 1
mov byte [rax + 0x4953], 1
mov r14, qword [rsp + 0x48]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret