Function at 0x401a60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push esi
push edi
push ebp
xor esi, esi
lea ebx, [edx + eax*2]
mov edx, dword [esp + 0x28]
mov eax, ebx
mov ebp, dword [0x43b5a8]
shl eax, 5
sub eax, ebx
cmp ebp, esi
lea ecx, [edx + eax*4 + 0x2c]
mov dword [esp + 0x14], ecx
je 0x401ad9
mov dword [0x4b2f60], esi
mov eax, 0x4b2f60
mov edi, 0x4b2cb0
mov ecx, 0x54
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, 0x4b2e10
mov ecx, 0x54
rep stosd dword es:[edi], eax
mov dword [0x4b2e00], esi
mov eax, 0x4b2e00
mov dword [0x43b5a8], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
push 0x240
xor edi, edi
mov ecx, dword [esp + 0x28]
push edi
push ecx
call fcn.00402ff0
add esp, 0xc
call fcn.00412f6c
mov ecx, 0x240
mov dword [ebx*4 + 0x4b2e00], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
fld dword [esp + 0x18]
fld dword [eax]
fmul dword [eax]
add eax, 4
dec ecx
faddp st(1)
jne 0x401b0f
fcom qword [0x41a010]
fstp dword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x401b39
mov dword [ebx*4 + 0x4b2f60], 0
jmp 0x401b53
fldln2
fld dword [esp + 0x18]
fyl2x
fmul dword [0x43b5ac]
call fcn.00412f6c
mov dword [ebx*4 + 0x4b2f60], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x401b6a
mov ecx, dword [eax + 0x18]
cmp ecx, 2
je 0x401c32
lea eax, [ebx + ebx*4]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], 0x15
lea ecx, [ebx + eax*4]
mov edi, dword [0x43b59c]
add edi, 4
lea ebx, [ecx*4]
add ebp, ebx
mov eax, dword [edi]
mov edx, dword [edi - 4]
mov dword [esp + 0x18], 0
cmp edx, eax
jge 0x401bbc
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sub eax, edx
lea ecx, [ecx + edx*4]
fld dword [ecx]
fmul dword [ecx]
add ecx, 4
dec eax
faddp st(1)
jne 0x401bac
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
test eax, 0x7fffffff
jne 0x401bd3
mov dword [ebx + 0x4b2cb0], 0
jmp 0x401bec
fldln2
fld dword [esp + 0x18]
fyl2x
fmul dword [0x43b5ac]
call fcn.00412f6c
mov dword [ebx + 0x4b2cb0], eax
mov eax, dword [ebp]
test eax, 0x7fffffff
jne 0x401c02
mov dword [ebx + 0x4b2e10], 0
jmp 0x401c1a
fldln2
fld dword [ebp]
fyl2x
fmul dword [0x43b5ac]
call fcn.00412f6c
mov dword [ebx + 0x4b2e10], eax
add ebx, 4
add ebp, 4
add edi, 4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x401b8e
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x401daa
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
lea ecx, [edx*8 + 0x4b2e00]
mov ebx, dword [eax + 0x14]
mov edx, 2
mov edi, edx
fild dword [ecx]
fcomp qword [0x41a010]
fnstsw ax
test ah, 0x40
jne 0x401c68
inc esi
test ebx, ebx
je 0x401c75
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edx
je 0x401c76
inc esi
add ecx, 4
dec edi
jne 0x401c58
mov edx, dword [esp + 0x30]
inc esi
xor edi, edi
lea eax, [edx + edx*4]
lea ecx, [edx + eax*4]
lea ebx, [ecx*8 + 0x4b2cb0]
mov ecx, 0x15
mov eax, dword [ebx]
mov edx, dword [ebx + 0x54]
sub eax, edx
add ebx, 4
cdq
xor eax, edx
sub edi, edx
add edi, eax
dec ecx
jne 0x401c95
cmp edi, 0x64
jge 0x401caf
inc esi
cmp esi, 6
jne 0x401d89
xor ecx, ecx
mov eax, dword [esp + 0x30]
shl eax, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], 0x43b58c
lea ebx, [eax + edx + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
mov dword [eax], esi
mov eax, dword [edx - 4]
mov ebx, dword [edx]
cmp ebx, eax
jle 0x401d2e
mov edx, dword [esp + 0x30]
sub ebx, eax
lea ebp, [edx + edx*4]
lea ebp, [edx + ebp*4]
lea ebp, [eax + ebp*2]
shl ebp, 2
mov eax, dword [ebp + 0x4b2cb0]
mov edx, dword [ebp + 0x4b2d04]
sub eax, edx
add ebp, 4
cdq
xor eax, edx
sub esi, edx
add esi, eax
mov edx, dword [ebp + 0x4b2e60]
mov eax, dword [ebp + 0x4b2e0c]
sub eax, edx
cdq
xor eax, edx
sub edi, edx
add edi, eax
dec ebx
jne 0x401cfe
cmp esi, 0xa
jge 0x401d55
cmp edi, 0xa
jge 0x401d55
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, 1
shl eax, cl
or edx, eax
mov dword [esp + 0x1c], edx
jmp 0x401d5f
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add eax, 4
add edx, 4
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp eax, 0x43b59c
jb 0x401cd5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
shl eax, 4
xor ecx, ecx
mov dword [eax + edx + 0xc], ecx
mov dword [eax + edx + 0x10], ecx
mov dword [eax + edx + 0x14], ecx
mov dword [eax + edx + 0x18], ecx
lea eax, [eax + edx + 0xc]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret