Function at 0x45ac80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f98a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x90cf34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
push 0
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], eax
call dword [0x810dac]
push 0
call dword [0x8102dc]
mov esi, eax
test esi, esi
je 0x45b4c6
push 0
call dword [0x8102b0]
push eax
push 0
push esi
call fcn.004725ff
test eax, eax
je 0x45b4c6
push edi
call fcn.005b6adb
add esp, 4
push 0xd10
call fcn.004680a0
add esp, 4
test eax, eax
je 0x45ad20
mov ecx, eax
call fcn.0042dd20
jmp 0x45ad22
xor eax, eax
movups xmm0, xmmword [0x8d41b4]
mov dword [0x1807d24], eax
lea edi, [eax + 0x3e4]
mov ax, word [0x8d41d4]
xor esi, esi
cmp dword [0x18011f4], 2
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x18], ax
movups xmm0, xmmword [0x8d41c4]
movups xmmword [ebp - 0x28], xmm0
jl 0x45ae70
movaps xmm4, xmmword [0x8d5c60]
mov eax, 1
movaps xmm3, xmmword [0x8d5cd0]
movaps xmm6, xmmword [0x8d5c80]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x38]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x38], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x30]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x30], xmm1
add esi, 8
cmp esi, 0x10
jl 0x45ad83
cmp esi, 0x11
jge 0x45ae95
nop
mov eax, 0x94f2095
mov ecx, esi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + esi*2 - 0x38], cx
inc esi
cmp esi, 0x11
jl 0x45ae70
cmp word [0x8d5b8a], 0
movq xmm0, qword [0x8d5b80]
mov eax, dword [0x8d5b88]
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], eax
je 0x45aedb
xor esi, esi
mov eax, 0x94f2095
mov ecx, esi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 6
jl 0x45aeb6
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00413d70
add esp, 0x10
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
push 0
push 0x1f0001
call dword [0x8102ac]
test eax, eax
je 0x45b065
movq xmm0, qword [0x8d5b74]
xor esi, esi
mov ax, word [0x8d5b7c]
movq qword [ebp - 0x44], xmm0
mov word [ebp - 0x3c], ax
nop word [eax + eax]
mov eax, 0x94f2095
mov ecx, esi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 5
jl 0x45af30
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d940
push 1
push 0x8d2ad8
lea ecx, [ebp - 0x30]
call fcn.00417d30
mov edx, dword [0x1807d24]
add edx, 0x3e4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45af81
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00417d30
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0
call dword [0x810a4c]
test eax, eax
je 0x45afbb
push 0
push eax
call dword [0x810a48]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45aff5
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45afeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b57b
push edx
push ecx
call fcn.0059982b
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x45b043
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b039
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b580
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059961f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
mov eax, dword [0x1807d24]
mov dword [eax + 0x894], 0
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
push 0
push 0
call dword [0x8102a8]
mov esi, dword [ebp - 0x70]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45b092
sub ecx, edx
push ecx
push esi
mov ecx, 0x17f49b8
call fcn.00405af0
mov edi, dword [0x1807d24]
mov eax, dword [ebp - 0x6c]
push 0
mov dword [ebp - 0x28], 1
mov dword [edi + 0x118], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [0x810d24]
mov ecx, edi
call fcn.0042ef10
mov ecx, edi
call fcn.00430040
cmp dword [edi + 0x7b0], 0
je 0x45b198
mov ax, word [0x8d21c8]
xor edx, edx
mov word [ebp - 0x6c], ax
mov al, byte [0x8d21ca]
mov byte [ebp - 0x6a], al
mov dword [ebp - 0x70], edx
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x70]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x6c], cl
inc edx
mov dword [ebp - 0x70], edx
cmp edx, 3
jl 0x45b114
lea edx, [ebp - 0x6c]
call fcn.00404d60
test al, al
je 0x45b198
movq xmm0, qword [0x8d23bc]
xor esi, esi
mov ax, word [0x8d23c4]
movq qword [ebp - 0x44], xmm0
mov word [ebp - 0x3c], ax
mov eax, 0x94f2095
mov ecx, esi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 5
jl 0x45b166
push 0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004465f0
mov dword [edi + 0x5ec], 1
call fcn.0042e9c0
test eax, eax
jne 0x45b1e8
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x45b4b6
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b4ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b585
jmp 0x45b4ac
mov eax, dword [0x1807d24]
mov ecx, dword [eax + 0x5ec]
cmp ecx, 3
je 0x45b20a
cmp ecx, 4
je 0x45b20a
cmp dword [eax + 0x65c], 0
je 0x45b25d
mov ecx, eax
jmp 0x45b258
mov esi, dword [0x1807d24]
mov eax, dword [esi + 0x5f0]
cmp eax, 0xc8
jne 0x45b230
mov ecx, esi
mov dword [esi + 0x84c], 0x100
call fcn.00443110
jmp 0x45b256
cmp eax, 0x190
jne 0x45b25d
mov ecx, esi
mov dword [esi + 0x84c], 0x200
call fcn.00443110
mov eax, dword [0x1807d24]
cmp dword [eax + 0x658], 0
je 0x45b25d
mov ecx, esi
call fcn.0042eba0
mov eax, dword [0x1807d24]
cmp dword [eax + 0x7b0], 0
mov dword [eax + 0x6e0], 1
jne 0x45b461
mov ax, word [0x8d21c8]
xor edx, edx
mov word [ebp - 0x6c], ax
mov al, byte [0x8d21ca]
mov byte [ebp - 0x6a], al
mov dword [ebp - 0x70], edx
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x70]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x6c], cl
inc edx
mov dword [ebp - 0x70], edx
cmp edx, 3
jl 0x45b290
lea edx, [ebp - 0x6c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45b2c3
mov esi, dword [0x17f49c8]
sub edx, ecx
cmp dword [0x17f49cc], 0x10
mov ecx, 0x17f49b8
cmovae ecx, dword [0x17f49b8]
cmp esi, edx
jne 0x45b345
lea edx, [ebp - 0x6c]
sub esi, 4
jb 0x45b302
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45b307
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45b2f1
cmp esi, 0xfffffffc
je 0x45b33b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45b334
cmp esi, 0xfffffffd
je 0x45b33b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45b334
cmp esi, 0xfffffffe
je 0x45b33b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45b334
cmp esi, 0xffffffff
je 0x45b33b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x45b33b
sbb eax, eax
or eax, 1
jmp 0x45b33d
xor eax, eax
test eax, eax
je 0x45b461
mov eax, dword [0x1807d24]
cmp dword [eax + 0x5f0], 0xc8
jne 0x45b490
cmp dword [0x1807f10], 0
jne 0x45b380
mov esi, dword [0x810368]
nop dword [eax]
push 0x3e8
call esi
cmp dword [0x1807f10], 0
je 0x45b370
mov eax, dword [0x1807d24]
mov esi, dword [eax + 0x34]
test esi, esi
je 0x45b490
push 0x1807de8
push 0x8d1730
lea eax, [ebp - 0x50]
push 0x1807e90
push eax
call fcn.00416140
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042ba10
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x45b3c0
mov eax, dword [eax]
push eax
call esi
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45b3fd
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b3f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b58a
push edx
push ecx
call fcn.0059982b
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x45b44b
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b441
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b58f
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
jmp 0x45b490
mov eax, dword [0x1807d24]
cmp dword [eax + 0x5ec], 1
je 0x45b490
cmp dword [0x1807f10], 0
jne 0x45b490
mov esi, dword [0x810368]
nop
push 0x3e8
call esi
cmp dword [0x1807f10], 0
je 0x45b480
mov eax, dword [0x1807d24]
cmp dword [eax + 0x684], 0
je 0x45b1ab
call fcn.00444aa0
jmp 0x45b1ab
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 0x58], eax
mov eax, dword [0x1807d68]
mov edi, dword [0x1807d64]
mov dword [ebp - 0x70], eax
cmp edi, eax
je 0x45b537
lea eax, [ebp - 0x80]
xor esi, esi
cmp eax, edi
je 0x45b4e9
mov esi, dword [edi]
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45b567
cmp byte [esi + 0x6c], 0
jne 0x45b567
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
mov dword [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x45b528
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x45b520
mov eax, dword [ecx]
push esi
jmp 0x45b526
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 8
mov dword [ebp - 4], 0xffffffff
cmp edi, dword [ebp - 0x70]
jne 0x45b4d8
cmp dword [0x1807d24], 0
je 0x45b55f
call fcn.0042ec40
mov ecx, dword [0x1807d24]
test ecx, ecx
je 0x45b555
push ecx
call fcn.0045b5a0
mov dword [0x1807d24], 0
push 0
call dword [0x8102a4]
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.0042b660
add esp, 8
push eax
call fcn.0059d32a
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
int3