Function at 0x10047250
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 0x10086f94
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x100b8180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x13
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x2c]
push str.C:gamesnusConfigs
mov byte [ebp - 0x78], 0
push dword [ebp - 0x78]
call fcn.10053480
add esp, 0xc
mov dword [ebp - 4], 0
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0x100b90f0
call fcn.10046f10
cmp dword [ebp - 0x80], 0
jne 0x100477f2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x1004731c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10047312
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100477fe
push ecx
push edx
call fcn.1005cded
add esp, 8
mov ecx, dword [0x100d9758]
mov edx, dword [0x100d975c]
mov dword [0x100bb5bc], 0
cmp ecx, edx
je 0x10047349
push ecx
call fcn.1004e160
mov eax, dword [0x100d9758]
add esp, 4
mov dword [0x100d975c], eax
movaps xmm0, xmmword [0x100b1620]
mov ecx, 0x10
movaps xmm2, xmmword [0x100b0820]
movaps xmm1, xmmword [0x100b1870]
movd eax, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x716669
mov byte [ebp - 0x18], 1
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x28]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebp - 0x2c], xmm1
movaps xmm1, xmmword [0x100b1880]
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x24]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebp - 0x28], xmm1
movaps xmm1, xmmword [0x100b18a0]
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x20]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebp - 0x24], xmm1
movaps xmm1, xmmword [0x100b18b0]
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm2
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebp - 0x20], xmm1
nop
lea eax, [ecx - 0x10]
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x13
jb 0x10047420
xorps xmm0, xmm0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047450
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.1000bf90
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x100477a4
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
push ecx
cmova eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x5c]
push eax
mov byte [ebp - 0x78], 0
push dword [ebp - 0x78]
call fcn.10053480
add esp, 0xc
mov edi, 0x60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.10046d80
lea ecx, [ebp - 0x5c]
call fcn.100458d0
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x100474c2
lock inc dword [esi + 4]
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], esi
test esi, esi
je 0x100474df
lock inc dword [esi + 4]
mov esi, dword [ebp - 0x7c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
test esi, esi
je 0x10047526
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10047523
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10047523
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 6
nop word [eax + eax]
test eax, eax
je 0x10047753
cmp dword [eax + 0x34], 7
lea ecx, [eax + 0x20]
jbe 0x10047544
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x30]
lea esi, [ecx + eax*2]
mov edx, esi
call fcn.100455a0
sub esi, eax
mov dword [ebp - 0xa0], eax
push ecx
lea eax, [ebp - 0xa0]
sar esi, 1
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x9c], esi
call fcn.1004d810
or edi, 1
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
mov esi, dword [ebp - 0x4c]
cmova eax, dword [ebp - 0x5c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x90], esi
call fcn.1005a44e
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 8
xorps xmm0, xmm0
or edi, 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x78], edi
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x44], 0
test esi, esi
je 0x1004763c
cmp esi, 0x7fffffff
ja 0x1004780a
push 0
push 0
push esi
push dword [ebp - 0xa8]
push eax
call fcn.1005a49f
mov esi, eax
test edx, edx
jne 0x10047803
mov ecx, dword [ebp - 0x34]
cmp esi, ecx
ja 0x10047601
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
cmova eax, dword [ebp - 0x44]
mov byte [eax + esi], dl
jmp 0x10047610
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x44]
push 0
push eax
call fcn.10031e80
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push esi
cmova eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x90]
push dword [ebp - 0xa8]
push dword [ebp - 0x84]
call fcn.1005a49f
test edx, edx
jne 0x10047803
and edi, 0xffffffef
mov dword [ebp - 4], 7
or edi, 0xe
mov byte [ebp - 4], 9
mov eax, dword [0x100d975c]
cmp eax, dword [0x100d9760]
je 0x1004769b
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
mov eax, 0xf
add dword [0x100d975c], 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x44], 0
jmp 0x100476a8
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.100505f0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 7
cmp eax, 0xf
jbe 0x100476df
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100476d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100477fe
push ecx
push edx
call fcn.1005cded
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 7
jbe 0x1004772f
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10047725
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100477fe
push ecx
push edx
call fcn.1005cded
add esp, 8
inc dword [0x100bb5bc]
lea ecx, [ebp - 0x8c]
call fcn.10046a00
test eax, eax
jne 0x1004780f
mov eax, dword [ebp - 0x8c]
jmp 0x10047530
mov esi, dword [ebp - 0x88]
or edi, 0xffffffff
test esi, esi
je 0x1004777f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1004777f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1004777f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x100477a4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100477a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100477a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x100477d4
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100477ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047816
push ecx
push edx
call fcn.1005cded
add esp, 8
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.1005cac0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x80]
call fcn.100463e0
call fcn.10067444
mov ecx, edx
call fcn.10044da0
call fcn.10044a10
mov edx, eax
call fcn.10046200
call fcn.10067444
int3