Function at 0x46fe50
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 0x82419b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x93bf44]
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, ecx
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebx + 8]
cmp dword [0x181cd9c], 8
mov dword [ebp - 0x10c], ecx
mov ecx, 0x181cd88
cmovae ecx, dword [0x181cd88]
add eax, 0x830
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], eax
cmp dword [eax + 0x14], 8
jb 0x46fed4
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
cmp dword [0x181cc94], 8
lea edi, [ebp - 0xf0]
mov eax, 0x181cc80
mov ecx, 0x2a
cmovae eax, dword [0x181cc80]
mov esi, 0x900538
cmp dword [0x181cdb4], 8
mov dword [ebp - 0x100], eax
mov eax, 0x181cda0
cmovae eax, dword [0x181cda0]
cmp dword [0x181cd54], 8
mov dword [ebp - 0x104], eax
mov eax, 0x181cd40
cmovae eax, dword [0x181cd40]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebp - 0x108], eax
cmp dword [0x1816094], 2
jl 0x470070
movaps xmm4, xmmword [0x9036b0]
mov eax, 4
movaps xmm3, xmmword [0x903750]
movaps xmm6, xmmword [0x9036e0]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 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 [0x903710]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xf0]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0xf0], 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 [0x903710]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xe8]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0xe8], xmm1
add ecx, 8
cmp ecx, 0x50
jl 0x46ff70
cmp ecx, 0x54
jge 0x470099
nop dword [eax + eax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x35
sub edx, eax
add edx, 0x38
xor word [ebp + ecx*2 - 0xf0], dx
inc ecx
cmp ecx, 0x54
jl 0x470070
push dword [ebp - 0xf8]
mov esi, dword [ebp - 0xfc]
lea eax, [esi + 0x128]
push eax
push dword [esi + 4]
lea eax, [ebp - 0xf0]
push dword [ebp - 0xf4]
push dword [ebp - 0x100]
push dword [ebp - 0x104]
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
push str.http:__api.flmgr.net_log_client_server
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00415a20
add esp, 0x2c
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.00404770
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00473730
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [0x181cc30]
cmp dword [0x181cc34], ecx
je 0x470144
mov dword [ecx], 0
cmp ecx, edx
je 0x470137
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x181cc30], 8
jmp 0x47014b
push edx
push ecx
call fcn.004327e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x470177
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x470177
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x470171
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x470175
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4701ad
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4701a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470203
push edx
push ecx
call fcn.005c24d6
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4701e3
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4701d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470208
push edx
push ecx
call fcn.005c24d6
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.005c22ca
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.006d1429
call fcn.006d1429
int3