Function at 0x415d13
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edi, dword [eax]
mov eax, dword [ecx]
mov esi, ecx
cmp eax, edi
cmova edi, eax
xor eax, eax
inc eax
test edi, edi
mov dword [esp + 0x18], eax
cmove edi, eax
push edi
call fcn.004138e8
add esp, 4
mov ebp, eax
push edi
call fcn.004138e8
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp]
mov ecx, esi
mov ebx, dword [esi]
cmp eax, ebx
cmovb ebx, eax
lea esi, [ebx*4]
push esi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00478910
add esp, 0xc
mov eax, dword [ebp]
sub eax, ebx
shl eax, 2
add esi, dword [ebp + 4]
push eax
push esi
call fcn.0046d418
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea ebx, [esi*4]
push ebx
push dword [ecx + 4]
push dword [edx + 4]
call fcn.00478910
add esp, 0xc
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
sub eax, esi
shl eax, 2
add ebx, dword [ecx + 4]
push eax
push ebx
call fcn.0046d418
add esp, 8
lea esi, [edi + 1]
push esi
call fcn.004138e8
add esp, 4
mov dword [esp], eax
push esi
call fcn.004138e8
add esp, 4
mov dword [esp + 8], eax
push edi
call fcn.004138e8
add esp, 4
mov dword [esp + 0x24], eax
mov esi, edi
shl esi, 6
mov dword [esp + 0x1c], edi
lea eax, [edi*4]
and eax, 0x7fffffc
push eax
call fcn.004138e8
add esp, 4
mov edi, eax
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], eax
je 0x415ed1
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
push ebp
mov edi, dword [esp + 8]
push edi
call fcn.0041464d
add esp, 8
mov esi, eax
mov eax, dword [ebp + 4]
mov eax, dword [eax]
xor esi, eax
and eax, 1
mov edx, edi
mov ecx, dword [edi + 4]
mov edi, dword [ecx]
and edi, eax
and esi, edi
xor esi, eax
push esi
push edx
push ebp
call fcn.00413a92
add esp, 0xc
mov eax, edi
neg eax
mov ebp, eax
and ebp, 1
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push ebp
push eax
push eax
push dword [esp + 0x10]
push ebx
call fcn.004145bf
add esp, 0x14
push 1
push ebx
push ebx
call fcn.004141ad
add esp, 0xc
mov ebp, dword [esp + 0x18]
lea eax, [ebp - 1]
push edi
mov edi, dword [esp + 0x18]
push eax
push edi
call fcn.00413e50
add esp, 0xc
push esi
push ebp
push edi
call fcn.00413e50
mov eax, dword [esp + 0x2c]
add esp, 0xc
add ebp, 2
mov dword [esp + 0x18], ebp
mov ebp, ebx
dec eax
jne 0x415e34
mov eax, dword [esp + 0x44]
test eax, eax
je 0x415ef1
mov edx, dword [eax]
mov ecx, dword [eax + 4]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x10]
push ebp
call fcn.004145bf
add esp, 0x14
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
mov esi, dword [esp]
je 0x4161bf
xor eax, eax
cmp dword [ebp], 0
mov ecx, 0
je 0x415f17
mov ecx, dword [ebp + 4]
mov ecx, dword [ecx]
and ecx, 1
mov edx, dword [esi + 4]
mov dword [edx], ecx
mov ebx, dword [esp + 4]
cmp dword [ebx], 0
je 0x415f2d
mov eax, dword [ebx + 4]
mov eax, dword [eax]
and eax, 1
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
mov eax, dword [ebp]
mov ecx, esi
mov esi, dword [esi]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00478910
add esp, 0xc
mov eax, dword [ebp]
sub eax, esi
shl eax, 2
add edi, dword [ebp + 4]
push eax
push edi
call fcn.0046d418
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.00478910
add esp, 0xc
mov eax, dword [ebx]
sub eax, esi
shl eax, 2
add edi, dword [ebx + 4]
push eax
push edi
call fcn.0046d418
add esp, 8
mov eax, dword [ebx + 4]
mov ebp, dword [eax]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4160d5
dec esi
mov edx, dword [esp + 0x1c]
shl edx, 7
add edx, 0xfffffffe
mov edi, dword [esp]
mov dword [esp + 0x18], ebp
mov eax, esi
shr eax, 4
and eax, 0x7ffffff
mov ecx, dword [esp + 0x14]
cmp dword [ecx], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
jbe 0x415ff5
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
mov ecx, edx
and ecx, 0x1e
mov ebx, eax
shr ebx, cl
and ebx, 1
jmp 0x415ffe
mov ecx, edx
and ecx, 0x1e
xor ebx, ebx
xor eax, eax
or cl, 1
shr eax, cl
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
mov dword [esp + 0x20], ecx
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov edi, dword [ecx]
and edi, eax
neg edi
xor eax, eax
push eax
push eax
xor ebp, ebp
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004145bf
add esp, 0x14
mov esi, dword [esp + 8]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push ebp
push ebp
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
call fcn.004145bf
add esp, 0x14
xor eax, eax
inc eax
push eax
push dword [esp + 4]
push dword [esp + 8]
call fcn.004141ad
add esp, 0xc
neg ebx
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push ebp
push ebp
push ebx
push dword [esp + 0xc]
push esi
call fcn.004145bf
add esp, 0x14
xor eax, eax
inc eax
push eax
push edi
push edi
call fcn.00414dea
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push ebp
push ebp
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push edi
call fcn.004145bf
add esp, 0x14
mov ebp, dword [esp + 0x20]
push ebp
push ebx
push edi
mov edi, dword [esp + 0xc]
call fcn.00413a92
add esp, 0xc
push ebp
push esi
push edi
call fcn.00413a92
add esp, 0xc
mov eax, dword [esp + 0x18]
xor eax, ebp
mov ebp, eax
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
mov esi, dword [esp + 0x10]
add esi, 0xffffffff
jb 0x415fc3
jmp 0x4160d8
mov edi, dword [esp]
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
xor ebx, ebx
dec ebx
xor eax, eax
inc eax
push eax
push ebx
push ebx
push edi
push dword [esp + 0x14]
call fcn.004145bf
add esp, 0x14
push ebp
push esi
push edi
push edi
call fcn.00413a40
add esp, 0x10
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edi, esi
xor eax, eax
inc eax
push eax
push ebx
push ebx
mov esi, dword [esp + 0x14]
push esi
mov ebx, ebp
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004145bf
add esp, 0x14
push ebx
push edi
push esi
push esi
call fcn.00413a40
add esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x416172
mov eax, dword [ebx]
mov ecx, dword [esp]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
mov eax, dword [esp + 4]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00478910
add esp, 0xc
mov eax, dword [ebx]
sub eax, esi
shl eax, 2
add edi, dword [ebx + 4]
push eax
push edi
call fcn.0046d418
add esp, 8
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp]
je 0x4161bf
mov eax, dword [ebx]
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.00478910
add esp, 0xc
mov eax, dword [ebx]
sub eax, esi
mov esi, dword [esp]
shl eax, 2
add edi, dword [ebx + 4]
push eax
push edi
mov edi, dword [esp + 0x1c]
call fcn.0046d418
add esp, 8
push ebp
call fcn.004139b6
add esp, 4
push dword [esp + 4]
call fcn.004139b6
add esp, 4
push esi
call fcn.004139b6
add esp, 4
push dword [esp + 8]
call fcn.004139b6
add esp, 4
push dword [esp + 0x24]
call fcn.004139b6
add esp, 4
push edi
call fcn.004139b6
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret