Function at 0x401e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x44e054]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, dword [0x451a94]
push edi
cmp dword [esi + 0xf4], 0
je 0x401f10
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xe
mov dword [esi + 0xf4], 0
test al, 1
je 0x401f10
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401ef3
push eax
call fcn.0042d6e0
add esp, 4
lock inc dword [0x451a18]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x58], 0
and ecx, 0xffffbfff
mov dword [esi + 0x24], ecx
mov ecx, dword [esi]
mov eax, dword [ecx + 0xbc]
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0xc0]
mov dword [esi + 0x5c], eax
push 0x20
call fcn.0042dfe2
xorps xmm0, xmm0
mov dword [0x451940], eax
add esp, 4
mov edi, fcn.0042dfe2
mov ebx, fcn.0042d6e0
mov ecx, dword [eax + 0x1c]
movups xmmword [eax], xmm0
push 0x78
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x1c], ecx
mov ecx, fcn.0042dfed
mov dword [eax], 0
mov eax, dword [0x451a04]
test eax, eax
cmovne edi, eax
mov eax, dword [0x451a08]
test eax, eax
cmovne ecx, eax
mov eax, dword [0x451a00]
test eax, eax
mov dword [esp + 0x24], ecx
cmovne ebx, eax
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x402038
push 0x60
push 0
push esi
call fcn.00429010
add esp, 0xc
mov dword [esi + 0xc], 4
lea eax, [esi + 0x60]
mov dword [esi + 0x38], 0xc
mov dword [esi + 0x58], eax
add eax, 0xc
mov dword [esi + 0x5c], eax
push 0xc0
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x3c], 0x10
mov dword [esi + 0x44], 0xf
call edi
mov ecx, eax
add esp, 4
mov dword [esi + 0x54], ecx
test ecx, ecx
jne 0x401fd0
push esi
call ebx
add esp, 4
xor esi, esi
jmp 0x402038
mov eax, dword [esi + 0x3c]
imul eax, dword [esi + 0x38]
push eax
push 0
push ecx
call fcn.00429010
mov eax, dword [esi + 0x3c]
add esp, 0xc
mov word [esi + 0x50], 0x13c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44c1f0]
movsd qword [esp + 0x10], xmm0
mulsd xmm0, qword [0x44c198]
call fcn.004418e0
movsd xmm0, qword [esp + 0x10]
mulsd xmm0, qword [0x44c188]
mov dword [esi + 0x48], eax
call fcn.004418e0
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [0x4519f8], esi
call fcn.004032d0
push 0x780
mov dword [0x4518a0], eax
call fcn.0042dfe2
mov esi, eax
add esp, 4
test esi, esi
je 0x402089
lea eax, [esi + 0x780]
mov dword [esp + 0x10], str._____________________________________
xor edx, edx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.004043a0
test eax, eax
jne 0x40208b
push esi
call fcn.0042d6e0
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.004040b0
push esi
mov dword [0x451944], eax
call fcn.0042d6e0
add esp, 4
push 0x40000
call fcn.0042dfe2
mov ebx, 0x451aa0
mov dword [0x45194c], eax
add esp, 4
mov dword [0x451958], eax
mov dword [0x4519fc], 3
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4020d0
sub ebx, ecx
cmp dword [0x451a1c], 0
jne 0x4020fa
push 0
call fcn.0042e491
add esp, 4
mov dword [0x451a1c], eax
push eax
call fcn.0042eb62
add esp, 4
call fcn.0042eb41
cmp dword [0x451a1c], 0
movsd xmm1, qword [0x44c180]
movsd qword [esp + 0x10], xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd xmm1, qword [0x44c1a0]
movsd qword [esp + 0x20], xmm1
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov word [esp + 0xc], ax
jne 0x402155
push 0
call fcn.0042e491
add esp, 4
mov dword [0x451a1c], eax
push eax
call fcn.0042eb62
add esp, 4
call fcn.0042eb41
mov byte [esp + 0x28], 0x82
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0x10]
mulsd xmm0, qword [esp + 0x20]
cvttsd2si eax, xmm0
mov word [esp + 0xe], ax
cmp ebx, 0x7e
jae 0x4021a0
mov al, bl
mov edx, 2
or al, 0x80
mov byte [esp + 0x29], al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2a], eax
test ebx, ebx
je 0x402221
jmp 0x402200
mov eax, ebx
cmp ebx, 0xffff
ja 0x4021c9
shr eax, 8
mov edx, 4
mov byte [esp + 0x2a], al
mov eax, dword [esp + 0xc]
mov byte [esp + 0x29], 0xfe
mov byte [esp + 0x2b], bl
mov dword [esp + 0x2c], eax
jmp 0x402200
shr eax, 0x18
mov edx, 0xa
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x30], al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x29], 0xff
mov byte [esp + 0x2d], 0
mov byte [esp + 0x31], bl
mov dword [esp + 0x32], eax
lea esi, [esp + 0x2c]
add esi, edx
xor ecx, ecx
mov eax, ecx
and eax, 3
add eax, edx
mov al, byte [esp + eax + 0x28]
xor al, byte [ecx + 0x451aa0]
mov byte [ecx + esi], al
inc ecx
cmp ecx, ebx
jb 0x402208
mov ecx, dword [0x451a94]
lea eax, [edx + 4]
lea eax, [ebx + eax]
cwde
lea edx, [esp + 0x28]
push eax
call fcn.00407270
mov ecx, dword [esp + 0x98]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427ba1
mov esp, ebp
pop ebp
ret